Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Light on, kitchen (motion detected)
- id: 'kitchen_motion'
- 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
- before: "23:00:00"
- - condition: state
- entity_id: sun.sun
- state: below_horizon
- - 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'
- action:
- - service: hue.hue_activate_scene
- data_template:
- group_name: "Kitchen"
- scene_name: "KitchenBright"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement