zacs / ha-dualmodegeneric

Generic thermostat capable of heating and cooling
68 stars 26 forks source link

restore mode #1

Closed gio82c closed 2 years ago

gio82c commented 4 years ago

Hi Zacs,

there is a way to restore the state from cool to cool when i send cmd climate.turn_off and turn on again?

now if is in cool mode and turn off the thermostat when i turn on star on heat mode.

zacs commented 4 years ago

Hmm, that isn't the intended behavior and I've not seen it happen that way. Can you enable logging and paste what you get? To enable logging add this to your conf

logger:
  default: info
  logs:
    custom_components.dualmode_generic: debug
gio82c commented 4 years ago

Thanks for reply, i check the only problem is:

2020-03-24 09:51:30 ERROR (MainThread) [custom_components.dualmode_generic.climate] Unable to update from sensor: could not convert string to float: 'unknown'

i can't see error when turn off and on.

zacs commented 4 years ago

Hmm, can you check that your sensor has a valid state? It’s state attribute should be a number.

gio82c commented 4 years ago

i use a sonoff TH with espurna firmware, it's valid number for temperature and work good i have this message but the thermostat works..

gio82c commented 4 years ago

Sequential message for the component