Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- automation:
- #turn on bedroom after 20 PM with movement
- - alias: Turn on bedroom light after 20 PM with movement
- initial_state: 'on'
- trigger:
- - platform: state
- entity_id: binary_sensor.motion_sensor_158d00010ef41a
- to: 'on'
- condition:
- - condition: time
- after: '05:40:00'
- before: '06:00:00'
- action:
- - service: light.turn_on
- data:
- entity_id: light.yeelight_rgb_f0b429b7deef
- color_temp: 154
- brightness: 50
- #turn off bedroom light when after 3 minutes was no movemnt
- - alias: Turn off bedroom light no movement
- initial_state: 'on'
- trigger:
- - platform: state
- entity_id: binary_sensor.motion_sensor_158d00010ef41a
- to: 'off'
- for:
- minutes: 3
- action:
- - service: light.turn_off
- data:
- entity_id: light.yeelight_rgb_f0b429b7deef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement