I have this automation that speaks and sends a notification that the garage door is opened. How can I change that to give me an option in the notification to close the garage door when I press it on my phone to do so?
alias: Speak Garage Door Opened `trigger:
- entity_id: cover.gogogate_garage_door
for: "00:04"
platform: state
to: open
condition: []
action:
- service: notify.notify
data:
message: The garage door is opened
data:
ttl: 0
priority: high
- parallel:
- data_template:
delay: "00:00:03"
message: The garage door is opened
sonos_entity: media_player.sonos_beam
volume: "{{ state_attr('media_player.sonos_beam','volume_level') }}"
service: script.sonos_beam_tts
- data_template:
delay: "00:00:03"
message: The garage door is opened
sonos_entity: media_player.sonos_one
volume: "{{ state_attr('media_player.sonos_one','volume_level') }}"
service: script.sonos_one_tts
mode: single