Testers needed for Netatmo climate (multiple thermostats or valves)

No, custom-components has to be INSIDE config.

Hi,
i have inside the config folder. i have a docker installation in my NAS
Must I do anything with the pytatmo library?
Thanks in advance

According to the above quoted message, your modules in the custom_components are NOT loaded (still using the standard ones). I am using docker and it works fine.

I have see that the folder custom must be custom_component and I have custom-component but now I have this error log:
Log Details (ERROR)
Sat Dec 29 2018 00:05:59 GMT+0100 (hora estándar de Europa central)

Error while setting up platform netatmo
Traceback (most recent call last):
File “/usr/src/app/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/climate/netatmo.py”, line 71, in setup_platform
for home in home_data.get_home_names():
File “/config/custom_components/climate/netatmo.py”, line 291, in get_home_names
self.setup()
File “/config/custom_components/climate/netatmo.py”, line 301, in setup
self.homedata = pyatmo.HomeData(self.auth)
AttributeError: module ‘pyatmo’ has no attribute ‘HomeData’

Can I delete the component folder?
Must I install any pytamo.py component?
Thanks in advance

Hi,

I’m also using HA in synology nas docker.

You must do this:

imagen

imagen

then, in climate.yaml you must have this:

- platform: netatmo

of course, in configuration.yaml, also you must have netatmo config:

netatmo:
  api_key: !secret netatmo_api_key
  secret_key: !secret netatmo_secret_key
  username: !secret netatmo_username
  password: !secret netatmo_password
  discovery: false

and this, works fineh with ha 84.2 in docker synology

imagen

Under config/deps/lib/python3.6/site-packages/: there should be:

pyatmo.py
pyatmo-1.*.dist-info/
smart_home/
__pycache__/

Please try to remove all of them, and try to restart HA, to see if the correct one can be installed automatically.

Hi,
Now it works like a charm!!!
Thank you for your help.
In my NAS Synology the only difference it is that I have python 2.7 folder not 3.6.
Can I install Python 3.6?
And I have another Vaillant thermostat that I want to integrate it.
As you can see in this post:

it uses the same pyatmo library but it doesn´t work.
Can you help me?
thanks in advance.

Thanks, now it works!!!

1 Like

Have been waiting for this a long time. Installed and now i have control of 8 valves in 5 rooms, Thanks :slight_smile:

1 Like

hello the thermostat works perfectly, but I have a problem, when I restart the hassbian component is not loaded not showing me the thermostat, I need more reboots to make it work, I also tried to remove the file in the pycache folder but I always the same problem, how can I solve?

Do you have any errors in your log?

yes, this is the error

2019-01-06 11:31:07 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform netatmo
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.5/asyncio/tasks.py”, line 400, in wait_for
return fut.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/home/homeassistant/.homeassistant/custom_components/climate/netatmo.py”, line 74, in setup_platform
for room_id in room_data.get_room_ids():
File “/home/homeassistant/.homeassistant/custom_components/climate/netatmo.py”, line 327, in get_room_ids
if self.setup():
File “/home/homeassistant/.homeassistant/custom_components/climate/netatmo.py”, line 338, in setup
self.homestatus = pyatmo.HomeStatus(self.auth, home=self.home)
File “/srv/homeassistant/lib/python3.5/site-packages/smart_home/Thermostat.py”, line 120, in init
self.rawData = resp[‘body’][‘home’]
KeyError: ‘home’

I guess it was just communication issue with the HTTP request, but not very sure. You could try to replace /srv/homeassistant/lib/python3.5/site-packages/smart_home/Thermostat.py by the following revision (I added retrying). Don’t forget to remove /srv/homeassistant/lib/python3.5/site-packages/smart_home/__pycache__ before restarting.

I have the same issue as @roberto87
Sadly I can’t replace Thermostat.py in hassio…

not work…after a restart the thermostat not in the frontend…

1 Like

How can I solve this problem?

Without the log information, I cannot know what the problem is.

How should I extract the log information?

The log information regarding to this.

for me work and i already inserted in homekit by apple