home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.54k stars 30.35k forks source link

Netatmo: if more than one energy device is in the same room, only one of them is discovered #104352

Closed alem8 closed 7 months ago

alem8 commented 10 months ago

The problem

I've noticed that with Netatmo Integration, if there is more than one energy device in one of the Netatmo rooms, only one of them is discovered. For example, in my installation I have a thermostat and a smart valve in the same Netatmo room, and the thermostat is not discovered by HA. As soon as, on Netatmo side, I move the thermostat to another room, it appears and is usable till it is moved back together with the smart valve in the same room.

I guess the issue is related to the EntityID which for HA should be unique and it is taken from Netatmo room name. Like that, it isn't a unique ID on Netatmo side but it is expected to be on HA.

What version of Home Assistant Core has the issue?

2023.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Netatmo

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 10 months ago

Hey there @cgtobi, mind taking a look at this issue as it has been labeled with an integration (netatmo) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `netatmo` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign netatmo` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


netatmo documentation netatmo source (message by IssueLinks)

cgtobi commented 10 months ago

This is not an issue but rather by design. Netatmo does that.

alem8 commented 10 months ago

Hi @cgtobi,

thanks for you feedback. But I don't get it, sorry... :) Netatmo allows multiple devices in the same room, indeed in the API documentation, for each room we have an array of module IDs:

image

In my room called "Ufficio" I have to modules, with obviously 2 IDs:

image

The integration uses the room name as EntityID for the module, so only one module of each room can exist at the same time in HA:

image

Am I wrong or is there something I don't get?

cgtobi commented 10 months ago

Yes, the API allows that but you can only control on room level.

alem8 commented 10 months ago

Ok, clear: it is like in HA I have the room and not the single devices. So, like that I lose the diagnostic info of the second device, one is there, the other isn't. Right? And, another strange thing, is that HA always notify the discovery of a new device in Netatmo... probably it is the second device that it seen but not added

issue-triage-workflows[bot] commented 7 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.