camera:
- platform: mjpeg
mjpeg_url: http://[BlueirisserverIP]:[Blueirisserverport]/mjpg/[shortname]
name: [cameraname that shows up in HASS]
username: [username]
password: [password]
authentication: basic
Shortname is the short name of the camera you have set for the camera in blue iris (general properties of the camera, shortname). Remove all [] after adding your details.
Thanks for sharing this; it will help a lot of users. Camera support is always tricky in HASS; I have two Foscams that don’t work with the Foscam component but work great with MJpeg Generic.
We should really find a way to list all the camera types and URLs we’ve found that work in some thread or documentation point.
Maybe @fabaff has a suggestion on this? I’ve been considering writing a simple database and hosting it on my own site if that will help.
BTW, a resource I often point people to is this page:
I have the latest blue iris. The URL works fine in a web browser but in HASS 0.36.1 it just shows as (Error loading image). The log file also shows no error.
I get the feeling it can’t login because when I don’t supply a login or password the same error occurs. Any ideas?
I fixed my issue by going into blueiris and unchecking “secure only” in the webserver setting. This allowed me to use the following URL in the HASS config and have it working http://IP:PORT/mjpg/CAM?user=USER&pw=PASS
I was also going to post a thread detailing some of the newer features and using a Blue Iris Still Image Feed > OpenALPR to detect license plates and automate door locks, garage doors, or lights (obviously with a second-factor like presence detection to thwart mischief).
The code for still images on blue iris looks like:
*Note you do not need a username and password if you set blue iris to not authenticate same-network logins, less secure, but also less chance a password is being transmitted over the network
With this file you can then import that directly into OpenALPR (supposedly), though I do not currently have a functional example of that just yet
No need to “pre-create” the sensor. The only issue is the sensor won’t show up after you restart HASS until the first time BlueIris sends a motion event to HASS.
You can then extend Blue Iris further by sending you video or hires photos via email https://youtu.be/LAoRma4TyLA
The above use case is absolutely perfect for home security, but I’m also thinking of doing the same when the postman arrives during the work day and opens my parcel chute to drop off my online shopping (plan to use a xiaomi door sensor as the trigger). May also help to prosecute parcel thieves.
Ok I’ve managed to get HASS binary sensors to kick off email alerts and recording with Blue Iris. The code I put together is as below:
automation:
- alias: Trigger Blue IRIS Email Alert with LR Ecobee Sensor
trigger:
platform: state
entity_id: binary_sensor.living_room_occupancy
state: 'on'
action:
service: shell_command.trigger_lr_email
shell_command:
trigger_lr_email: curl 'http://192.168.86.61:81/admin?camera=LR&trigger&user=ADMIN&pw=PASS'
What this does is fire the URL that will trigger the “LR” camera on Blue IRIS. I have configured Blue IRIS to send me an email notification and take 10 second video upon the trigger occuring.