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: '20:00:00'
- # before: '08:00:00'
- action:
- - service: homeassistant.turn_on
- data:
- entity_id: light.yeelight_rgb_f0b429b7deef
- color_temp: 154
- brightness: 30
- #turn off bedroom light when after 3 minutes was no movemnt
- - alias: Turn off bedroom light no movement
- initial_state: off
- trigger:
- - platform: state
- entity_id: binary_sensor.motion_sensor_158d00010ef41a
- to: 'off'
- for:
- minutes: 5
- action:
- - service: homeassistant.turn_off
- entity_id: light.yeelight_rgb_f0b429b7deef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement