Files
fresh-home/esphome/common/binary_sensor/too_humid.yaml
T
2025-12-03 20:23:33 -05:00

36 lines
840 B
YAML

number:
- platform: template
name: High Humidity Trigger
id: val_humidity
icon: mdi:gauge-full
unit_of_measurement: '%'
entity_category: config
optimistic: True
restore_value: True
initial_value: 70
min_value: 0
max_value: 100
step: 1.0
mode: box
- platform: template
name: Humidity Change Trigger
id: val_derivative
icon: mdi:gauge-full
unit_of_measurement: ''
entity_category: config
optimistic: True
restore_value: True
initial_value: 2.0
min_value: -10.0
max_value: 10.0
step: .01
mode: box
binary_sensor:
- platform: template
name: Too Humid
id: too_humid
device_class: moisture
lambda: return id(relative_humidity).state >= id(val_humidity).state or id(relative_humidity_change).state >= id(val_derivative).state;