Comments Off on Blue Iris Motion Detection in Home Assistant (MQTT)
Blue Iris Motion Detection in Home Assistant (MQTT)
Pre Reqs
Basic understanding of Blue Iris
Basic understanding of Home Assistant
Understanding of how to use HACS
Basic knowledge of entity cards
IP address/Port of your Home Assistance Instance
Blue Iris User Setup
Set up a Blue Iris User to connect to Blue Iris from Home Assistant
Log into Blue Iris Go to Settings>Users
Click the + at the lower left-hand corner of the window to add a user
Add a user with Administrator privileges User: BlueIris Password: BlueIris
Recommendation: Make this user a “LAN only” user.
Take Note of Blue Iris IP & Port Number
Log Into Blue Iris
Go to Settings>Web Server
Take Note of the Port you are using (Default: 80)
Wright down the IP address for LAN access IP: 192.168.1.2010
Home Assistant Set Up
Set up a user for MQTT access.
Set up a user (not a person) and use whatever name you want for this example we will use the following: Username: mqtt-user Password: mqttt-user
This account can have local access only and does NOT need to be an administrator.
Restart Home Assistant.
Setup Blue Iris NVR Integration.
Go into HACS and install the Blue Iris Integration repository.
Download the latest Blue Iris NVR (do not use beta versions)
Restart Home Assistant
Go to your Home Assistant Integrations.
Click Add Integration
Add your Blue Iris Info in the pop-up box Host: IP Address of Blue Iris Port: Whatever port you use to access the Web UI. (Can be found under settings>Web Server Is SSL: Select if you have SSL enabled. User Name: BlueIris Password: BlueIris
Click Submit
On the success screen, you can assign Areas to each of your cameras. Or you can do that later and scroll down to the end and click Finish.
Setting up MQTT Broker & MQTT on Home Assistant
Go to settings>add-ons page in Home Assistant
Click Add-Ons Store
Install Mosquitto Broker as an add-on.
Enable “Start on Boot” & “Watchdog”
Start the Mosquitto Broker.
Restart Home Assistant just for good measure.
Setting up MQTT on Home Assistant.
Go to Settings>Devices&Services>Integration
Look for MQTT that was discovered.
Click Configure
Click Submit
Click Finish
Restart Home Assistant
Add camera “Motion” entity to dashboard.
On your dashboard of choice
Choose entity card
For entity search for Motion.
Select Camera Motion Entity for the camera you want to view.
Configure MQTT in Blue Iris.
Go into Settings>Digital IO and IoT
Click configure under MQTT
Enter configuration info a. Click Enabled b. Client ID: BlueIris c. Server Address: IP of Home Assistant d. User Name: mqtt-user (See “Set up a user for MQTT access” above) e. Password: mqtt-user f. Keep port as “1883” g. Don’t change Idle disconnect “90” h. Do not click TEST or it might crash BlueIris i. Click “ok” j. Click “ok” on the settings menu to exit.
Set up MQTT on each camera you want motion to show in Home Assistant.
Right-click on the camera you want motion to show in Home Assistant.
16. Select “MQTT Retain Message” so it stays after the restart. 17. Click OK on all screens until you are out of the settings menu. 18. Repeat steps 1-17 for each camera you want to collect motion on in Home Assistant. 19. Go restart Home Assistant 20. Use the entity that you set up above and walk in front of your camera to confirm that the entity changes with motion.
Testing Integration.
Create an entity card of your choice to monitor motion.
Pick a dashboard of your choice.
Add entity card
Under entity search for Motion
Select the camera that you set up in Blue Iris to send Motion.
Go walk in front of your camera to see the motion entity change.
No motion:
With motion when I walk in front of my Front Door Camera: