Testers needed for Netatmo climate (multiple thermostats or valves)

A bit of progress…

If I comment out lines 71 to 74 in /custom_components/climate/netatmo2.py I get all my rooms to show up:
image
image

I still get duplicate rooms, and all the rooms share the same room_id and the same module_id:

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 :slight_smile:
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 :+1:

image

Can you tell me what you did, I am a little confused what to do (netatmo, netatmo2 …???). I also have 2 thermostat.

I also have HASSIO, and have trouble in finding where are the files to delete/change (if are not in config folder)

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.

Now trying again from scratch, this is my conf. On the Netatmo website I created 2 app (so I have 2 sets of keys)

climate:
  - platform: netatmo2
netatmo2:
  api_key: !secret netatmo2_api_key
  secret_key: !secret netatmo2_secret_key
  username: !secret netatmo_username
  password: !secret netatmo_password
  discovery: False
climate:
  - platform: netatmo
netatmo:
  api_key: !secret netatmo_api_key
  secret_key: !secret netatmo_secret_key
  username: !secret netatmo_username
  password: !secret netatmo_password
  discovery: False

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.

Hope this component get fixed before winter :smiley:

this I do not understand, since I have all files named differently

Cattura

Nothing works … I have the sensors, but changing them in HASS does not change the values in reality

climate:
  - platform: netatmo2
netatmo2:
  api_key: !secret netatmo2_api_key
  secret_key: !secret netatmo2_secret_key
  username: !secret netatmo_username
  password: !secret netatmo_password
  discovery: False
climate:
  - platform: netatmo
netatmo:
  api_key: !secret netatmo_api_key
  secret_key: !secret netatmo_secret_key
  username: !secret netatmo_username
  password: !secret netatmo_password
  discovery: False

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 have that file there too

hello,
I have 1 Netatmo thermostat and 1 Netatmo valve, I tried the custom component “netatmo2” without success,
my configuration is:

netatmo2:
  api_key: !secret netatmo2_key
  secret_key: !secret netatmo2_secret
  username: !secret netatmo2_user
  password: !secret netatmo2_pass
  discovery: false
climate:
  - platform: netatmo2

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

Played around with it a bit and I was able to get both of my Netatmo rooms to show up in home assistant after a small change: https://gist.github.com/LucaKaufmann/9c700f1cbcaa5d1599e44a1b33200578

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

Hi, any updates?

I will try it this evening!

I tried your netatmo2.py and I have same behaviour, 1 netatmo thermostat e 1 valve with same value.

Hope @gieljnssns can have a look into it. Winter is approaching :smile:

Winter is coming :grin::grin::grin:

Is there any update to this project?

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!