blue_room to boys_room

This commit is contained in:
CeeWeasel
2025-10-10 20:24:52 -04:00
parent 10e297961b
commit 5b688e7c78
382 changed files with 8674 additions and 8739 deletions
@@ -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
@@ -40,77 +40,77 @@ variables:
action:
- alias: "Make sure Z-Wave switch is turned on"
service: homeassistant.turn_on
action: homeassistant.turn_on
target:
entity_id:
- switch.master_bathroom_motion_switch
- switch.shower_switch
- choose:
- alias: "If the room is set to manual, just turn the lights on"
conditions:
- alias: "Room set to manual"
condition: state
entity_id: input_select.master_bathroom_mode
state: Manual
sequence:
- service: light.turn_on
target:
- alias: "If the room is set to manual, just turn the lights on"
conditions:
- alias: "Room set to manual"
condition: state
entity_id: input_select.master_bathroom_mode
state: Manual
sequence:
- action: light.turn_on
target:
entity_id: light.master_bathroom_hue
- alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
conditions:
- alias: "Room set to auto"
condition: state
entity_id: input_select.master_bathroom_mode
state: Auto
- alias: "Lights are on"
condition: state
entity_id: light.master_bathroom_hue
state: "on"
sequence:
- action: scene.turn_on
data:
transition: "{{ states('input_number.light_scene_transition') }}"
target:
entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- alias: "If the room is set to auto and the lights are on, change to the Automatic Light Profile scene with a transition"
conditions:
- alias: "Room set to auto"
condition: state
entity_id: input_select.master_bathroom_mode
state: Auto
- alias: "Lights are on"
condition: state
entity_id: light.master_bathroom_hue
state: 'on'
sequence:
- service: scene.turn_on
data:
transition: "{{ states('input_number.light_scene_transition') }}"
target:
entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
conditions:
- alias: "Room set to auto"
condition: state
entity_id: input_select.master_bathroom_mode
state: Auto
- alias: "Lights are off"
condition: state
entity_id: light.master_bathroom_hue
state: "off"
sequence:
- action: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- alias: "If the room is set to auto and the lights are off, change to the Automatic Light Profile scene without a transition"
conditions:
- alias: "Room set to auto"
condition: state
entity_id: input_select.master_bathroom_mode
state: Auto
- alias: "Lights are off"
condition: state
entity_id: light.master_bathroom_hue
state: 'off'
sequence:
- service: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
- alias: "If the room is not set to auto and the lights are on, change to the Master Bathroom Mode scene with a transition"
conditions:
- alias: "Room not manual or auto and lights are on"
condition: state
entity_id: light.master_bathroom_hue
state: "on"
sequence:
- action: scene.turn_on
data:
transition: "{{ states('input_number.light_scene_transition') }}"
target:
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- alias: "If the room is not set to auto and the lights are on, change to the Master Bathroom Mode scene with a transition"
conditions:
- alias: "Room not manual or auto and lights are on"
condition: state
entity_id: light.master_bathroom_hue
state: 'on'
sequence:
- service: scene.turn_on
data:
transition: "{{ states('input_number.light_scene_transition') }}"
target:
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- alias: "If the room is not set to auto and the lights are on, change to the Master Bathroom Mode scene without a transition"
conditions:
- alias: "Room not manual or auto and lights are off"
condition: state
entity_id: light.master_bathroom_hue
state: "off"
sequence:
- action: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- alias: "If the room is not set to auto and the lights are on, change to the Master Bathroom Mode scene without a transition"
conditions:
- alias: "Room not manual or auto and lights are off"
condition: state
entity_id: light.master_bathroom_hue
state: 'off'
sequence:
- service: scene.turn_on
target:
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
- delay: 1
- delay: 1
@@ -1,18 +1,18 @@
alias: 'Master Bathroom Not Occupied'
alias: "Master Bathroom Not Occupied"
id: automation_master_bathroom_not_occupied
mode: restart
trigger:
- platform: state
entity_id: input_boolean.home_occupied
from: 'on'
to: 'off'
from: "on"
to: "off"
- platform: state
entity_id:
- input_boolean.home_occupied
- binary_sensor.master_bathroom_occupied
to: 'off'
for: '00:10:00'
to: "off"
for: "00:10:00"
# - platform: time_pattern
# minutes: "/5"
@@ -22,32 +22,32 @@ condition:
conditions:
- condition: state
entity_id: input_boolean.home_occupied
state: 'off'
state: "off"
- condition: and
conditions:
- condition: state
entity_id: input_boolean.master_bathroom_occupied
state: 'on'
state: "on"
- condition: state
entity_id: binary_sensor.master_bathroom_occupied
state: 'off'
for: '00:10:00'
state: "off"
for: "00:10:00"
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.home_occupied
state: 'off'
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.master_bathroom_occupied
- conditions:
- condition: not
conditions:
- condition: state
entity_id: input_select.house
state: 'Manual'
sequence:
- service: homeassistant.turn_off
entity_id: input_boolean.master_bathroom_occupied
- conditions:
- condition: state
entity_id: input_boolean.home_occupied
state: "off"
sequence:
- action: homeassistant.turn_off
entity_id: input_boolean.master_bathroom_occupied
- conditions:
- condition: not
conditions:
- condition: state
entity_id: input_select.house
state: "Manual"
sequence:
- action: homeassistant.turn_off
entity_id: input_boolean.master_bathroom_occupied
@@ -6,13 +6,13 @@ trigger:
- platform: state
entity_id:
- binary_sensor.master_bathroom_occupied
to: 'on'
to: "on"
condition:
- condition: state
entity_id: input_boolean.master_bathroom_occupied
state: 'off'
state: "off"
action:
- service: input_boolean.turn_on
- action: input_boolean.turn_on
entity_id: input_boolean.master_bathroom_occupied