Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bathroom
- - alias: "Activity: activity in bathroom"
- trigger:
- platform: state
- entity_id: binary_sensor.presence_4
- to: "on"
- action:
- service: input_boolean.turn_on
- entity_id: input_boolean.activity_in_bathroom
- - alias: "Activity: no activity in bathroom"
- trigger:
- platform: state
- entity_id: binary_sensor.presence_4
- to: "off"
- for:
- minutes: 5
- condition:
- condition: numeric_state
- below: 90
- entity_id: sensor.humidity_4
- action:
- service: input_boolean.turn_off
- entity_id: light.activity_in_bathroom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement