@jackietreeh0rn/homebridge-blink-security
v2.1.2
Published
Homebridge plugin for Amazon Blink security cameras
Maintainers
Readme
Supported Devices
| Device | Model Type | Capabilities |
| ------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 📷 Blink Outdoor / Indoor | default, catalina | Live view (IMMI) + audioMotion sensorSnapshotsTemperatureBattery levelNight visionClip recordingPrivacy modeMotion enable/disable |
| 📷 Blink XT / XT2 | white, xt | Live view (RTSP, video only)Motion sensorSnapshotsTemperatureBattery levelNight visionClip recordingPrivacy modeMotion enable/disable |
| 📸 Blink Mini | owl | Live view (IMMI) + audioMotion sensorSnapshotsClip recordingPrivacy modeMotion enable/disable |
| 📸 Blink Mini 2 | hawk | Live view (IMMI) + audioMotion sensorSnapshotsClip recordingPrivacy modeMotion enable/disable |
| 📸 Blink Mini 2K+ | chickadee | Live view (IMMI) + audioMotion sensorSnapshotsClip recordingPrivacy modeMotion enable/disable |
| 🔦 Blink Wired Floodlight | superior | Live view (IMMI) + audioMotion sensorSnapshotsClip recordingPrivacy modeMotion enable/disable |
| 🚪 Blink Video Doorbell | lotus | Live view (IMMI) + audioMotion sensorSnapshotsDoorbell press notificationClip recordingPrivacy modeMotion enable/disable |
| 🚨 Blink Siren | siren | On/off switch |
Newer models work automatically. Model types are listed for reference only. The plugin routes each device by how the Blink account reports it, not by its model string, so hardware released after this table (for example the 2K+ outdoor cameras and doorbells) is supported without a plugin update. If a device does not appear in HomeKit at all, open an issue with your startup log.
Architecture
graph TD
Home["🏠 Apple Home"]
subgraph Homebridge
platform["<b>BlinkSecurityPlatform</b><br>DynamicPlatformPlugin"]
acc_sec["<b>SecuritySystem</b><br>arm / disarm per network"]
acc_cam["<b>Camera</b><br>live view · snapshots<br>motion · battery · temp"]
acc_door["<b>Doorbell</b><br>press notification<br>+ camera features"]
acc_siren["<b>Siren</b><br>on / off"]
subgraph Streaming Pipeline
delegate["<b>CameraDelegate</b><br>stream lifecycle"]
immi_proxy["<b>ImmiTunnel</b><br>MPEG-TS over TLS"]
rtsp_proxy["<b>RtspToH264Proxy</b><br>RTSP de-frame → MPEG-TS"]
ffmpeg["<b>FFmpeg</b><br>H.264 + AAC-ELD → SRTP"]
end
end
subgraph Blink Cloud
auth["<b>OAuth 2.0 + PKCE</b><br>+ 2FA PIN · session persist"]
api["<b>Blink REST API</b><br>immedia-semi.com"]
immi_srv["<b>IMMI Server</b><br>TLS :443"]
rtsp_srv["<b>RTSP Server</b><br>TLS :443"]
end
Home <-->|"HomeKit"| acc_sec
Home <-->|"HomeKit"| acc_cam
Home <-->|"HomeKit"| acc_door
Home <-->|"HomeKit"| acc_siren
platform --> acc_sec & acc_cam & acc_door & acc_siren
platform -->|"polling<br>status · motion · thumbs"| api
platform -->|"token refresh"| auth
auth --> api
acc_cam & acc_door --> delegate
delegate -->|"Mini / Doorbell /<br>Outdoor / Indoor"| immi_proxy
delegate -->|"XT / XT2"| rtsp_proxy
immi_proxy -->|"TLS"| immi_srv
rtsp_proxy -->|"TLS"| rtsp_srv
immi_proxy & rtsp_proxy -->|"MPEG-TS"| ffmpeg
ffmpeg -->|"SRTP"| HomeFeatures
- Live view: IMMI and RTSP streaming via ffmpeg with automatic keepalive (H.264 video, AAC-ELD audio on IMMI cameras). Optional re-encode of IMMI video with frequent keyframes for streams that stall in the Home app (
liveview-transcode) - Security system: Arm/disarm per network, with optional manual arm switch and opt-in alarm triggering on motion (
enable-alarm-triggering) - Multi-network: Supports multiple sync modules, each with independent arm/disarm
- Motion detection: Motion events surfaced to HomeKit by polling the Blink cloud (configurable interval, with debounce). Detection trails the Blink app's own notification by roughly the clip upload time plus one poll cycle
- Local storage motion: Motion notifications without a Blink subscription. Accounts with no cloud storage use clips saved to the Sync Module's USB drive instead (
local-storage-motion) - Motion enable/disable: Per-camera switch to turn motion detection on or off
- Snapshots: Thumbnail refresh while the Home app is requesting snapshots, at most once per
camera-thumbnail-refresh-secondsfor each camera with motion detection enabled (armed or disarmed), with caching and retry - Battery: Battery level and low-battery alerts (Outdoor/Indoor models)
- Temperature: Ambient temperature sensor (Outdoor/Indoor models)
- Doorbell press: Doorbell button presses raised as HomeKit doorbell events, so HomePods chime and the Home app notifies. Found by cloud polling, like motion, or within a second or two from Blink's push notifications with
enable-push-notifications, which also works without a Blink subscription - Privacy mode: Per-camera switch that hides the camera's thumbnail in the Home app
- Night vision: IR illuminator toggle (Outdoor/Indoor models)
- Clip recording: Trigger a clip recording via momentary switch
- Live View clip saving: Per-network
lv_savetoggle to save or suppress Live View clips - One-way audio: Listen-in on IMMI cameras (Mini, Mini 2, Mini 2K+, Outdoor/Indoor, Doorbell, Floodlight) transcoded to AAC-ELD for HomeKit
- OAuth 2.0 + PKCE: Token refresh and persistent sessions across restarts
- 2FA: One-time PIN verification for Blink's two-factor auth
- Snapshot fallback: Streams the last thumbnail when live view is unavailable
- Stale accessory cleanup: Removes devices no longer on your Blink account
- Retry with backoff: Automatic retry on network errors and rate limiting
Installation
Install Homebridge, add it to Apple Home, then install and configure Homebridge Blink Security.
Recommended
Open the Homebridge UI.
Open the Plugins tab, search for
homebridge-blink-security, and install the plugin.Configure your Blink credentials through the settings panel.
Manual
Install the plugin using NPM:
npm i -g @jackietreeh0rn/homebridge-blink-securityConfigure the BlinkSecurity platform in
~/.homebridge/config.jsonas shown inconfig.example.json.Start Homebridge:
homebridge -D
2FA Setup
Blink requires two-factor authentication on first login:
- Configure your
usernameandpasswordand restart Homebridge - Blink will send a verification code to your email/phone
- Add the code to the
pinfield in config and restart Homebridge - After successful verification, remove the
pinfield; the session is persisted
Push Notifications
Doorbell presses normally reach HomeKit through cloud polling, after the clip uploads, and not at all without a Blink subscription. With enable-push-notifications: true the plugin receives Blink's push notifications, the channel the Blink app uses, so a press rings in HomeKit within a second or two, with or without a subscription.
Sign-in
Blink sends these pushes only to clients of its Android app, so the plugin signs in a second Blink session once, through Blink's own page:
- Turn on Push Notifications and restart. The log prints a Blink sign-in link (repeated every 5 minutes until you sign in).
- Open the link on a computer that does not have the Blink app installed. Sign in and enter the code Blink sends by SMS or email.
- You land on a page titled "Unsupported Browser". That is the end of the sign-in. Copy the full address from the address bar; it starts with
https://applinks.blink.com/signin/callback?code=. - Paste it into Push sign-in callback right away and save. Blink's codes expire within minutes. No restart is needed: the log shows
Blink push: signed inandBlink push notifications connectedwithin a few seconds. The field can be cleared afterwards.
Blink app installed on this computer? The app, on a phone or a Mac, takes over the redirect and the address never shows. Use another computer, or open the browser's developer tools on the Network tab before signing in: the response that ends the sign-in carries the same address in its
redirect_urifield.
How it works
The plugin never sees your password for this session. It registers a Firebase Cloud Messaging token with the Blink app's public Firebase project and asks Blink to deliver the session's notifications to it. The account gets one more signed-in client, named "Homebridge Blink Security"; your phone keeps its own notifications.
Push covers doorbell presses only. Motion, arm state, battery and thumbnails still come from polling, so polling keeps running. A press seen both ways rings once.
Unofficial protocol. It was worked out by ha-blink-live-events and ha-blink-instant-events. A Blink app update can break it; polling keeps working either way.
Blink limits third-party access. Blink's terms prohibit reverse engineering and allow suspending accounts whose use differs from normal use. Blink has temporarily disabled accounts that polled too often and locked sign-ins for 60 minutes after repeated logins. The plugin backs off when Blink rate-limits it, waits out a sign-in lockout instead of retrying in a loop, and turns push off if Blink stops accepting it. Lowering
blink-status-polling-secondsbelow the default raises the risk.
Turning it off
Set enable-push-notifications: false and restart. The plugin signs the push client out of the Blink account and deletes its saved session. If Blink refuses the sign-out, the log says so; remove the client from the Blink app's account settings.
Configuration
| Property | Type | Default | Description |
| ---------------------------------- | ------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| username | string | required | Blink account email |
| password | string | required | Blink account password |
| pin | string | | 2FA verification code (only needed once) |
| hide-alarm | boolean | false | Hide the SecuritySystem accessory |
| enable-alarm-triggering | boolean | false | Report the SecuritySystem as triggered when a camera detects motion while armed. Off by default: the triggered alert outranks per-camera motion notifications in HomeKit, so leaving it off keeps notifications camera-specific (tapping opens that camera's stream) |
| hide-manual-arm-switch | boolean | false | Hide the manual arm/disarm switch |
| hide-temperature-sensor | boolean | false | Hide temperature sensors on cameras |
| hide-enabled-switch | boolean | false | Hide motion enabled/disabled switch |
| hide-privacy-switch | boolean | false | Hide privacy mode switch |
| hide-cameras | boolean | false | Removes cameras from HomeKit. Rooms, automations, scenes, and custom names will not be restored if toggled back off |
| hide-doorbells | boolean | false | Removes doorbells from HomeKit and stops looking for them. Rooms, automations, scenes, and custom names will not be restored if toggled back off |
| enable-liveview | boolean | true | Enable IMMI live view streaming |
| enable-audio | boolean | false | Enable one-way audio in Live View. Also requires Audio Streaming in the Blink app under Device Settings → Privacy |
| liveview-transcode | boolean | false | Re-encode IMMI Live View video with a keyframe every 2 seconds at the resolution and bitrate HomeKit negotiated, instead of passing the camera's H.264 through. Fixes a Live View that spins after packet loss and quality changes that have no effect, at the cost of CPU on the Homebridge host (about half a core per stream on a Raspberry Pi) |
| audio-filter | string | "" | Optional ffmpeg audio filtergraph for Live View audio, passed verbatim to -af (e.g. volume=2.0,alimiter=limit=0.95 to double volume without clipping). Blank leaves audio unprocessed. Requires enable-audio |
| stream-address | string | "" | Advanced. Local IPv4 address HomeKit should use as the camera address for Live View. Blank picks the interface on the same subnet as the Home controller (useful on Docker/VM or multi-interface hosts). Ignored with a warning if the address is not on this host |
| lv-save | boolean | false | Save Live View clips to Blink cloud |
| disable-thumbnail-refresh | boolean | false | Disable scheduled thumbnail refresh (a thumbnail is still refreshed after a live view ends) |
| blink-status-polling-seconds | integer | 10 | Seconds between Blink system refreshes (range 1-300). Default 10. Lower values may trigger Blink rate-limiting; higher values reduce API load but delay arm/disarm state updates |
| camera-thumbnail-refresh-seconds | integer | 3600 | Minimum seconds between Blink cloud thumbnail refreshes per camera (HomeKit polls and is served cached thumbnails between refreshes). Applies to cameras with motion detection enabled, armed or disarmed |
| camera-status-polling-seconds | integer | 20 | Camera status polling interval in seconds. Effective cadence rounds up to the next blink-status-polling-seconds tick |
| camera-motion-polling-seconds | integer | 15 | Motion detection polling interval in seconds. Effectively capped at blink-status-polling-seconds; a longer value would only add notification latency without reducing API load |
| local-storage-motion | string | "auto" | Detect motion from Sync Module local (USB) storage clips on accounts without cloud clip storage. "auto" engages only while no cloud clips exist; "always" / "never" force it on or off. Local clips are checked every ~20s, clips already on the drive at startup are never replayed as motion, and doorbell button presses are reported as motion on this path (Blink's local manifest does not distinguish presses) |
| enable-push-notifications | boolean | false | Receive Blink push notifications so doorbell presses reach HomeKit instantly, including on accounts without a Blink subscription. Registers this plugin as a notification client on the Blink account (see Push Notifications) |
| push-sign-in-callback | string | | Only for the one-time push sign-in: the address of the page Blink lands on after signing in through the link in the log. Picked up on save; can be cleared once the log says signed in |
| logging | string | | "quiet" suppresses routine chatter (thumbnail refresh, reconfigure, clip recording, sleep). "verbose" or "debug" for extended logging |
| enable-startup-diagnostic | boolean | false | Log diagnostic info on startup |
Development
Prerequisites
- Node.js 22.10.0+, 24.0.0+, or 26.0.0+
- Homebridge 1.8.0+ or 2.0.0-beta+
FFmpeg is bundled via the ffmpeg-for-homebridge dependency. No separate install is needed, and it ships with libfdk_aac enabled for AAC-ELD audio.
Setup
npm install
npm run build
npm linkWatch Mode
Automatically recompiles and restarts Homebridge on source changes:
npm run watchThis runs a local Homebridge instance in debug mode using the config at ./test/hbConfig/. Stop any other Homebridge instances first to avoid port conflicts. The watch behavior can be adjusted in nodemon.json.
Linting & Formatting
npm run lint # check for lint errors
npm run lint:fix # auto-fix lint errors
npm run prettier # check formatting
npm run format # auto-fix formattingCommits must follow Conventional Commits, enforced by pre-commit hooks via commitlint and husky.
Troubleshooting
No Audio in Live View
One-way audio is supported on IMMI cameras (Mini, Mini 2, Mini 2K+, Outdoor/Indoor, Doorbell, Wired Floodlight). XT / XT2 cameras use RTSP and are video-only.
Audio is opt-in. To enable it:
- Set
enable-audio: truein plugin config - Open the Blink app → Device Settings → Privacy → enable Audio Streaming for each camera
- Restart the child bridge
Why audio is off by default. If Audio Streaming is disabled in the Blink app, the camera sends malformed audio metadata that stalls the stream.
Live View shows "Not responding"
If Live View spins and eventually shows "Not responding" in the Home app, the most common cause is audio being enabled in plugin config while Audio Streaming is disabled in the Blink app for that camera. Either enable Audio Streaming in the Blink app, or set enable-audio: false in plugin config.
On a host with more than one network (Docker under a VM, a NAT address plus a bridged LAN address), Live View can also fail because HomeKit is given an address it cannot reach. The plugin picks the interface on the Home controller's subnet automatically. If that still picks the wrong one, set stream-address to the host's LAN IPv4 address.
If Live View starts but shows a spinner after a few seconds, or looks the same whatever quality the Home app asks for, the camera's own keyframe interval is too long for HomeKit to recover from a lost packet. Set liveview-transcode: true to re-encode the stream with frequent keyframes; it costs CPU on the Homebridge host.
No HomeKit notifications at all
Notification preferences live in iOS, not in the plugin, and they are per accessory and default to off for new accessories. To enable them for each camera:
- Open the Home app and long-press the camera
- Tap the settings (gear) icon
- Tap Status and Notifications
- Turn on Activity Notifications
- Check the Time and People conditions underneath; "only when I'm not home" is a common silent default that drops every notification while you are home
Arm/disarm alerts have their own toggle: repeat the same steps on the security system tile.
These settings reset on new accessories. They reset whenever HomeKit sees an accessory as new: re-pairing the bridge, removing and re-adding a device, or migrating from another Blink plugin all create new accessories with notifications off, even though the Home app shows the same names. If notifications stop after one of those events, re-enable them.
HomeKit notifications arrive later than the Blink app
The Blink app is notified by Blink's push service the moment a camera starts recording. The plugin discovers motion by polling the cloud media list, and a clip only appears there after it has finished recording and uploading. In practice HomeKit notifications land roughly 5 to 20 seconds behind the Blink app. Lowering blink-status-polling-seconds shaves a few seconds at the cost of more API requests; the upload time cannot be avoided. Doorbell presses avoid the delay with enable-push-notifications (see Push Notifications).
No motion notifications without a Blink subscription
Accounts without a cloud storage plan have an empty cloud media list, so cloud polling finds nothing to report. Put a USB drive in the Sync Module and enable Local Storage in the Blink app; the plugin then detects motion from the sync module's local storage manifest instead. The startup log shows what the plugin sees, e.g. Local storage: compatible=true, enabled=true, status=active. The local-storage-motion option controls the fallback; the default auto engages it only while the cloud media list is empty.
Doorbell does not ring without a Blink subscription
Polling finds presses in the cloud clip list, which stays empty without a subscription. Turn on push notifications.
Push sign-in opens the Blink app
The Blink app, on a phone or a Mac, claims Blink's sign-in redirect. Sign in on a computer without the app, or follow the developer tools step in Push Notifications.
Push sign-in says the code expired
Blink's codes last only minutes. Paste the address into Push sign-in callback right after copying it, and use the newest link in the log: a failed attempt prints a fresh one.
Doorbell stops ringing with push notifications on
Look for Blink push notifications connected after the last start. If the log shows the sign-in prompt again, Blink ended the push session (a password change does this): sign in again. If it shows unavailable, retrying, the plugin reconnects on its own. Presses found by polling still ring in the meantime on accounts with a subscription.
Motion notifications point at the Security System instead of the camera
That is enable-alarm-triggering: when on, motion while armed reports the Security System as triggered, and HomeKit treats that alert as more urgent than the per-camera motion notifications. Leave it off (the default) for camera-specific notifications that open that camera's stream when tapped. Per-camera notifications also require Activity Notifications to be enabled for each camera in the Home app, and motion only fires while the system is armed.
A removed device is still in HomeKit
The plugin only removes an accessory when Blink confirms the device is gone, because removing it discards its room, name, scenes and automations. A device you delete in the Blink app leaves HomeKit about five minutes later, as long as Blink still lists other devices of the same kind. If you delete the last camera, doorbell or siren on the account, Blink's empty list looks the same as a failed response, so the accessory is kept and the log names it. Remove it from the Homebridge accessory cache.
VPN Interference
Blink's authentication servers may reject login requests made through a VPN, returning HTTP 406 with no 2FA code sent. If you're unable to complete initial setup:
- Disconnect your VPN
- Restart the Homebridge child bridge
- Complete 2FA verification
- You can re-enable your VPN after authentication succeeds; sessions are persisted
General
If you run into issues, check the Homebridge troubleshooting wiki first. If the problem persists, open an issue with as much detail as possible.
Contributing
See CONTRIBUTING.md for guidelines on bug reports, feature requests, and code contributions.
Useful Resources
Read the full write-up: Homebridge SmartRent & Blink, an architectural deep-dive into how both plugins map their respective APIs into HomeKit (HAP service composition, IMMI streaming, OAuth/2FA, motion polling).
- MattTW/BlinkMonitorProtocol: Blink API documentation
- fronzbot/blinkpy: Python Blink library (Home Assistant)
- Homebridge Developer Documentation
- Apple HomeKit Documentation
License
GNU GENERAL PUBLIC LICENSE, Version 3
Disclaimer
This project is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by Amazon.com, Inc., Immedia Semiconductor, or Apple Inc. All product and company names are the registered trademarks of their original owners. The use of any trade name or trademark is for identification and reference purposes only and does not imply any association with the trademark holder of their product brand.
