I create a smart_home directory and put there the file.
I receive this error
2017-09-21 13:12:32 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform netatmo
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 164, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/usr/lib/python3.4/asyncio/tasks.py”, line 372, in wait_for
return fut.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/home/homeassistant/.homeassistant/custom_components/climate/netatmo.py”, line 52, in setup_platform
add_callback_devices([NetatmoThermostat(data, module_name, device)])
File “/home/homeassistant/.homeassistant/custom_components/climate/netatmo.py”, line 78, in init
self.update()
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/util/init.py”, line 306, in wrapper
result = method(*args, **kwargs)
File “/home/homeassistant/.homeassistant/custom_components/climate/netatmo.py”, line 160, in update
self._target_temperature = self._data.thermostatdata.setpoints(module=self._name, device=self._device)
AttributeError: ‘ThermostatData’ object has no attribute ‘setpoints’
Hi @gieljnssns, hitting a brick wall so apologies for calling you out by name (hope it’s OK)
I have two Relays, each with one thermostat attached. I can only get HA to detect one of them (the first one I initialised). Any idea how I can specify a particular relay and/or thermo (the config in the documentation does not work).
As it stands my configuration.yaml shows as below (which is “correct”) but still only detects the other relay (I have Relay_Up, which was the first one I initialised - a network scan see this as “Netatmo Relay” and the other (Relay_Down) as “Netatmo Relay-2”)
Know I can rewire them, but would be nice to solve programitically…so I can see Downstairs instead of Upstairs…
Cheers, thanks for coming back to me. Have already set discovery:false for the netatmo component (and added everything manually for Weather & Climate/Heating) but no joy on the Climate. No matter what configuration I use (with the current one being in the previous post) I get the Upstairs Relay/Thermo only.when I specify the other Realy/Thermo combination.
From what I read in the thread you seem to have solved this issue for another user so was hopeful of a quick fix
In terms of pointing me in the right direction can you tell me if the various netatmo.py and thermostat.py files you’ve linked to are now in the main HASSIO version (0.56 at the moment) or are they still alternate options i can try?
I think it sends the service correctly just to one of them, not the other: now I can’t test this because the one that was working I have it off (the relay)
I’ve loaded the two files into HA as you outline and bingo…everything seems pretty much to be working as it should
I can now see and operate both my thermostats as expected which is great.
Testing them both seem to work fine - from HA I can set them Away, increase Temp (which calls boiler), decrease Temp (and shut off boiler).
Only thing I can see amiss is that the current target temp on my second thermo is detected as 0. (This is the thermo working off the second relay (Netatmo Relay-2) so maybe there is a issue there)
Yeah, all working fine for me here
I have a two relay, two thermo setup and both working as per my previous post. Changing Temp on HA will trigger the relay on (and boiler too) - this is reflected on the Netatmo App (on Android) and the thermostat too, so all good here
Hi, I saw you have posted some updates and I have retried your custom_components/climate/netatmo.py and custom_components/netatmo.py and now no thermostats are displayed in HA and i have this error:
2017-11-29 11:41:52 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform netatmo
Traceback (most recent call last):
File “/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 171, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File “/usr/local/lib/python3.4/asyncio/tasks.py”, line 393, in wait_for
return fut.result()
File “/usr/local/lib/python3.4/asyncio/futures.py”, line 274, in result
raise self._exception
File “/usr/local/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.4/site-packages/homeassistant/components/climate/netatmo.py”, line 47, in setup_platform
for module_name in data.get_module_names():
File “/usr/local/lib/python3.4/site-packages/homeassistant/components/climate/netatmo.py”, line 155, in get_module_names
self.update()
File “/usr/local/lib/python3.4/site-packages/homeassistant/util/init.py”, line 306, in wrapper
result = method(*args, **kwargs)
File “/usr/local/lib/python3.4/site-packages/homeassistant/components/climate/netatmo.py”, line 170, in update
self.target_temperature = self.thermostatdata.setpoint_temp
AttributeError: ‘ThermostatData’ object has no attribute ‘setpoint_temp’
After some tests I effectively when I click to change the temperature or select the away_mode, it does change in the HASS interface, but the command is not executed and a few time after hass climate values return in their previous state!
I try to see to work directly with netatmo python scripts api but I have to see why after my acces token doesn’t have the good scope right this code is you can find it on netatmo at: https://dev.netatmo.com/en-US/resources/technical/samplessdks/codesamples#getthermostatsdata