So everything works as you expected?
A few questions,
I have played around with many of my doorbell functions.
I have gotten it to flash some lights which is great.
Now I would like it to push me a notification to (telegram/pushover, etc) that the bell had been rung.
- alias: Dahua VTO Ring
mode: queued
trigger:
- platform: event
event_type: dahua_vto
event_data:
Code: BackKeyLight
- choose:
- conditions: >
{{ trigger.event.data.Data.State | int in [0, 1, 2, 5, 6] }}
sequence:
- service: homeassistant.turn_on
entity_id: switch.kitchen_light_switch
can anyone tell me how to add a notify.xxx to this.
Also I would like a decent dmss app for android. Many I have tried I am not happy with.
Thanks
Simplest way would be to use the HA companion app and avoid having to mess with third party integrations. Once you have it set up, you would simply change your automation to this:
- alias: Dahua VTO Ring
mode: queued
trigger:
- platform: event
event_type: dahua_vto
event_data:
Code: BackKeyLight
- choose:
- conditions: >
{{ trigger.event.data.Data.State | int in [0, 1, 2, 5, 6] }}
sequence:
- service: homeassistant.turn_on
entity_id: switch.kitchen_light_switch
- service: notify.mobile_app_your_mobile
data:
message: Someone's at the door
title: Ding Dong
data:
color: blue
ttl: 0
priority: high
PS - You don’t need that choose
part since you only have one condition.
How were you able to find out the ‘secret’? Thank you!
Hi, please help me . I have a DHI-VTO2111D-P-S3.
It returns an error when I apply #Cancel TO Call
event_type: dahua_vto
data:
error:
code: 268959743
message: Unknown error! error code was not set in service!
result: false
method: console.runCmd
entity_id: sensor.dahua_vto
origin: LOCAL
time_fired: “2024-11-19T09:03:16.662282+00:00”
context:
id: 01JD1TJTNPNHPA0DHNG91NBDD5
parent_id: null
user_id: null