I have the following automation which plays the camera stream from my Unifi doorbell to my Google home. The problem is that it is triggered 4 times lately for unknown reasons. Is there anything i can improve on my automation?
Maybe a condition i can add?
- id: deurbel
alias: Iemand drukt op de deurbel
trigger:
- platform: state
entity_id: binary_sensor.unifi_g4_deurbel_doorbell
from: 'off'
to: 'on'
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: camera.play_stream
target:
entity_id: camera.unifi_g4_deurbel_high
data:
media_player: media_player.tv_meubel
format: hls
- delay:
hours: 0
minutes: 0
seconds: 20
milliseconds: 0
- service: media_player.turn_off
entity_id: media_player.tv_meubel