mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
blue_room to boys_room
This commit is contained in:
@@ -14,10 +14,9 @@ trigger:
|
||||
# minutes: "/5"
|
||||
|
||||
condition:
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.lights_off_manually
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: light.master_bathroom_hue
|
||||
state: "on"
|
||||
@@ -31,36 +30,36 @@ condition:
|
||||
state: "off"
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bathroom_mode
|
||||
state: 'Off'
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
state: 'off'
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bathroom_mode
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
transition: 5
|
||||
target:
|
||||
entity_id: scene.master_bathroom_hue_off
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'on'
|
||||
sequence:
|
||||
- alias: "Turn off z-wave switch since all lights are off"
|
||||
service: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: switch.master_bathroom_motion_switch, switch.shower_switch
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.lighting_automations
|
||||
state: "on"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bathroom_mode
|
||||
state: "Off"
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bathroom_occupied
|
||||
state: "off"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_select.master_bathroom_mode
|
||||
state: "Manual"
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
data:
|
||||
transition: 5
|
||||
target:
|
||||
entity_id: scene.master_bathroom_hue_off
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: "on"
|
||||
sequence:
|
||||
- alias: "Turn off z-wave switch since all lights are off"
|
||||
action: homeassistant.turn_off
|
||||
target:
|
||||
entity_id: switch.master_bathroom_motion_switch, switch.shower_switch
|
||||
|
||||
Reference in New Issue
Block a user