diff --git a/dewpoint.yaml b/dewpoint.yaml index 6049470..b3d29ed 100644 --- a/dewpoint.yaml +++ b/dewpoint.yaml @@ -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;