mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Will pushing from the server break anything?
This commit is contained in:
@@ -10,7 +10,7 @@ trigger:
|
||||
- input_select.master_bathroom_mode
|
||||
- input_select.automatic_light_profile
|
||||
- platform: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
to: "on"
|
||||
|
||||
# Only turn on the lights when necessary
|
||||
@@ -19,7 +19,7 @@ condition:
|
||||
conditions:
|
||||
# Either when motion is detected
|
||||
- condition: template
|
||||
value_template: "{{ trigger.entity_id == 'input_boolean.master_bathroom_occupied' }}"
|
||||
value_template: "{{ trigger.entity_id == 'input_boolean.bathroom_occupied' }}"
|
||||
# Or when the scene changes while the lights are already on
|
||||
- condition: and
|
||||
conditions:
|
||||
@@ -30,7 +30,7 @@ condition:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.entity_id == 'input_select.automatic_light_profile' }}"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
entity_id: input_boolean.bathroom_occupied
|
||||
state: "on"
|
||||
|
||||
variables:
|
||||
@@ -44,7 +44,7 @@ action:
|
||||
target:
|
||||
entity_id:
|
||||
- switch.master_bathroom_motion_switch
|
||||
- switch.shower_switch
|
||||
- switch.master_bathroom_switch
|
||||
- choose:
|
||||
- alias: "If the room is set to manual, just turn the lights on"
|
||||
conditions:
|
||||
|
||||
Reference in New Issue
Block a user