Files
zorruno-homeassistant/packages/shower_controls.yaml
T
2026-02-05 21:28:48 +13:00

44 lines
1.2 KiB
YAML

input_boolean:
main_bathroom_shower:
name: Main Bathroom Shower
icon: mdi:shower
sensor:
- platform: derivative
name: Main Bathroom Humidity Change Rate
source: sensor.main_bathroom_environment_zth10_humidity_2
unit_time: min
time_window: "00:15:00"
round: 0.1
automation:
- id: main_bathroom_shower_detected
alias: Main Bathroom - Shower detected (humidity rate + min humidity)
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.main_bathroom_humidity_change_rate
above: 0.6
for: "00:05:00"
condition:
- condition: numeric_state
entity_id: sensor.main_bathroom_environment_zth10_humidity_2
above: 63
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.main_bathroom_shower
- id: main_bathroom_shower_cleared
alias: Main Bathroom - Shower cleared (humidity rate)
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.main_bathroom_humidity_change_rate
below: 0.2
for: "00:15:00"
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.main_bathroom_shower