Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: tv_area_motion
- trigger:
- - platform: state
- entity_id: binary_sensor.stairs_sensor
- to: 'on'
- - platform: state
- entity_id: binary_sensor.stairs_sensor
- to: 'off'
- for:
- seconds: 60
- - platform: state
- # entity_id: !secret binary_sensor_tv_area_motion
- entity_id: binary_sensor.motion_sensor_158d000123291f
- to: 'on'
- - platform: state
- # entity_id: !secret binary_sensor_tv_area_motion
- entity_id: binary_sensor.motion_sensor_158d000123291f
- to: 'off'
- for:
- seconds: 60
- - platform: state
- entity_id: !secret binary_sensor_spare_bedroom_door
- to: 'on'
- action:
- - service: script.light_control
- data_template:
- entity_id: light.tv_area_lamp
- state: "{{ trigger.to_state.state }}"
- brightness: 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement