Speaker Announcement on doors open too long

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
image

I have this settings in devices

But in automation if i chose this speaker in action it does not show me any option what to do next?

Choose service call, and start typing either media player or tts and you will see what you need in the list.

1 Like

an example, how I do it here:

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
1 Like