Advice how to load sensor info from Plugwise Anna thermostat web interface XML

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.

Yes i did, well i copied the manifest.json raw code to a file i created via configurator.
And my manifest.json file also shows `“haanna==0.8.0”.

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.

@Kumalix which firmware are you on?

hi,

I have Anna firmware version: 1.8.20
HASSIO version 0.94.4

Hoop you can help.

tnx

I don’t have a 1.8 (or experience with that) but I see some updates in https://github.com/laetificat/haanna/pull/3 I did create https://github.com/laetificat/haanna/issues/4 to see if we can figure this out further, otherwise I might bug you to generate the XML for us, but let’s first see if we can get it working :slight_smile:

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.

@Kumalix sorry forgot to mention you on Advice how to load sensor info from Plugwise Anna thermostat web interface XML

Yes, I see what you mean.

yeeeeeey with the edit of climate.py like Compatech suggested i now finally see Anna entity :smiley:

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?

On witch firmware version you guys run Anna?

thanx for the help

Good to hear we made some progress!

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.

I checked online but can’t find anything on upgrading firmware of Anna?

Hope some can help!?:grimacing:

In the webinterfase i can check for new firmware but after check it sais ana is up to date.
But it isn’t? old hardware?

I have a snippet containing the XML of my Anna, with firmware 1.8.20 available at https://gist.github.com/plamola/9c14d83b8e5acd7e718436c4f2589fd5

Bit busy atm, so I won’t be able to look into this issue until the weekend.

Tnx, will have a look at that one to see how it works. Not even sure why I have 3.1.5 as the website from plugwise even indicates 1.8?

Weird :face_with_monocle:

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.

Here you go:

https://gist.github.com/CoMPaTech/a6be3abc7da3891ccf567b8e8988ce6d
https://gist.github.com/CoMPaTech/3cf2c10b4cda5571a6a4f2e16f94e4dc

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.