ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
338 stars 49 forks source link

Thermostat is constantly switching to Off - Comfort #47

Closed sergimola closed 2 years ago

sergimola commented 2 years ago

Whatever mode I set every 30s or so, the thermostat is set to Off - Comfort and then back to "Idle - Home" (for instance) for some seconds. Somehow it is actually working fine, it turns on and off the switch as expected and it works like a charm (kudos for this great thermostat!!) but in the UI the behaviour is quite strange. In this screenshot you can see how the target temperature (in purple) is constantly changing from the current preset (sleep 16, home 19, etc.) to the Comfort setting (19.5). image

This is my config, what am I doing wrong?

  - platform: smart_thermostat
    name: Heating
    heater: switch.heating
    target_sensor: sensor.living_room_temperature
    min_temp: 15
    max_temp: 22
    ac_mode: false
    target_temp: 18
    eco_temp: 18
    home_temp: 19
    comfort_temp: 19.5
    boost_temp: 21
    away_temp: 17
    sleep_temp: 16
    cold_tolerance: 0.2
    hot_tolerance: 0
    min_cycle_duration:
      minutes: 1
    keep_alive:
      seconds: 30
    initial_hvac_mode: "off"
    precision: 0.1

Thanks in advance!

ScratMan commented 2 years ago

Hello, your issue looks similar to #46. Did you use the reload service to reload the thermostat ?

sergimola commented 2 years ago

Hello, your issue looks similar to #46. Did you use the reload service to reload the thermostat ?

Yes, I definitely did use the reload service from the UI. After restarting HA it seems to be working just fine, thanks for the fix!