BlinkAPI.groovy & BlinkChild.groovy drivers for polling the Blink API for your Blink cameras and related devices.
Features:
- Can request a PIN be emailed to your account from Blink (Authorize)
- Can validate PIN received from Blink (Verify PIN)
- Can check Blink account for any "networks" of devices and pull basic information
- Can check Sync Modules, Cameras, and more for basic information including temperature and battery state
- Can arm/disarm systems individually or all for the account
- Can enable/disable motion detection on cameras individually or all for the account
- Devices are "Actuator" so they can be given custom actions to trigger commands in Rules
- Re-authorizes the auth-token every 12 hours based on when you last Saved Preferences
- Child devices have a number of commands they can also perform such as Arm/Disarm or Enable Motion Detection
Major Features Missing (so far)
- Obtain a thumbnail image from a camera
- Obtain any video from a camera (it DOES provide an RTSP link though so you can put that in your own RTSP viewer)
- Report camera detecting motion (note, even if/when possible this will not be a FAST way to detect motion due to the polling of the API)
Setup
- Add BlinkAPI.groovy driver to your Drivers Code section on your Hubitat (you can Import using the URLs above) then Save the driver. Repeat with the BlinkChild.groovy driver, both drivers are REQUIRED.
- Add a Virtual device and set the Type to be BlinkAPI (user-added drivers are going to be at the bottom of the list), then Save Device.
- Enter the email and password used for your Blink account into the Account Email and Account Password fields in Preferences then Save Preferences.
- Select the "Authorize" command. Check your email for a PIN sent to you from Blink.
- Enter the PIN received from Blink into the field for the Verify PIN command then select the "Verify PIN" command. NOTE: Step 5 must be done within 40 minutes of receiving the PIN from step 4. If it expires, repeat from step 4. If you have authorized before and validated the system... even if you uninstall and reinstall Blink seems to recognize anyway and will not send a PIN so you do not need the Verify PIN steps 5.
- Once the initial authorization is all set, I recommend using the GetHomescreen command to pull in your devices. This will create child devices to match up with whatever information the API returns for your account.
Enjoy checking out the features!
Added Notes:
- If you post logs (my drivers are designed to get pretty verbose if you set them for Trace, but mostly use debug for unhandled variables I need to add and such) please make sure there are no account emails, passwords, IDs, or AuthTokens in them.
- If you already have the drivers installed and attempt to update them (since I have posted many updates since the original version), sometimes your browser will have cached the old version. You will need to refresh the driver's page (the link's above) so that the newest version can be imported or just copy/paste it in once you have forced your browser to refresh.