fix hysteresis

This commit is contained in:
Malte 2025-01-01 20:02:48 +01:00
parent 743817f17d
commit e6df71f10b

View file

@ -95,9 +95,10 @@ sensor:
update_interval: 30s
icon: "mdi:thermometer-water"
- platform: template
id: fan_state_temp
name: "Fan state"
lambda: |-
uint8_t fan_state = 0;
uint8_t fan_state = id(fan_state_temp).state;
float deltadp = id(inner_dew_point).state - id(outer_dew_point).state;
if (deltadp > 6.0) {
fan_state = 1;