Generic thermostat not triggering heater switches

Hi!

I have configured a generic thermostat with a aeotec multisensor providing the temperature reading, and two fibaro wall plugs turning on or off two electric heaters in my room. I haven’t been able to pinpoint if my problems occur at startup and last until I restart, or if they are transient, but relatively often home assistant simply doesn’t turn the switches on or off. Even if the setpoint is 15 deg Celsius and the reported temperature is 25 degrees, the switches will stay on permanently, and the other way around. Mind you the configuration does work about 50% of the time, so I don’t feel that this is an issue in the way I have configured the thermostat.

climate:
  - platform: generic_thermostat
    name: livingroom
    heater: switch.livingarea_radiators
    target_sensor: sensor.living_room_temperature
    target_temp: 20
    min_temp: 15
    max_temp: 25    
    min_cycle_duration:
      seconds: 1

As I am new to Home Assistant (migrated recently from OpenHAB), I’m not sure how to troubleshoot this further. I can’t find any relevant info in the home-assistant.log-file. Has anyone experienced this issue, or have a tip on how I can troubleshoot this?

Any errors in the log?

No, the home-assistant.log-file doesn’t have any errors. Are there perhaps some other log files I should be looking at?

If You go to your-ip:8123/logbook
You should see something like
generic_thermostat Turned to heat
when it turns on.

Do you see that?
You can trigger it by changing the target temp from a low temperature to a high temperature.

You can also try to remove the
min_cycle_duration:
seconds: 1
from the configuration

Thanks! No, I don’t see any listings for generic_thermostat or any other automation for that matter. It only shows updates of sensors and input_booleans/selects/slides.

I do see these lines in the home-assistant.log-file though. They list operation_mode=idle… Is this the variable that is supposed to say “heat”?

16-11-19 15:38:18 homeassistant.core: Bus:Handling <Event state_changed[L]: entity_id=climate.livingroom, new_state=<state climate.livingroom=idle; friendly_name=livingroom, operation_mode=idle, current_temperature=21.7, max_temp=25.0, temperature=20.0, min_temp=15.0, unit_of_measurement=°C @ 2016-11-19T15:24:30.191397+01:00>, old_state=<state climate.livingroom=idle; friendly_name=livingroom, operation_mode=idle, current_temperature=21.8, max_temp=25.0, temperature=20.0, min_temp=15.0, unit_of_measurement=°C @ 2016-11-19T15:24:30.191397+01:00>>

Hmm, it seems to be a bug.
You should report it here: https://github.com/home-assistant/home-assistant/issues/new

Did you find a solution? I am having the same problem…

1 Like

I am also having the same problem in version .80.1

Sometimes it won’t shut off after hitting setpoint, sometimes it is not turning on the Fibaro wall plug. The thermostat itself believes that the wall plug is on (showing green in the graph). I do not have any coverage issues, it is just 4 metres away from the UZB z-wave stick.