@CoMPaTech, you could always set up your own repository/fork, this happens quite regularly with other addons, is my impression
No need to give me commit permissions, I need to pay more attention to my “real life” the coming months I’m sorry to say…
I’m thinking about buying one of these, but it still seems like a hassle to set it up. @CoMPaTech, any plans to release it directly under HA as a component at some point?
I suggested it to the author, but maybe @bouwew is right and we should move it forward, but as he has already done the PyPI stuff it would be useful not to clash. Let’s give the author another week on GitHub to respond before getting into gear, it’s not that much of a hassle (unless you are in hassio territory indeed).
@CoMPaTech & @bouwew, thanks a lot for your help! Finally got it working by copying the file contents from the PR into the 0.6.1 files. Not the cleanest solution, but I’m glad it works for now. Unfortunately I’m not that familiar with python, but if you require some assistance (with testing or something), I’m happy to help.
@Bodi@takje@bouwew this isn’t by any means a clean way, but to ‘control’ Anna I had to make those changes to the python module as well. I’m sincerely hoping we can get this into the correct gear to make things happening faster.
FYI
I have an older version of Anna (firmware 1.8.20), which is not compatible with the current haanna implementation. Reading the temperatures works, but setting a new temperature fails, because the domain_objects tree differs.
I am working on a ‘downgraded’ version of haanna, which does support v1.8. Once that is done, I’ll look into creating an auto-detect version of haanna, which supports both models.
I tried installing the latest version of anna-ha from github, but it won’t load properly in Home Assistant.
When I try to configure the component, Home Assistant gives the following error:
Platform not found: climate.anna
The following is logged on startup though:
You are using a custom integration for anna which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
What am I doing wrong?
I am running Home Assistant 0.93.2
@wburgers I had the same problem: Platform not found: climate.anna
After enabling debug logging, I found out the initialization of anna-ha failed.
The reason was, I have an older version of Anna (firmware v1.8.20) which is not supported by the haanna library. Once I fixed the library, I got it working.
So you might want to check the firmware version of your Anna.
And you might need to add
min_temp: 4
max_temp: 30
to your anna configuration, which is not mentioned in the readme.
Not sure if that breaks anything when missing, but might be worth to check out.
Thanks @plamola and @bouwew for your suggestions.
I figured it out eventually.
I use this image to run HA.
It doesn’t do any fancy stuff, that is why the image is fairly small.
So there is also no automatic pip install step…
haanna.py was missing and therefore the component would not load correctly.
Second: I can’t get it to run. One of my main problems is trying to piece together all the different steps. So here is what I have done:
Installed hassio (version 0.93.2)
Downloaded the latest versions of hanna and anna custome component and copied them to ./config/custom_component
Added the customization to configuration.yaml
Restart
In the log of HA i get the warning about the custom component but no other warnings. But I don’t see any sensor information and I don’t see any Anna related messages in the HA log either.
My configuration YAML:
climate:
platform: anna
name: Anna Thermostat
username: smile
password: ******* (this is of course filled with the right password in my case)
host: 192.168.178.** port: 80
scan_interval: 10
@bnabled That config/setup OK, but plugwise MQTT would be a nice solution indeed. Can you verify (pip list) if haanna is also correctly installed? Otherwise try bumping the logging to debug for custom components (https://www.home-assistant.io/components/logger/) and see if that brings some idea.
@bnabled, you should only need to install the anna-ha custom addon. No need to install the haanna component/files as these will be automatically installed when you restart HA after adding the anna-ha custom component files.
Actually, I think your installation went fine. But, there is no anna-sensor, you should look for something like: climate.anna_thermostat
Update 2: I upgraded to 0.94.2 today. After the update the climate.anna_thermostat was gone, again.
After some trial and error I found out how to get it to work.
First, perform the update.
Then, change configuration.yaml to show this:
Restart again, now everything should be back to normal.
Update: I upgraded to 0.94 today.
There was no error shown but the climate.anna_thermostat entity was not here.
I played around with the configuration-settings for the Anna custom_component in configuration.yaml, followed by several restarts.
When I was back at the original configuration-text, the entity suddenly showed up!
Scratching my head…
I did install hacs when I was on 0.93 (https://custom-components.github.io/hacs/ replacing custum_updater) and I added Anna into hacs. After the update I reinstalled the anna-component within hacs. I’m not sure if this had any effect.