BlueIris mqtt alerts in Home assistant not working

Hello All,
I have set up Mqtt on my Blueiris 5.9.5.0. As follows:

I have setup MQTT with this config:

I see that the mqtt message is making it to the broker:

But I dont see the alert make any changes to the motion sensor entity of the camera:

Sorry since this is my first submission that forum will only let me upload 1 image. So I put everything in this 1 image:

Any Help Greatly Appreciated!

It’s been a long time since I set mine up, but try going to the HA options Setting, Blue Iris NVR, and click on the top part (with the icon, not where it says X devices).

That opens a list of entities, but on the top line is a gear symbol click that.

Down at the bottom, WAY down at the bottom, you have to choose which things affect HA, including the motion sensors.

For reasons I do not recall I didn’t use &TYPE I used the word “Motion”.

See if those help.

Is “Home NorthSide Motion” sensor entity one you defined in configuration.yaml? Or someplace else?

Are you talking about this these settings?

I updated the Alert to what you have. But still no alerts arrive in HA.

This is my configuraiton.yaml. Does this look correct or is there an example I can follow?

Everything has to match, In your Blue Iris you have your topic as: BlueIris/&CAM/alert-info and your configuration.yaml you have BlueIris/&CAM/Status. Your YAML formatting looks off. Go to Dev Tools and check configuration. Also you may know but any change to configuration.yaml requires a restart (no need to reboot)

I also see from your screenshot in the other post you have the Blue Iris integration installed, then why mess with MQTT? Blue Iris integration will handle the motion detection.

I didnt know that I dont need MQTT to get alerts in HA. How do I accomplish this not using MQTT?

Once Blue Iris integration is setup, click on it on your integrations page, It should list all your cameras, as well as a couple other entities. (Like all cameras, server, etc). Then simply click the camera you want to track motion on, and get the entity name from there.

So mine is working but I could have sworn that the WAY it worked for alerts for motion was through MQTT. Did I misunderstand?

Well it will work through both if you desire. The BI integration is probably easier for simple motion detection as it’s entities are already setup, and no need to mess with configuration.yaml.

Hi @Linwood, Would you mind sharing your configuration from BI to HA. So I can compare my config to where my issue may be?

The integration says this (sorry, the fonts are tiny on the screen). It sure SEEMS like it depends on MQTT still. And I’m not sure where the hook would be to tie motion to profile in use if it’s not through an alert, and the alerts have to have a target?

In BI the only thing I’m aware of is the MQTT setup (which you have) the alerts (I posted above), and I set up a user in BI.

In HA it’s pretty much what you showed. The part you have to get right (as mentioned above) is the motion alert has to be exactly and precisely what the BI integration is going to look for.

The integration has a lot of documentation on how to set it up and includes MQTT. I do have a vague recollection of not using MQTT exactly as shown, but as I did in the above alert, with an explicit “Motion”.

Incidentally, I have nothing in my configuration.yaml for either MQTT or BlueIris, it’s all done magically as best I can tell.

Out of curiousity I checked the “generate configuration files” which I am pretty sure used to do something, and I cannot find any files anywhere in the HA instance, so I have no idea what it did.

The part that I can’t quite figure out is, if it’s using MQTT, how is it FINDING the MQTT server. Maybe it can query HA somehow to know I have mosquito defined, maybe it queries BI and pulls the information from it. But here is what appeared in my MQTT server when I triggeed an alert:

And here’s what appeared in HA in the sensor created by the integration (not in any configuration file I did):

Where are you seeing that? (Steps to get there?)

The actual Blue Iris integration itself also allows monitoring of your cameras live.
From main HA page click Settings → Devices & services → Blue Iris NVR
It should list all your cameras, as well as other devices such as All Cameras Cycle
The Server device, which allows turning profiles on/off.

And if you click on a Camera you can even view live camera feeds, as well as have several entity sensors available like Audio, Connectivity, Motion.

And its possible the blue iris integration does require MQTT under the hoot, but I never manually setup camera sensors in my configuration.yaml, nor mqtt.yaml.

You mean the documentation? HACS, and click on the Blue Iris integration, it brings up that document.

Again, I have NOTHING set up in configuration.yaml (and don’t have a mqtt.yaml). But I do have the mosquito integration installed (and use it separately for controlling a telescope). And my MQTT integration shows nothing for BI – i.e. they are not entities as far as HA is concerned, HA’s BI integration is subscribing to the topics itself.

My assumption is that the BI Integration is, under the covers, doing it. Hmm… wait a second…

So I stopped Mosquito (MQTT broker). I went outside and walked in front of two cameras, and came back in. They do not show motion triggered in HA. They do show they triggered inside of BI.

I don’t know if it is possible to do this without MQTT, but it does work with MQTT, it is documented by the author as requiring MQTT, and when I don’t use MQTT it stops working. Beyond that I can’t say.

Cool, you’re right, I set this stuff up so long ago I forgot all the details. I just knew I never setup any camera sensors manually. The HACS integration is doing that behind the scenes.