Add manual wakeup trigger

This commit is contained in:
2024-02-01 18:21:41 -05:00
parent e0f778bdeb
commit 19db5100c1

View File

@ -2465,6 +2465,15 @@
- c3909d27048140729f002aaef0391775 - c3909d27048140729f002aaef0391775
alias: Wakeup alias: Wakeup
id: wakeup id: wakeup
- platform: event
event_type: ios.action_fired
id: manual-wakeup
event_data:
actionName: Manual Wakeup
context:
user_id:
- c3909d27048140729f002aaef0391775
alias: Manual Wakeup
- platform: state - platform: state
entity_id: entity_id:
- input_number.tony_afternoon_meds_interval - input_number.tony_afternoon_meds_interval
@ -2578,6 +2587,11 @@
condition: trigger condition: trigger
id: id:
- wakeup - wakeup
- manual-wakeup
- condition: state
entity_id: input_boolean.tony_awake
state: 'off'
alias: If I am not already awake
sequence: sequence:
- if: - if:
- condition: state - condition: state
@ -3212,18 +3226,23 @@
type: '{{ trigger.split(''-'')[0] }}' type: '{{ trigger.split(''-'')[0] }}'
reason: '{{ trigger.split(''-'')[1] }}' reason: '{{ trigger.split(''-'')[1] }}'
alias: Define variables alias: Define variables
- choose: - alias: Routing
choose:
- conditions: - conditions:
- condition: template - condition: template
value_template: '{{ type == ''wake'' }}' value_template: '{{ type == ''wake'' }}'
alias: Wakeup alias: Wakeup
sequence: sequence:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: input_boolean.turn_on - service: input_boolean.turn_on
data: {} data: {}
target: target:
entity_id: input_boolean.tony_awake entity_id: input_boolean.tony_awake
alias: Set context that I am awake alias: Set context that I am awake
alias: Routing
mode: restart mode: restart
- id: '1696985389177' - id: '1696985389177'
alias: Master Bedroom Adaptive Resync alias: Master Bedroom Adaptive Resync