Turn porch decorations on when the schedule is run manually.
A manual run has no trigger id, so the sunset branch never matched and Right Porch Outlet 2 stayed off. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -48,8 +48,13 @@
|
|||||||
actions:
|
actions:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: or
|
||||||
id: decorations_on
|
conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: decorations_on
|
||||||
|
# A manual run has no trigger id. Treat it as the sunset turn-on.
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ trigger.id | default(none) is none }}"
|
||||||
sequence:
|
sequence:
|
||||||
- action: switch.turn_on
|
- action: switch.turn_on
|
||||||
continue_on_error: true
|
continue_on_error: true
|
||||||
|
|||||||
Reference in New Issue
Block a user