A few days ago, we presented the new Blink XT2 cameras, today we will integrate Blink à Home Assistant in order to view images from our cameras. No matter the model, it will be available and we can also extract the motion sensor events cameras.
Configuration in Home Assistant
As in our previous integration and most non-automatic integrations, you will need to access the file configuration.yaml from File editorialr.
To activate devices linked to your account Blink, add the following to your file :
blink: username: your_Blink_identifier password: your_Blink_password
Integration information
Mandatory for proper operation:
- username: your Blink account ID (usually your email address)
- password: your Blink account password
Optional:
- scan_interval : Frequency of search for new data. Default 300 seconds (5 minutes)
- offset : How long in minutes to search for a new movement. Default is 1 minute.
Once the file has been saved from the small red diskette at the top right, restart your server from the gear:
Different Blink sensors
Once home assistant is restarted, the Blink integration will create the different sensors following :
- alarm_control_panel : Allows you to arm and disarm all Blink cameras
- chamber : A "camera" sensor for each camera linked to your Blink synchronization module
- monitored_conditions : A sensor for each camera to extract the temperature, the wifi connection and the battery
- monitored_conditions : A binary sensor (ON / OFF) for each camera to extract the temperature, the wifi connection and the battery
Blink Services
- BLINK.TRIGGER_CAMERA : Will allow you to trigger the selected camera to take a photo
- BLINK.SAVE_VIDEO : Allows you to save the last recorded video from a camera to a local folder.
Blink Scenario in Home Assistant
We are now going create our first automation with Blink cameras!
From Configuration> Automations then click on the " + »Orange to create a new automation.
Press skip (next):
Name of your automation
Let's start our automation by giving it a name to recognize it among your different scenarios:
Trigger your automation
We are now going add trigger (trigger) of our scenario:
Le trigger of our scenario is simply the detector of our camera (here, for the example, the camera is the living room camera blink). As soon as it detects movement (turns ON) then ..
Action of your automation
so .. we record the video using the blink.save_video service:
The data of the service make it possible to indicate the camera name as well as the path to the folder in which to save the video in mp4 format.
data_template: name: "Living room camera" filename: "/ tmp / videos / blink_salon _ {{now (). strftime ('% Y% m% d_% H% M% S')}}. mp4"
Service data information
- name : The name of your camera in the Blink application, here it would be "Living Room Camera"
- filename : The path to the folder where the video must be saved, the video will be named for example: blink_salon_2019-04-13_23-12-27.mp4 (time and date the video was recorded)
Load your automation
For your scenario to work, it needs to be loaded on your server.
To do this, go to configuration> server control :
- Check your configuration from the "Check configuration" button
- Reload automations
Blink cameras are available at Amazon. Fr
Another excellent tutorial on the subject 🙂 which is timely. I started HA two weeks ago and have a Blink camera set. I have not yet attacked the automation, I am integrating everything correctly before cutting my Jeedom :).
However, I have a question about this integration, and I haven't had time to go into this point for the moment: With the default integration, we can arm or disarm the system. Is it possible to activate or deactivate the cameras individually? Leave the system armed with just a camera on ?. Thanks again, these tutorials are really excellent :).
Hello, great for this tutorial. I integrated Blink into HA quite easily.
Small question, the presence detector is updated only every min? No way the motion_sensor will activate as soon as Blink detects motion?
Hello the integration was done quite easily but I can not get anything other than an old still image. the camera seems to stay on standby. Thanks for your help
Hi,
This is normal, these are cameras on batteries, the stream considerably reduces their autonomy. However, you can click on it at any time to view the flow.
Good evening 🙂
Thank you for your reply. yes, but precisely when I click on the video thumbnail, the image is not updated. I haven't activated blink services, but do I just need to update the video?
Hello,
Thank you for your tutorial however in configuration / integration HA discovered blink and this one asks me to configure "Login with a Blink account" which I do and I get the following message "Invalid authentication".
Do you know the reasons?
Thank you for your support.
Hello,
Blink has made changes to its security and the integration is now available here.
Bonne fin de journée
Hello,
I have created my account on blink. The integration appears well on home assistant, but when I enter my username and password I get an error message (invalid authentication). I used the link above but was unsuccessful.
thank you in advance for your help
Georges