SHARE
TWEET

Untitled

a guest Mar 21st, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - alias: Light on, kitchen (motion detected)
  2.   id: 'kitchen_motion'
  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.         before: "23:00:00"
  15.       - condition: state
  16.         entity_id: sun.sun
  17.         state: below_horizon
  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'
  29.   action:
  30.     - service: hue.hue_activate_scene
  31.       data_template:
  32.         group_name: "Kitchen"
  33.         scene_name: "KitchenBright"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top