rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
382 stars 73 forks source link

Detect Open door via DMSS and RFID #298

Open flyingpeter opened 1 year ago

flyingpeter commented 1 year ago

Hi!

first of all congratulations for this repo. I was using the other Hacs repo, that worked great but it was more “manual” then yours. I noticed that the other one detected the door open calls from DMSS or from the RFID reader on the VTO.

Can you add it to home assistant also as a device?

When I open the door via the app or via thw RFID it was supposed to detect in the log. I think it’s number 8.

Is your repo able to do it and I didn’t figure out how?

thanks in advance,

pedro

lleonardos commented 1 year ago

i can confirm that the RFID value shows in the Event bus for my vto2211g-wp. but it don´t display as sensor or attribute

flyingpeter commented 1 year ago

Thanks for your answer!

I got ir working wit the other Dahua repo.

It would be interesting to have a sensor to log the openings.

Do you consider to add it?

If not, does this work with your repo:

Right?

Best regards,

Pedro Andrade

No dia 21/08/2023, às 19:25, Lorenzo Leonardos @.***> escreveu:



i can confirm that the RFID value shows in the Event bus for my vto2211g-wp. but it don´t display as sensor or attribute

— Reply to this email directly, view it on GitHubhttps://github.com/rroller/dahua/issues/298#issuecomment-1686819178, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC7QCGBEOWAPBX7CCYKH5OLXWOR3FANCNFSM6AAAAAA3XUU2ME. You are receiving this because you authored the thread.Message ID: @.***>

lleonardos commented 1 year ago

what repo did you use?

flyingpeter commented 1 year ago

[image0.png] Now o use yours. But previously I was using Dahua vto. It worked pretty well but I had to intercept manually the events.

Suddenly I stoped working a couple of weeks ago for me. That’s why I searched again and I found yours!:)

Pedro Andrade

No dia 22/08/2023, às 14:22, Lorenzo Leonardos @.***> escreveu:



what repo did you use?

— Reply to this email directly, view it on GitHubhttps://github.com/rroller/dahua/issues/298#issuecomment-1688179773, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC7QCGDZHYHZJXBQ4OJKAULXWSXAVANCNFSM6AAAAAA3XUU2ME. You are receiving this because you authored the thread.Message ID: @.***>

flyingpeter commented 12 months ago

Hey i got it working like i had before. With event detector. If number 8 it door was unlocked.

flyingpeter commented 12 months ago

Hey i got it working like i had before. With event detector. If number 8 it door was unlocked.

moskovskiy82 commented 9 months ago

Hey i got it working like i had before. With event detector. If number 8 it door was unlocked.

Can you share the event code for HA? Not quite sure where to put the status as per the manual beneath

platform: event event_type: dahua_event_received event_data: name: Cam13 Code: BackKeyLight action: Start

flyingpeter commented 9 months ago

Like this: '{{ trigger.event.data.Data.State | int == 8 }}' ?

moskovskiy82 commented 9 months ago

Like this: '{{ trigger.event.data.Data.State | int == 8 }}' ?

It's even easier

318

flyingpeter commented 9 months ago

I only understood now what you wanted:

alias: Dahua Opening Sniffer trigger: