Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (35 sloc) 899 Bytes
---
alias: Lighting Scene - Study
trigger:
- platform: state
entity_id: switch.occ_room_study
from: 'off'
to: 'on'
- entity_id: sensor.light_scene
platform: state
- platform: state
entity_id: binary_sensor.motion_ff_study
from: 'off'
to: 'on'
#- entity_id: sensor.family_family_state_raw
# platform: state
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.family_family_state_raw
below: 9 # He's Awake
above: 1
- condition: state
entity_id: switch.occ_room_study
state: 'on'
- condition: state
entity_id: sensor.house_scene
state: 'Going To Bed'
action:
- service: scene.turn_on
data_template:
entity_id: scene.light_scene_study_tropic
- service: scene.turn_on
data_template:
entity_id: scene.light_{{ states.sensor.light_scene.state.lower() | replace(" ", "_") }}_hallway
You can’t perform that action at this time.