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

Support for custom events #60

Open
Kepro opened this issue Nov 30, 2022 · 6 comments
Open

Support for custom events #60

Kepro opened this issue Nov 30, 2022 · 6 comments

Comments

@Kepro
Copy link

Kepro commented Nov 30, 2022

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

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

  • RuleEngine/MyRuleDetector/Visitor doorbell
  • RuleEngine/MyRuleDetector/FaceDetect doorbell
  • RuleEngine/MyRuleDetector/PeopleDetect cam
  • RuleEngine/MyRuleDetector/VehicleDetect cam
  • RuleEngine/MyRuleDetector/DogCatDetect cam

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
Copy link

jh17 commented Jan 2, 2023

Hi, have you solved this?

@Kepro
Copy link
Author

Kepro commented Jan 2, 2023

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

@Kepro
Copy link
Author

Kepro commented Jan 4, 2023

@jh17 also here is the PR #61 but looks like this is not active project anymore...

@jh17
Copy link

jh17 commented Jan 9, 2023

@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
Copy link
Author

Kepro commented Jan 9, 2023

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
Copy link

jh17 commented Jan 14, 2023

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!

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

2 participants