Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.69 KB | None | 0 0
  1. - alias: Light on, kitchen night light
  2.   id: 'kitchen_nightlight_on'
  3.   hide_entity: True
  4.   initial_state: 'on'
  5.   trigger:
  6.     platform: state
  7.     entity_id: binary_sensor.motion_kitchen
  8.     from: 'off'
  9.     to: 'on'
  10.   condition:
  11.     condition: and
  12.     conditions:
  13.     - condition: time
  14.       after: "23:00:00"
  15.     - condition: sun
  16.       before: sunrise
  17.       before_offset: "01:00:00"
  18.     - condition: state
  19.       entity_id: light.kitchen
  20.       state: 'off'
  21.     - condition: or
  22.       conditions:
  23.       - condition: state
  24.         entity_id: binary_sensor.bora_bayesian
  25.         state: 'on'
  26.       - condition: state
  27.         entity_id: binary_sensor.graham_bayesian
  28.         state: 'on'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement