custom-components / climate.programmable_thermostat

Programmable thermostat that let you have a smart thermostat on budget.
The Unlicense
115 stars 35 forks source link

Error during set of HVAC_ACTION #31

Closed koldogut closed 3 years ago

koldogut commented 3 years ago

Hi, I get this error several times a day, my cooling and heating device is the same and don't know if it's trying to switch-on and off the same device at the same time... Here you are my config:

`- platform: programmable_thermostat name: baja heater: switch.bomba_baja cooler: switch.bomba_baja actual_temp_sensor: sensor.s_temp_salon # Salón / Cocina min_temp: 15 max_temp: 30 target_temp_sensor: input_number.temp_target_baja tolerance: 0.3

related_climate: climate.room_2

hvac_options: 7
auto_mode: all

` And the log (debug enabled)

2020-12-14 15:40:08 DEBUG (MainThread) [custom_components.programmable_thermostat.climate] set to heat 2020-12-14 15:40:08 DEBUG (MainThread) [custom_components.programmable_thermostat.climate] climate.baja - new action heating 2020-12-14 15:40:08 DEBUG (MainThread) [custom_components.programmable_thermostat.climate] climate.baja - heaters: ['switch.bomba_baja'] coolers: ['switch.bomba_baja'] _check_mode_type: cool _hvac_mode: heat forced: True 2020-12-14 15:40:08 DEBUG (MainThread) [custom_components.programmable_thermostat.climate] climate.baja - 433- enter in forced mode: True 2020-12-14 15:40:08 DEBUG (MainThread) [custom_components.programmable_thermostat.climate] climate.baja - 438 - coolers: ['switch.bomba_baja'] 2020-12-14 15:40:08 DEBUG (MainThread) [custom_components.programmable_thermostat.climate] climate.baja - mode=cool target=22.0 current=21.6 2020-12-14 15:40:08 DEBUG (MainThread) [custom_components.programmable_thermostat.climate] climate.baja - delta=-0.3999999999999986 2020-12-14 15:40:08 ERROR (MainThread) [custom_components.programmable_thermostat.climate] climate.baja - Error during set of HVAC_ACTION

MapoDan commented 3 years ago

Ciao Strange.. it seems that you are entering in a case that I didn't consider.. Can you tell me in which mode you are?

koldogut commented 3 years ago

Heat

MapoDan commented 3 years ago

Ciao,

I've recreated your issue and yes, it is due to the fact that you have set heater and cooler to the same entity. So you have to fix your setup. Since I'm not clear how you can manage heating and cooling with the same switch, if you really need you can try creating 2 template switches acting with some logic on the same switch.. I'm not sure it will work..

koldogut commented 3 years ago

OK, I'll try to describe logic in a new issue as a "Feature Request"