Dahua VTO custom integration

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.

1 Like