Hi,
I have the following ESPHOME code.
switch:
- platform: gpio
name: "Heater"
id: heater
pin: GPIO5
restore_mode: ALWAYS_OFF
inverted: false
sensor:
- platform: ntc
name: temperature
on_value_range:
- above: 55.0
then:
- switch.turn_off: heater
- below: 40.0
then:
- switch.turn_on: heater
sensor: resistance_sensor
calibration:
- 1kOhm -> 25°C
- 3.572kOhm -> -5°C
- 157Ohm -> 80°C
When the NTC goes below the 40 it should turn on the heater. When above the 55 it should turn off the heater. This works correctly for days and suddenly the heater is not turned on anymore. The NTC still gaves the correct values and is dropping below the 40 but for some reason the below: action does not work anymore untitl I reset the wemos or I put the switch on manually and then the sequence is working correct again. It drive me nuts.
Any suggestions to fix this? Or do this differently. This switching happens a few times in 5 minutes. Maybe a stack overflow or so???