Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.58 KB | None | 0 0
  1. # Bathroom
  2. - alias: "Activity: activity in bathroom"
  3.   trigger:
  4.     platform: state
  5.     entity_id: binary_sensor.presence_4
  6.     to: "on"
  7.   action:
  8.     service: input_boolean.turn_on
  9.     entity_id: input_boolean.activity_in_bathroom
  10.  
  11. - alias: "Activity: no activity in bathroom"
  12.   trigger:
  13.     platform: state
  14.     entity_id: binary_sensor.presence_4
  15.     to: "off"
  16.     for:
  17.       minutes: 5
  18.   condition:
  19.     condition: numeric_state
  20.     below: 90
  21.     entity_id: sensor.humidity_4
  22.   action:
  23.     service: input_boolean.turn_off
  24.     entity_id: light.activity_in_bathroom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement