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

IVS Rule Details #364

Open
ron-osu opened this issue Jun 20, 2024 · 1 comment
Open

IVS Rule Details #364

ron-osu opened this issue Jun 20, 2024 · 1 comment

Comments

@ron-osu
Copy link

ron-osu commented Jun 20, 2024

Can you please add support to receive IVS details including the name of the custom IVS rule being triggered and the direction (leave vs enter) and object (human vs vehicle) detected? The CrossRegionDetection sensor in HA is triggered when these IVS events occur, but I cannot see any of the specific IVS details.

image

I have been able to get this information into Home Assistant using a docker container (https://hub.docker.com/r/psyciknz/cameraevents) that publishes Dahua IVS event details via MQTT. I believe this is the source code: https://github.com/psyciknz/CameraEvents. This just provides a dynamic string but it can be parsed/searched to trigger automations. There may be a better way to expose these details in HA but I'm a bit of a newbie to this platform.

image

Relavent configuration.yaml snippet for MQTT / CameraEvents:
mqtt:
sensor:
- name: "Camera IVS - Driveway"
state_topic: "CameraEvents/IVS/Driveway"

It would be really nice to completely replace that docker container with this integration. That seems to be the only gap in functionality between the two, at least for my use cases.

Either way, thank you so much for your efforts on this integration - it's working well for me!

@stalniy
Copy link

stalniy commented Jun 23, 2024

I configured it the way you want. It’s possible with https://github.com/rroller/dahua?tab=readme-ov-file#events

Don’t use sensors for IVS. They are useless for this task.

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