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.
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?
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.
It should not, since I modified that part of code, unless the replacement has not been done. Please send me the exact error log so that I can do more investigation.
2019-01-15 10:21:39 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 tried using the modified thermostat.py and deleted the pycache folder, it worked on the next reboot but afterwards it always gave me the same problem and I put the original thermostat.py back on.