Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - id: fc69f9fb68084b1aa787b7745a4fad26
- alias: Lampka nocna lili on
- trigger:
- - entity_id: binary_sensor.motion_sensor
- from: 'off'
- platform: state
- to: 'on'
- condition:
- - condition: state
- entity_id: switch.multi_relay_0_1
- state: 'off'
- - condition: or
- conditions:
- - condition: state
- entity_id: switch.multi_relay_0_2
- state: 'off'
- - after: sunset
- after_offset: -01:30:00
- before: sunrise
- before_offset: 02:00:00
- condition: sun
- action:
- - entity_id: light.night_lamp
- service: light.turn_on
- - delay: 00:01:05
- - entity_id: light.night_lamp
- service: light.turn_off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement