fustom / ariston-remotethermo-home-assistant-v3

Ariston NET remotethermo integration for Home Assistant based on API
MIT License
147 stars 37 forks source link

Request: change code for target temperature (wrong target temprature is shown) #238

Open kcvanderlinden opened 9 months ago

kcvanderlinden commented 9 months ago

On the thermostat card, the target tempreture is displayed incorrect. I use a time program that is generally as follows:

So, I use two modes. However, in both situations, the target tempreture is displayed as 20.0 degrees Celsius. So, I digged into the code and singled the line of code that causes this: line 123 in ariston/climate.py. Currently it refers to the Comfort temperature. I changed it (using the ariston API as a reference), and now it succesfully updates according to the time program. Current line of code:

return self.device.get_comfort_temp_value(self.zone)

I changed it with the following:

return self.device._get_item_by_id(item_id="ZoneDesiredTemp", item_value="value", zone_number=1)