Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103433

Trigger Event if Actionable Notification Timeout Reached

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 103433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>