dmitrif / onvif2mqtt

Translate ONVIF events (from IP Cameras) to MQTT messages.
Other
115 stars 31 forks source link

Support for custom events #60

Open Kepro opened 1 year ago

Kepro commented 1 year ago

Hello, I have a couple of ReoLink cameras & doorbell :-)

and they have a lot of custom events e.g.

I make it work locally (without config), I would like to create PR with config proposal with some mapping e.g.

// top level configuration
topics:
  <eventName>: <topicName>
// device level configuration
devices:
  - name: Doorbell
    topics:
      <eventName>: <topicName>

any comments before I will create PR? :)

jh17 commented 1 year ago

Hi, have you solved this?

Kepro commented 1 year ago

yeah it's on my forked repo https://github.com/Kepro/onvif2mqtt

Kepro commented 1 year ago

@jh17 also here is the PR https://github.com/dmitrif/onvif2mqtt/pull/61 but looks like this is not active project anymore...

jh17 commented 1 year ago

@Kepro Hi, I managed to build a Docker image with your code (I had to change some things, but finally it worked). I have two different IP cams connected: Reolink "RLC-810A" and "Reolink Video Doorbell PoE". The video doorbell works perfectly, but the 810A does not connect. I tried it with some onvif tool - works with both cams without problems. The settings are the same, config is the same etc. I get this error message from your software: {"level":50,"time":1673249511384,"name":"ONVIF/hleingang","hostname":"192.168.1.37","msg":"Failed to connect to hleingang {}","v":1}

Do you know what could be the problem, or how to dig deeper?

Thank's, Johannes

Kepro commented 1 year ago

hi @jh17 well that is weird, I didn't change the connect thing, only handling of the actions from ONVIF to MQTT, are you sure you have correct IPs and port and login to cams? e.g. 192.168.1.37 vs 192.168.0.37?

jh17 commented 1 year ago

Hi @Kepro, thanks for your support - I did not manage to get the second camera running. So I switched over to another project: https://github.com/berfenger/cam2mqtt Thanks again!