Hi
I am trying to do an automation when front door are opened too long that will play some information on speakers i have in the kitchen.
I have a door sensor that shows state open or close so if the doors are open for let say 3 minutes i want it to be playing some sound on front door. Is there any easy way to do that?
I see my speakers in HA in
alias: Koelkast deur te lang open
description: ''
trigger:
- type: opened
platform: device
device_id: 63b33aef118b11eb9281afb567acd2c3
entity_id: binary_sensor.koelkast_door_open
domain: binary_sensor
for:
hours: 0
minutes: 2
seconds: 0
condition: []
action:
- service: media_player.play_media
target:
entity_id: media_player.vlc_telnet
data:
media_content_id: http://192.XXX.XXX.XX:8123/local/ns-ding-dong.mp3
media_content_type: music
- service: notify.mobile_app_mischa_op6t
data:
message: Hallo, de koelkast staat nog open. Wil je even kijken?
- service: notify.mobile_app_in2013
data:
message: Hallo, de koelkast staat nog open. Wil je even kijken?
- delay: '00:00:04'
- service: notify.vlctelnetha
data:
message: Hallo, de koelkast staat nog open. Wil je even kijken?
mode: single