Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Turn on kitchen light when movement
- trigger:
- platform: state
- entity_id: binary_sensor.motion_sensor_158d00016560a4
- to: 'on'
- condition:
- condition: or
- conditions:
- - condition: sun
- after: sunset
- after_offset: "-00:45:00"
- - condition: sun
- before: sunrise
- before_offset: "00:30:00"
- action:
- service: homeassistant.turn_on
- entity_id: group.diskbank
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement