I already have reading and setting the presets sort-of-ready, but the domoticz part makes it a tiny bit easier. The bigger thing is waiting (or not?) for the original author, but we still could abuse the PR further, do you want commit permissions on my fork so we can work on it together?
Biggest ‘search’ for me was to figure out how to handle presets (as in the schedules), also see my comments in the PR.
There is a limitation, this only works when being connected to the home network.
There might be ways around this but I haven’t had time to investigate…
Hi all, first of all, thanks for the great work on implementing this!
Im trying to add the thermostat myself using the latest PR and setting manifest.json to 0.6.1.
However, I get stuck with this error and I can’t seem to get around it:
Error while setting up platform anna
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/anna/climate.py", line 106, in setup_platform
config.get(CONF_MAX_TEMP)
File "/config/custom_components/anna/climate.py", line 132, in __init__
self._api = haanna.Haanna(self._username, self._password, self._host, self._port)
TypeError: __init__() takes 4 positional arguments but 5 were given
I downgraded from 0.93.0 to 0.92.2, but this also does not seem to solve it. Any suggestions?
I encountered the same error. I ended up needing to edit the haanna.py file on my system, replacing the content by the updated content from the pull-request. Doing this can be a little complex when you are not familiar with how things “work under the hood”…
@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.