-
Notifications
You must be signed in to change notification settings - Fork 80
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
Detect Open door via DMSS and RFID #298
Comments
i can confirm that the RFID value shows in the Event bus for my vto2211g-wp. |
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:
- alias: Dahua VTO All Events
mode: queued
trigger:
- platform: event
event_type: dahua_vto
action:
- service: persistent_notification.create
data:
title: "{{ trigger.event.data.Code if trigger.event.data.Code is defined else 'Unknown Code' }}"
message: "{{ trigger.event.data }}"
- alias: Dahua VTO Command Result
mode: queued
trigger:
- platform: event
event_type: dahua_vto
condition:
- condition: template
value_template: "{{ trigger.event.data.method is defined }}"
action:
- service: persistent_notification.create
data:
title: "{{ trigger.event.data.method }}"
message: "{{ trigger.event.data }}"
- alias: Dahua VTO
mode: queued
trigger:
- platform: event
event_type: dahua_vto
event_data:
Code: BackKeyLight
action:
- choose:
- conditions: >
{{ trigger.event.data.Data.State | int in [0, 1, 2, 5, 6] }}
sequence:
- service: persistent_notification.create
data:
title: "{{ 'Doorbell Ring' if trigger.event.data.Data.State | int in [1, 2] else 'Doorbell No Ring' }}"
message: "{{ trigger.event.data }}"
- conditions: >
{{ trigger.event.data.Data.State | int == 8 }}
sequence:
- service: timer.start
data:
entity_id: timer.door_lock
duration: 00:00:02 # VTO Unlock Period
- service: persistent_notification.create
data:
title: Unlock
message: "{{ trigger.event.data }}"
- conditions: >
{{ trigger.event.data.Data.State | int == 9 }}
sequence:
- service: persistent_notification.create
data:
title: Unlock failed
message: "{{ trigger.event.data }}"
- conditions: >
{{ trigger.event.data.Data.State | int == 11 }}
sequence:
- service: persistent_notification.create
data:
title: Device rebooted
message: "{{ trigger.event.data }}"
default:
- service: persistent_notification.create
data:
title: "Unknown state {{ trigger.event.data.Data.State | int }}"
message: "{{ trigger.event.data }}"
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 GitHub<#298 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC7QCGBEOWAPBX7CCYKH5OLXWOR3FANCNFSM6AAAAAA3XUU2ME>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
what repo did you use? |
[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 GitHub<#298 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC7QCGDZHYHZJXBQ4OJKAULXWSXAVANCNFSM6AAAAAA3XUU2ME>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hey i got it working like i had before. With event detector. If number 8 it door was unlocked. |
1 similar comment
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 |
Like this: |
It's even easier |
I only understood now what you wanted: alias: Dahua Opening Sniffer
|
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
The text was updated successfully, but these errors were encountered: