fix hysteresis
This commit is contained in:
parent
743817f17d
commit
e6df71f10b
1 changed files with 2 additions and 1 deletions
|
@ -95,9 +95,10 @@ sensor:
|
||||||
update_interval: 30s
|
update_interval: 30s
|
||||||
icon: "mdi:thermometer-water"
|
icon: "mdi:thermometer-water"
|
||||||
- platform: template
|
- platform: template
|
||||||
|
id: fan_state_temp
|
||||||
name: "Fan state"
|
name: "Fan state"
|
||||||
lambda: |-
|
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;
|
float deltadp = id(inner_dew_point).state - id(outer_dew_point).state;
|
||||||
if (deltadp > 6.0) {
|
if (deltadp > 6.0) {
|
||||||
fan_state = 1;
|
fan_state = 1;
|
||||||
|
|
Loading…
Reference in a new issue