mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
quieting down the power meter, eventually going to clean up the database and testing new lighting automation for bedroom
This commit is contained in:
@@ -23,7 +23,9 @@ trigger:
|
||||
|
||||
- platform: state
|
||||
id: occupied
|
||||
entity_id: binary_sensor.bedroom_occupied
|
||||
entity_id:
|
||||
- binary_sensor.bedroom_occupied
|
||||
- input_boolean.bedroom_occupied
|
||||
to: "on"
|
||||
|
||||
# - platform: state
|
||||
@@ -87,6 +89,32 @@ action:
|
||||
action: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: "{{ switch_name }}"
|
||||
|
||||
- choose:
|
||||
- alias: "If the room is set to adaptive, turn all adaptive switches on "
|
||||
conditions:
|
||||
- alias: "Room set to adaptive"
|
||||
condition: state
|
||||
entity_id: input_select.master_bedroom_mode
|
||||
state: Adaptive
|
||||
sequence:
|
||||
- action: switch.turn_on
|
||||
target:
|
||||
entity_id:
|
||||
- switch.adaptive_lighting_bedroom
|
||||
- switch.adaptive_lighting_adapt_brightness_bedroom
|
||||
- switch.adaptive_lighting_adapt_color_bedroom
|
||||
- action: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.adaptive_lighting_sleep_mode_bedroom
|
||||
default:
|
||||
- action: switch.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- switch.adaptive_lighting_bedroom
|
||||
- switch.adaptive_lighting_adapt_brightness_bedroom
|
||||
- switch.adaptive_lighting_adapt_color_bedroom
|
||||
|
||||
- choose:
|
||||
- alias: "If the room is set to manual, just turn the lights on"
|
||||
conditions:
|
||||
|
||||
Reference in New Issue
Block a user