I’m trying to setup an actionable notification that asks me if I’m still awake if it’s late at a night and gives me two options. If I say “I’m still awake” it waits an hour then asks me again. If I click “sleep time” it will shut everything off. That’s all working, but I would like the “sleep time” to also trigger if I reach the timeout for the wait_for_trigger. Here’s my script that I think is close, but it’s not triggering the ASLEEP event to fire my goodnight automation:
alias: Goodnight Response
sequence:
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: AWAKE
timeout: 15
- if:
- "{{wait.trigger}}"
then:
- event: ASLEEP
mode: single
Any help would be greatly appreciated!
2 posts - 2 participants