I’m setting up a notification for my phone that alerts me that it’s a) time for lunch, or b) time to go home, and then asks me if I want to start the car remotely, or delay the start for 10 minutes. In testing, I have it set to either turn on my office light, or turn it off, based on my decision. However, for some reason, no matter which option I pick, it only turns ON the light, and never off. Where am I screwing up?
- service: notify.mobile_app_morgan_phone
data:
message: It's {{ now().strftime('%-I:%M') }}. Would you like to start the car?
data:
actions:
- action: START_CAR
title: Yes, start the car.
- action: DELAY_START_CAR
title: Give me 10 minutes.
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: START_CAR
- platform: event
event_type: mobile_app_notification_action
event_data:
action: DELAY_START_CAR
timeout:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
continue_on_timeout: false
- choose:
- conditions:
- condition: template
value_template: "{{ wait.trigger.action == START_CAR }}"
sequence:
- service: light.turn_on
data: {}
target:
entity_id: light.office_light
- conditions:
- condition: template
value_template: "{{ wait.trigger.action == DELAY_START_CAR }}"
sequence:
- service: light.turn_off
data: {}
target:
entity_id: light.office_light
mode: single