don’t know anything about haanna.py file??
In the GitHub download there are only 3 files in de custom_components/anna folder.
and non of them are called haanna.py, right? Where can i find haanna.py file?
im on 0.94.4
also when i go to /usr/local/lib/python3.7/site-package/ there is no folder called /haanna
that is mentioned in the log?
Ok, I understand what is wrong, I think you did not download the manifest.json file from the github? When you open this file on your system in the editor, it should show: "haanna==0.8.0" but it likely does not.
When not, please update the file, you can do this by changing the 7 by an 8, then save the file and then restart HA.
You might need to perform the work-around once more.
Not sure if that is the problem @Kumalixis having … looking at the errors the get_current_preset fails, that might be the issue. Let me see if I can reproduce that.
Just to make sure it (generally) works, can you edit the custom_components/anna/climate.py file and around line 156 add a # in front of the get_presets statement so it looks like the below (the # in front of that specific line) and then restart HASS to pick up the change?
self._temperature = self._api.get_target_temperature(domain_objects)
#self._hold_mode = self._api.get_current_preset(domain_objects)
if self._api.get_mode(domain_objects) == True:
I quickly looked at the haanna code and the error message above. Looks to me that the function get_current_preset performs the non-legacy_anna function, while to should perform the legacy_anna function, because Kumalix has an older Anna. So, there might be something wrong with the legacy_anna detection. Maybe @plamola can help?
Not entirely … it’s within the legacy-loop as I read it, just the if active_rule is None: not picking up right. So apparently the Anna of Kumalix has an active_rule but the dictionary doesn’t have the attribute key.
yeeeeeey with the edit of climate.py like Compatech suggested i now finally see Anna entity
So it works but without preset settings? what to do now?
Is it possible to upgrade firmware of Anna? Mabye that is the easy way?
Im paying for Anna monthly so i could contact the company and ask? or?
I’m on 3.1.5 with mine (bought through a store here in NL named after it’s owner) Maybe @plamola can shed some light on how or why, otherwise we’d have to figure out how to get the data from your device to interpret how/why it’s going wrong.
It is not so weird, there are 2 version of the Anna thermostat.
Both CoMPaTech and me have a “new” one, firmware version 3.1.5.
And plamola and you have an “old” one, firmware version 1.8.20.
Found the issue with the 1.8.20. If the schedule is the active rule, the code fails, because the schedule does not have an icon.
The name of the icon is used as the name of the preset.
@CoMPaTech Any change you can you get me the 3.1.5. XML?
I can use it to compare and find out what preset name is used for the scheduled rule and implement similar behavior in the legacy variant.
For those of you tracking, Kevin just merged a couple of changes. haanna is now at 0.90 (@Kumalix that would be the fix you’re looking for from @plamola). If you just download the latest files from https://github.com/laetificat/anna-ha it should also install the latest version of that dependency.