My Netatmo component stopped working after I upgraded to 0.90. I know that there is a breaking change and I changed my config but it still fails to start and I get this error code:
Error while setting up platform netatmo
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 128, 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 “/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo/climate.py”, line 96, in setup_platform
for room_id in room_data.get_room_ids():
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo/climate.py”, line 342, in get_room_ids
if not self.setup():
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo/climate.py”, line 352, in setup
self.homedata = pyatmo.HomeData(self.auth)
File “/usr/local/lib/python3.7/site-packages/smart_home/Thermostat.py”, line 66, in init
nameSchedule = self.rawData[i][“therm_schedules”][t][“name”]
KeyError: ‘name’
Hi! I have the same exact problem, only difference, I never managed to get my netatmo component to work, I was relying on auto-discovery, when it did not work I gave up.
By the way, I would like to add, that I only have the Netatmo smart valves and a bridge, no actual thermostat. Hopefully, this helps further clarify the scope of affected hardware.
Just updated from 0.89 to 0.90.2 netatmo seems to be broken.
error:
Error during setup of component netatmo
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py”, line 154, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.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 “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/netatmo/init.py”, line 95, in setup
'read_station read_camera access_camera ’
File “/srv/homeassistant/lib/python3.5/site-packages/pyatmo.py”, line 85, in init
self._accessToken = resp[“access_token”]
TypeError: ‘NoneType’ object is not subscriptable
I’ll try the manual config instead of autodetection.
edit… still broken
The following error is visible in the logs:
Error during setup of component netatmo
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 154, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.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 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/netatmo/__init__.py", line 95, in setup
'read_station read_camera access_camera '
File "/srv/homeassistant/lib/python3.5/site-packages/pyatmo.py", line 85, in __init__
self._accessToken = resp["access_token"]
TypeError: 'NoneType' object is not subscriptable
Another edit:
Bugger… I checked the APP page again.
The App was disabled
After enabling the APP and restarting HASS everything came online…
Fri May 17 2019 12:52:17 GMT+0200 (hora de verano de Europa central)
Error while setting up platform netatmo
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/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 “/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo/climate.py”, line 97, in setup_platform
for room_id in room_data.get_room_ids():
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo/climate.py”, line 345, in get_room_ids
if not self.setup():
File “/usr/local/lib/python3.7/site-packages/homeassistant/components/netatmo/climate.py”, line 356, in setup
self.homestatus = pyatmo.HomeStatus(self.auth, home=self.home)
File “/usr/local/lib/python3.7/site-packages/smart_home/Thermostat.py”, line 160, in init
raise NoDevice(“No device found, errors in response”)
smart_home.NoDevice: No device found, errors in response