mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 11:00:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -14,8 +14,8 @@ trigger:
|
||||
- platform: state
|
||||
id: light_level
|
||||
entity_id: binary_sensor.dining_room_naturally_lit
|
||||
from: 'on'
|
||||
to: 'off'
|
||||
from: "on"
|
||||
to: "off"
|
||||
|
||||
- platform: state
|
||||
id: occupied
|
||||
@@ -36,7 +36,6 @@ condition:
|
||||
- alias: "Check if light should turn on"
|
||||
condition: or
|
||||
conditions:
|
||||
|
||||
- alias: "Guest mode is on"
|
||||
condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
@@ -48,7 +47,7 @@ condition:
|
||||
- alias: "Light level below trigger amount"
|
||||
condition: state
|
||||
entity_id: binary_sensor.dining_room_naturally_lit
|
||||
state: 'off'
|
||||
state: "off"
|
||||
- alias: "Motion or occupancy were detected"
|
||||
condition: or
|
||||
conditions:
|
||||
@@ -81,7 +80,7 @@ condition:
|
||||
|
||||
# action:
|
||||
# - alias: "Make sure Z-Wave switch is turned on"
|
||||
# service: homeassistant.turn_on
|
||||
# action: homeassistant.turn_on
|
||||
# target:
|
||||
# entity_id: "{{ switch_name }}"
|
||||
# - choose:
|
||||
@@ -92,7 +91,7 @@ condition:
|
||||
# entity_id: input_select.dining_room_mode
|
||||
# state: Manual
|
||||
# sequence:
|
||||
# - service: light.turn_on
|
||||
# - action: light.turn_on
|
||||
# target:
|
||||
# entity_id: light.dining_room_hue
|
||||
|
||||
@@ -107,7 +106,7 @@ condition:
|
||||
# entity_id: light.dining_room_hue
|
||||
# state: 'on'
|
||||
# sequence:
|
||||
# - service: scene.turn_on
|
||||
# - action: scene.turn_on
|
||||
# data:
|
||||
# transition: "{{ states('input_number.light_scene_transition') }}"
|
||||
# target:
|
||||
@@ -124,7 +123,7 @@ condition:
|
||||
# entity_id: light.dining_room_hue
|
||||
# state: 'off'
|
||||
# sequence:
|
||||
# - service: scene.turn_on
|
||||
# - action: scene.turn_on
|
||||
# target:
|
||||
# entity_id: "scene.{{light_name}}_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
|
||||
|
||||
@@ -135,7 +134,7 @@ condition:
|
||||
# entity_id: light.dining_room_hue
|
||||
# state: 'on'
|
||||
# sequence:
|
||||
# - service: scene.turn_on
|
||||
# - action: scene.turn_on
|
||||
# data:
|
||||
# transition: "{{ states('input_number.light_scene_transition') }}"
|
||||
# target:
|
||||
@@ -148,14 +147,14 @@ condition:
|
||||
# entity_id: light.dining_room_hue
|
||||
# state: 'off'
|
||||
# sequence:
|
||||
# - service: scene.turn_on
|
||||
# - action: scene.turn_on
|
||||
# target:
|
||||
# entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
|
||||
|
||||
action:
|
||||
- alias: "Make sure Z-Wave switch is turned on"
|
||||
service: homeassistant.turn_on
|
||||
action: homeassistant.turn_on
|
||||
target:
|
||||
entity_id: switch.dining_room_switch
|
||||
|
||||
- delay: 1
|
||||
- delay: 1
|
||||
|
||||
Reference in New Issue
Block a user