Testers needed for Netatmo climate (multiple thermostats or valves)


#309

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.


#310

Thanks, now it works!!!


#311

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


#312

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?


#313

Do you have any errors in your log?


#314

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’


#315

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.


#316

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


#317

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


#318

How can I solve this problem?


#319

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


#320

How should I extract the log information?


#321

The log information regarding to this.


#322

for me work and i already inserted in homekit by apple


#323

You did it last time I think. The same way.


#324

the error is the same as I posted in the previous log


#325

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.


#326

this is my log

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’


#327

This simply means that you have not successfully replaced the smart_home/Thermostat.py file with the revised one:


#328

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.