jmcollin78 / versatile_thermostat

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

Set preset target temperature not updating in ac mode #119

Closed MaxWaldorf closed 1 year ago

MaxWaldorf commented 1 year ago

With the changes you have done, I have created the following script to update the comfort target in comfort mode:

service: versatile_thermostat.set_preset_temperature
data:
  temperature: "{{ state_attr('climate.thermostat_livingroom_2', 'temperature') | float }}"
  temperature_away: "27"
  preset: comfort_ac
target:
  entity_id: climate.livingroom_ac_2

It works great in heat mode but in AC mode I have to go to another preset and go back to comfort for it to take the new value into account...

Désolé, je suis ch... :)

jmcollin78 commented 1 year ago

Non tu n'es pas ch.... tu veux faire marcher et je te remercie du signalement. Ca améliore la plateforme pour tout le monde.

I don't have really test it but I see it should work out of the box. I will have a look. I'm sure it is very simple.

jmcollin78 commented 1 year ago

Hello,

I have published a try to fix the issue. It seems working on my test env. Can you please check with your configuration if it is working ? If yes I will release the fix.

The pre-release is this one: https://github.com/jmcollin78/versatile_thermostat/releases/tag/3.5.4alpha1