jmcollin78 / versatile_thermostat

A full featured Thermostat for Home Assistant: presets, window, motion, presence and overpowering management
MIT License
332 stars 36 forks source link

climate.turn_on and climate.turn_off do no longer work #419

Closed Ra72xx closed 8 months ago

Ra72xx commented 8 months ago

I recently noticed that my automations do no longer work. I can't pinpoint exactly since when, it must be only since a few releases. The reason is that the functions "climate.turn_on" and "climate.turn_off" are available, but do no longer work, at least for my virtual versatile thermostats regulating real Aqara thermostats. They result in: websocket_api script: Error executing script. Unexpected error for call_service at pos 1: type object 'HVACMode' has no attribute 'HEATING' The function "climate.set_hvac_mode" still seems to work, however.

cazzzimir commented 8 months ago

Yep ! I confirm ! got same issue ! I've just upgraded to 6.0.1 / was working on 5.0.4

jmcollin78 commented 8 months ago

Oh sorry, I just add two methods for the error message in 6.0.1. you can revert to 6.0.0 if.you want

sleveille4 commented 8 months ago

hi, ran into the same issue with automation and climate entities, but not limited to versatile thermostat.

i assumed it had to do with HA update (deprecating this? ) and i replaced the generic turn off / turn on & climate_turn on / off i used previously wich no longer work with climate.set_temperature or climate.set_hvac_mode sending "heat" or "off"

climate.set_temperature allows to control hvac mode and set a target temp at the same time

jmcollin78 commented 8 months ago

I have fixed the issue but not published yet. It will come soon

sleveille4 commented 8 months ago

just wanted to share my experience as since it is not limited to versatile, and i found a working alternative, it would help :)

jmcollin78 commented 8 months ago

https://github.com/jmcollin78/versatile_thermostat/releases/tag/6.0.2