Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Light on, kitchen night light
- id: 'kitchen_nightlight_on'
- hide_entity: True
- initial_state: 'on'
- trigger:
- platform: state
- entity_id: binary_sensor.motion_kitchen
- from: 'off'
- to: 'on'
- condition:
- condition: and
- conditions:
- - condition: time
- after: "23:00:00"
- - condition: sun
- before: sunrise
- before_offset: "01:00:00"
- - condition: state
- entity_id: light.kitchen
- state: 'off'
- - condition: or
- conditions:
- - condition: state
- entity_id: binary_sensor.bora_bayesian
- state: 'on'
- - condition: state
- entity_id: binary_sensor.graham_bayesian
- state: 'on'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement