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

Missing Bticino modules on Netatmo inetgration #107855

Closed parabag closed 9 months ago

parabag commented 9 months ago

The problem

After launching the Netatmo inetgration I was able to see all my switches, plugs, rolling shutters and the weather station but not the energy meter (BTicino F20T60A) and the witeless switch "home / out of home" (BTicino K4500C or K4570CW). thanks for your help

What version of Home Assistant Core has the issue?

2024.1.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

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 9 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 9 months ago

Please provide the actual product type as listed on https://dev.netatmo.com/apidocumentation/control

parabag commented 9 months ago

the two missing product type are NLG and NLT. thanks

parabag commented 9 months ago

one information more: in teh integration diagnostic file the two entries are visible. (I am attaching the file and paste an extract).

        "modules": [
          {
            "id": "00:04:74:14:c8:42",
            "type": "NLG",
            "name": "**REDACTED**",
            "setup_date": 1545122226,
            "room_id": "773156201",
            "modules_bridged": [
              "00:04:74:00:00:81:ac:23",
              "00:04:74:00:00:7b:9d:3d",
              "00:04:74:00:00:91:69:27",
              "00:04:74:00:00:91:5d:e6",
              "00:04:74:00:00:7b:9d:2a",
              "00:04:74:00:00:91:69:a0",
              "00:04:74:00:00:91:69:2f",
              "00:04:74:00:00:89:be:40",
              "00:04:74:00:00:89:be:5d",
              "00:04:74:00:00:7b:83:a2",
              "00:04:74:00:00:7b:9d:36",
              "00:04:74:00:00:91:5e:0e",
              "00:04:74:00:00:91:7a:e3",
              "00:04:74:00:00:91:7a:e0",
              "00:04:74:00:00:89:c4:a6",
              "00:04:74:00:00:91:5d:da",
              "00:04:74:00:00:91:69:58",
              "00:04:74:00:00:91:5d:e7",
              "00:04:74:00:00:91:69:6e",
              "00:04:74:00:00:89:be:6b",
              "00:04:74:00:00:7b:9d:3a",
              "00:04:74:00:00:91:3d:f2",
              "00:04:74:00:00:89:be:3e",
              "00:04:74:00:00:7b:87:ee",
              "00:04:74:00:00:91:7a:da",
              "00:04:74:00:00:91:7a:8d",
              "00:04:74:00:00:91:5d:f7",
              "00:04:74:00:00:91:7b:93",
              "00:04:74:00:00:7b:9d:39",
              "00:04:74:00:00:7b:83:d0",
              "00:04:74:00:00:91:5d:d9",
              "00:04:74:00:00:91:5d:f3",
              "00:04:74:00:00:a1:0f:ea",
              "00:04:74:00:00:9a:bb:5a",
              "00:04:74:00:00:7c:5d:22",
              "00:04:74:00:00:91:3e:04",
              "00:04:74:00:00:89:be:4a",
              "00:04:74:00:00:a1:d8:0d",
              "00:04:74:00:00:a2:19:f5",
              "00:04:74:00:00:a2:19:f7",
              "00:04:74:00:00:a2:1a:00",
              "00:04:74:00:00:a2:1a:28",
              "00:04:74:00:00:a2:24:5c",
              "00:04:74:00:00:91:5d:db",
              "00:04:74:00:00:a1:10:2d",
              "00:04:74:00:00:91:3e:3c",
              "00:04:74:00:00:7b:9d:22",
              "00:04:74:00:00:7b:83:bf",
              "00:04:74:00:00:9f:b0:91"
            ]
          },
          {
            "id": "00:04:74:00:00:81:ac:23",
            "type": "NLT",
            "name": "**REDACTED**",
            "setup_date": 1591549196,
            "room_id": "805554436",
            "bridge": "00:04:74:14:c8:42"
          },

config_entry-netatmo-ce285de6edd7bd9f5e97d1aa48aec91d.json.txt

cgtobi commented 9 months ago

From what I can tell NLG and NLT don't have actual value in HA, but please correct me if I'm wrong. NLG is a gateway and NLT is a remote control. Neither can be actually controlled (at least the NLT) from what I can tell.

If you think otherwise please provide the corresponding data from https://dev.netatmo.com/apidocumentation/control#homestatus.

parabag commented 9 months ago

thanks mate. I already did the homestatus command and actually I saw this two modules missing. The NLT is a so called wireless switch. It is actually a physical switch but not wired and it commands the scenes home / away. On the NLG you are right, is the gateway. So I should see the wireless switch at least... And actually I did realized that the energy meter is not in the homestatus list and should be an NLE or NLPC. In this case the problem is that Netatmo connect is not seeing it...

cgtobi commented 9 months ago

NLT is not a controllable but a remote control, is that right?

parabag commented 9 months ago

NLT is a switch, the only thing is that is wireless and not wired

cgtobi commented 9 months ago

In that case, could you provide me with samples from /homesdata and /homestatus for that device so that I can fabricate test cases?

parabag commented 9 months ago

here it is!

/homesdata: { id:"00:04:74:00:00:81:ac:23" type:"NLT" name:"Scenario entra - esci" setup_date:1591549196 room_id:"805554436" bridge:"00:04:74:14:c8:42" }

/homestatus { id:"00:04:74:00:00:81:ac:23" type:"NLT" battery_state:"medium" battery_level:2200 firmware_revision:70 last_seen:1705082532 reachable:true bridge:"00:04:74:14:c8:42" }

cgtobi commented 9 months ago

Hm, to me this looks like there is no attribute that makes this a switch or anything that can be controlled for that matter.

The documentation lists this as a remote control https://dev.netatmo.com/apidocumentation/control#Scenario

So, IMO there is no real use in HA other than maybe show when it's battery is empty.

To quote the Netatmo documentation:

These products do not offer any remote interaction. It is only possible to know that they exist in a home

parabag commented 9 months ago

mmm... that is very strange... in Homekit this is clossified as remote switch and is visible...

cgtobi commented 9 months ago

Well, could it be that it is actually showing its target?

parabag commented 9 months ago

it is showing two buttons instead of a switch...

image

cgtobi commented 9 months ago

Since there is nothing useful in the API response this can not be implemented.

parabag commented 9 months ago

Very strange... very very strange

cgtobi commented 9 months ago

Strange indeed. I am happy to implement functionality once available via the API. Until then we're out of luck.

parabag commented 9 months ago

thumb up! thanks