ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
352 stars 50 forks source link

Strange behaviour / boost preset / PID off #144

Closed TTLucian closed 1 year ago

TTLucian commented 1 year ago

Hello. I'm having issues with the integration, can't figure out the cause. If set to boost mode with PID off the thermostat behaves as seen in the attached photo. Don't know exactly when (what version) this started happening but it was working as expected a few versions back. The heating intervals seem to be roughly 10 minutes and then stop and start again. I was was expecting for it to stop heating once it reaches the target temp and not every 10 minutes. image Here's my config:

- platform: smart_thermostat
  name: Heating
  unique_id: climate.heating
  heater: switch.sonoff_heater
  target_sensor: sensor.temperature_heating_average
  outdoor_sensor: sensor.temperature_outside_average
  keep_alive: 60
  kp: 150
  ki: 0.002
  kd: 15000
  ke: 0.6
  pwm: 1800
  min_cycle_duration: 600
  min_off_cycle_duration: 10
  min_cycle_duration_pid_off: 10
  min_off_cycle_duration_pid_off: 10
  boost_pid_off: true
  sampling_period: 60
  target_temp_step: 0.1
  precision: 0.1
  min_temp: 15
  max_temp: 24
  ac_mode: false
  away_temp: 15
  eco_temp: 19
  boost_temp: 23
  cold_tolerance: 0.1
  hot_tolerance: 0.1
  preset_sync_mode: sync
TTLucian commented 1 year ago

I get the same behaviour with PID turned on. PID values seem to be good but the thermostat seems to be heating in 10 minute pulses. Maybe something related to min_cycle_duration??!?!

image

Chupaka commented 1 year ago

Hey @TTLucian, you may want to enable info-level logging (or even debug) for smart_thermostat and see what happens in your log:

In configuration.yaml,

logger:
  logs:
    custom_components.smart_thermostat: info
TTLucian commented 1 year ago

Nevermind. Found the problem. It's not related to this integration. Sorry!

teklabania commented 8 months ago

Found the problem.

@TTLucian, what was your problem? I came into the same situation you described in your first post.

TTLucian commented 8 months ago

I have a Sonoff basic as the switch for the boiler and it was set to 10 minutes inching in the Ewelink app... 🤦🏻