Skip to content
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

Open
goermezer opened this issue Feb 21, 2020 · 5 comments
Open

Configure Home Assistant to receive image #11

goermezer opened this issue Feb 21, 2020 · 5 comments

Comments

@goermezer
Copy link

goermezer commented Feb 21, 2020

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:

camera:
  - platform: mqtt
    topic: CameraEvents/Dahua3/Image
    name: my mqtt camera image

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?

@psyciknz
Copy link
Owner

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?

@bryeartem
Copy link

@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

@psyciknz
Copy link
Owner

psyciknz commented Mar 4, 2020

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.

@bryeartem
Copy link

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

@bryeartem
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants