- service: notify.mobile_app_pixel_6
data:
message: >-
Activate movie mode for "{{ media_title | default(media_app) }}"
in the Living Room?
title: Media Mode
data:
actions:
- action: media_mode_livingroom
title: "Yes"
- action: noop
title: "No"
tag: media_mode_livingroom
channel: media_mode
priority: high
ttl: 0
timeout: 300
visibility: public
notification_icon: mdi:movie-open-play
As you can see in the third block of code, the important part is using the action parameter to create an action that when pressed will be fired into the Home Assistant event bus.
So in this case, when I get the notification that a movie is playing on the TV and asking if I want to activate movie mode.
The first block of code, has a trigger that intercepts that event notification_response_action and triggers if the data is response_action: media_mode_livingroom
This should be adaptable for your use case.
You just need an automation that triggers at 22:30, and sends the notification and include an action like -action: garage_door_auto_close then intercept that in the same automation with a trigger. You’ll notice I use a 300 second timeout on my notification which will automatically dismiss the notification if I haven’t responded within 5 minutes. Because I’m obviously not interested in starting movie mode if I haven’t responded in that time. It’s up to you whether you want to keep that, change it to a longer period or omit it entirely.