I can set the target temperature in any room, but in reality it just changes the living room and in home assistant it looks like the target has been changed in all rooms at ones.
I had another go here (starting from scratch) and have everything working 100% now
Not exactly sure what I did differently this time around but obviously wasn’t paying attention last time and did something wrong. Anyway I can now see and control both my thermostats as expected. Thanks @gieljnssns
I went totally back to the start - removed everything netatmo related from custom_components, cunstom_components\climate as well as any traces of the previous netatmo custom_component (Adding support for Netatmo Thermostat) that I’d been using, rebooted HA and then followed the process from Post #1 here. Rebooted again and my two thermostats appeared as climate.test_thermostatname
so for you what I think you need to do is just follow the steps above. Ignore the original netatmo component as that is still needed for Weather and then setup this new netatmo2 component which is for Climate/Heat only.
If you don’t have the custom_components folders listed above in the thread you need to create them in HASSIO - if you don’t have the folders that are mentioned to delete I wouldn’t worry about it.
NOPE, also the set temperature, after few minutes it goes to 12 degrees, and away_mode goes to ON … but on the NEtatmo APP its keeping the set temperature of 15.
The above was wrong since I had two climate: instances (did’tr ssee it in the erro log, now I fixed it, but have the below error in LOG
2018-08-31 09:28:21 ERROR (MainThread) [homeassistant.setup] Error during setup of component netatmo2
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/setup.py”, line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
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/netatmo2.py”, line 47, in setup
import lnetatmo
ModuleNotFoundError: No module named ‘lnetatmo’
2018-08-31 09:28:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of climate.netatmo2. Setup failed for dependencies: netatmo2
2018-08-31 09:28:21 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate.netatmo2: Could not set up all dependencies.
from what I can tell you should have a file called lnetatmo.py in \<>\config\deps\lib\python3.6\site-packages\ (I do anyway). That seems to be what the error is pointing to.
I find only the valve: “climate.test_camera_da_letto” but I can find the thermostat, so do you have any ideas?
thanks
in the log, lot of errors:
2018-09-22 23:10:37 ERROR (MainThread) [homeassistant.helpers.entity] Update for climate.test_camera_da_letto fails
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 224, in async_update_ha_state
yield from self.async_device_update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py”, line 353, in async_device_update
yield from self.hass.async_add_job(self.update)
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 “/home/homeassistant/.homeassistant/custom_components/climate/netatmo2.py”, line 259, in update
self._data.update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/init.py”, line 325, in wrapper
result = method(*args, **kwargs)
File “/home/homeassistant/.homeassistant/custom_components/climate/netatmo2.py”, line 338, in update
self.homestatus = lnetatmo.HomeStatus(self.auth, home=self.home)
File “/srv/homeassistant/lib/python3.5/site-packages/netatmo_home/Thermostat.py”, line 105, in init
self.home_data = HomeData(authData)
File “/srv/homeassistant/lib/python3.5/site-packages/netatmo_home/Thermostat.py”, line 31, in init
self.rawData = resp[‘body’][‘homes’]
TypeError: ‘NoneType’ object is not subscriptable
Right now they both display the same values, probably because both entities get passed the same room_data, so that’s something that might have to be rewritten
I also have 2 of the Netatmo radiator valves and tried the netatmo2 component. It only finds one of the two valves with no errors in the home-assistant.log file. Would love if somebody could figure this out, I’m always open to help testing!