-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure Home Assistant to receive image #11
Comments
Not sure. I use MQTTwarn for picking up the payload and pushing the image to pushover. I’ve not tried home assistant. You’d need to grab the payload, and base64 decode it. Maybe ask on home assistant forum or discord? |
@goermezer in Home assistant just make an mqtt binary sensor and make an automation to send a snapshot when the binary sensor is triggered.. it has been working great for me! (Until I moved my my install to a new computer and forgot to copy my setup for this :() now trying to get it set back up how I had it. @psyciknz thanks for your time, your work is appreciated |
Does/can home assistant grab the image from the mqtt payload? Or do you something else to view the image after the binary sensor asks for the snapshot? I use mqttwarn to pushover and slack myself. |
There is a component called “mqtt camera” in home assistant that could, but I do not use that. It all happens fast enough that home assistant takes the snapshot using its own stream of the cameras I already have in there using ffmpeg/RTSP stream |
I actually tried to teach myself python just to turn this into a home assistant component.. it didn’t go well,.. nonetheless, someone finally made something similar to get the events but it unfortunately doesn’t support the multiple channels of the NVR so this little baby has been vital to my setup.. thanks again! |
Do anybody know, how I have to configure home assistant to receive the image, which is sent by CameraEvents?
My Payload looks like documented:
{"message": "IVS: Dahua3: CrossRegionDetection", "imagebase64": "/9j/4AAQSkZJRgA..."}
My configuration:
When the image is sent by CameraEvents, the sensor in home assistant shows idle the whole time and nothing is logged. I think, I have to reference the imagebase64 attribute. But I don`t know how. Anybody have success with a camera mqtt sensor in home assistant?
The text was updated successfully, but these errors were encountered: