ha-dual-smart-thermostat icon indicating copy to clipboard operation
ha-dual-smart-thermostat copied to clipboard

Switch gets randomly turned on and off

Open oxymoron1629 opened this issue 2 years ago • 2 comments

I'm trying to wrap my head around the behavior this component seems to take. Before is my config. ` platform: dual_smart_thermostat

name: Virtual Bedroom
heater: switch.bedroom_ac_heat
cooler: switch.bedroom_ac_cool
target_sensor: sensor.bedroom_temperature_sensor_temperature
min_temp: 55
max_temp: 80
ac_mode: false
target_temp: 68
target_temp_high: 73
target_temp_low: 68
cold_tolerance: 0.5
hot_tolerance: 0.5
min_cycle_duration:
  minutes: 2
initial_hvac_mode: "heat_cool"
away_temp: 60
precision: 0.1`

For some reason, despite the temperature being outside the target temp and tolerance, the component keeps turning the switch on and off repeatedly. See log of the switch.

Screenshot_20220401-153729_Home Assistant

Any ideas why this would be happening? Is it an issue with my config? What's weird to me is that it's toggling the switch faster than the minimal cycle duration. Any help would be greatly appreciated.

oxymoron1629 avatar Apr 01 '22 19:04 oxymoron1629

please install the latest version (0.6.0) and let me know if it still exists

swingerman avatar May 13 '22 22:05 swingerman

I'm also seeing this image On latest version: image Config:

climate:
  - platform: dual_smart_thermostat
    name: Thermo2
    heater: switch.sonoff_1000a7dfc0
    cooler: climate.daikinap67520
    target_sensor: sensor.bedroom_temperature
    openings:
      - binary_sensor.door_and_window_sensor_6a40
      - binary_sensor.door_and_window_sensor_cb42
      - binary_sensor.door_and_window_sensor_f364_contact_sensor_f364
    min_temp: 15
    max_temp: 30
    ac_mode: false
    target_temp: 20
    target_temp_high: 25
    target_temp_low: 20
    cold_tolerance: 0.3
    hot_tolerance: 0
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3
    initial_hvac_mode: "heat_cool" # hvac mode vill reset to this value after restart
    away_temp: 17
    precision: 0.1

eSeR1805 avatar Oct 25 '22 19:10 eSeR1805

Added a fix that you can test in the latest beta: https://github.com/swingerman/ha-dual-smart-thermostat/releases/tag/v0.9.0-beta.2

swingerman avatar Jul 16 '23 22:07 swingerman