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
69.72k stars 28.87k forks source link

Netatmo - Energy Control app #106507

Open dspe opened 6 months ago

dspe commented 6 months ago

The problem

Hi team,

I would like to retrieve information collected by my Legrand 412032 ( https://www.legrand.fr/pro/catalogue/ecocompteur-modulaire-connecte-pour-mesure-consommation-sur-5-postes-230v-5060hz-5-modules )

The integration detects correctly different energy lines defined on my Legrand, but all the data is set to 0

What version of Home Assistant Core has the issue?

core-2023.12.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS Netatmo Type: NLE (Ecometer)

Integration causing the issue

netatmo

Link to integration documentation on our website

https://www.home-assistant.io/integrations/netatmo/

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 6 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)

GyWhy commented 5 months ago

I have exactely the same problem! Looking at the Netatmo/Legrand web application, I would not be surprised that problem is on the Netatmo side. The Netatmo web application to track energy is so buggy that I wonder about who develloped and tested it (if tested by anyone before being put in production) I am very dispointed by this device and the software solution provide by Legrand/netatmo. I start to look at installing 2 more "owon pc321" (https://www.owon-smart.com/pc321-ty-single3-phase-power-clamp-product/) to track my energy consumption . I have already one to track lines not connect to my ecocompteur , it works very well and have a simple and direct connection to HA via Zigbee2Mqtt . For water consumption I am looking to use ZiPulses (https://lixee.fr/produits/40-zipulses-3770014375155.html) ... but is is additionnal money on top of the ecocompteur that is suppose to do the same. I am afrais that I have thrown my money out the window when I bought this Legrand device ;(

Eoras commented 5 months ago

Hello, i got same problem...

I have one light switch relay (412170) on app Control+ power is up when i light on, but with netatmo integration i don't have the data when i turn on the light, power is always : 0 but on my app power is up to 40W

image

cgtobi commented 5 months ago

Not sure if this is all "the same problem" and energy tracking seriously conflicts with how frequently the API provides data and how often it can be polled.

When reporting specific devices please provide the product type as per the documentation: https://dev.netatmo.com/apidocumentation/control so that I can take a look without guessing which type it may be.

cgtobi commented 5 months ago

@dspe can you please rephrase your original issue as I don't quite understand whether this is an issue or rather a feature request.

dspe commented 5 months ago

@cgtobi thanks I ve just update it . Issue is with the energy data that give me always 0 . But I can see correctly the default node defined in my control app . Does it make more sense?

cgtobi commented 5 months ago

Thank @dspe, please provide the product type as per the documentation: https://dev.netatmo.com/apidocumentation/control.

GyWhy commented 5 months ago

@cgtobi for me all netatmo entities are showned as "unavailable" while 1- when I connect the intergration to HA all is working fine 2- On the netatmo web site I have data. image

Device type is "sensor" some for electrcity consumption some water/gaz consuption

dspe commented 5 months ago

Thank @dspe, please provide the product type as per the documentation: https://dev.netatmo.com/apidocumentation/control.

Its NLE Ecometer if I m right

cgtobi commented 5 months ago

@dspe thanks. Please retrieve the JSON response from https://dev.netatmo.com/apidocumentation/security#homestatus and either send it to me via Discord or share the relevant part here if you are OK with that.

cgtobi commented 5 months ago

@GyWhy this might be a different issue. So to not confuse this I'd suggest to open a new ticket to discuss this separately. Please also provide the product type and the JSON response from https://dev.netatmo.com/apidocumentation/security#homestatus and either send it to me via Discord or share the relevant part here if you are OK with that.

dspe commented 5 months ago

@cgtobi here we go. I change the homeid :)

{
    "status": "ok",
    "time_server": 1704805568,
    "body": {
        "home": {
            "id": "XXXXXXXX",
            "modules": [
                {
                    "id": "00:04:74:12:36:42",
                    "type": "NLE",
                    "firmware_revision": 17,
                    "wifi_strength": 31
                },
                {
                    "id": "00:04:74:12:36:42#0",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                },
                {
                    "id": "00:04:74:12:36:42#1",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                },
                {
                    "id": "00:04:74:12:36:42#2",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                },
                {
                    "id": "00:04:74:12:36:42#3",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                },
                {
                    "id": "00:04:74:12:36:42#4",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                },
                {
                    "id": "00:04:74:12:36:42#5",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                },
                {
                    "id": "00:04:74:12:36:42#6",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                },
                {
                    "id": "00:04:74:12:36:42#7",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                },
                {
                    "id": "00:04:74:12:36:42#8",
                    "type": "NLE",
                    "bridge": "00:04:74:12:36:42"
                }
            ]
        }
    }
}
cgtobi commented 5 months ago

Thanks. Well, for some reason the API does not provide actual power metrics. That explains why HA can't show a thing. But I need to check why you get 0.

Could you please double check that this is actually the response from /homestatus and not /homesdata? @dspe

dspe commented 5 months ago

this json is coming from /homestatus the /homedata give this: (with fake value ;) )

{
    "body": {
        "homes": [
            {
                "id": "XXXXXXX",
                "name": "My Home",
                "altitude": 123,
                "coordinates": [
                    1.000000,
                    45.6060
                ],
                "country": "FR",
                "timezone": "Europe/Paris",
                "rooms": [
                    {
                        "id": "2394055593",
                        "name": "Ecometer",
                        "type": "electrical_cabinet",
                        "module_ids": [
                            "00:04:74:12:36:42",
                            "00:04:74:12:36:42#0",
                            "00:04:74:12:36:42#1",
                            "00:04:74:12:36:42#2",
                            "00:04:74:12:36:42#3",
                            "00:04:74:12:36:42#4",
                            "00:04:74:12:36:42#5",
                            "00:04:74:12:36:42#6",
                            "00:04:74:12:36:42#7",
                            "00:04:74:12:36:42#8"
                        ]
                    }
                ],
                "modules": [
                    {
                        "id": "00:04:74:12:36:42",
                        "type": "NLE",
                        "name": "Legrand Ecometer",
                        "setup_date": 1665238044,
                        "room_id": "2394055593",
                        "modules_bridged": [
                            "00:04:74:12:36:42#0",
                            "00:04:74:12:36:42#1",
                            "00:04:74:12:36:42#2",
                            "00:04:74:12:36:42#3",
                            "00:04:74:12:36:42#4",
                            "00:04:74:12:36:42#5",
                            "00:04:74:12:36:42#6",
                            "00:04:74:12:36:42#7",
                            "00:04:74:12:36:42#8"
                        ]
                    },
                    {
                        "id": "00:04:74:12:36:42#0",
                        "type": "NLE",
                        "name": "Water heater",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    },
                    {
                        "id": "00:04:74:12:36:42#1",
                        "type": "NLE",
                        "name": "Clim",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    },
                    {
                        "id": "00:04:74:12:36:42#2",
                        "type": "NLE",
                        "name": "Washing Machine",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    },
                    {
                        "id": "00:04:74:12:36:42#3",
                        "type": "NLE",
                        "name": "Ligne 4",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    },
                    {
                        "id": "00:04:74:12:36:42#4",
                        "type": "NLE",
                        "name": "Ligne 5",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    },
                    {
                        "id": "00:04:74:12:36:42#5",
                        "type": "NLE",
                        "name": "Total",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    },
                    {
                        "id": "00:04:74:12:36:42#6",
                        "type": "NLE",
                        "name": "Gas",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    },
                    {
                        "id": "00:04:74:12:36:42#7",
                        "type": "NLE",
                        "name": "Hot water",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    },
                    {
                        "id": "00:04:74:12:36:42#8",
                        "type": "NLE",
                        "name": "Cold water",
                        "setup_date": 1665238045,
                        "room_id": "2394055593",
                        "bridge": "00:04:74:12:36:42"
                    }
                ],
                "schedules": [
                    {
                        "timetable": [
                            {
                                "zone_id": 1,
                                "m_offset": 0
                            },
                            {
                                "...snip...": 12435
                            }
                        ],
                        "zones": [
                            {
                                "id": 0,
                                "price": 0.246,
                                "price_type": "peak"
                            },
                            {
                                "id": 1,
                                "price": 0.1828,
                                "price_type": "off_peak"
                            }
                        ],
                        "name": "electricity",
                        "default": false,
                        "tariff": "edf_tarif_bleu",
                        "tariff_option": "peak_and_off_peak",
                        "power_threshold": 12,
                        "contract_power_unit": "kVA",
                        "id": "XXXXXXXXXXX",
                        "type": "electricity",
                        "selected": true
                    }
                ]
            }
        ],
        "user": {
            "email": "me@domain.com",
            "language": "fr-FR",
            "locale": "fr-FR",
            "feel_like_algorithm": 0,
            "unit_pressure": 0,
            "unit_system": 0,
            "unit_wind": 0,
            "id": "XXXXXXX"
        }
    },
    "status": "ok",
    "time_exec": 0.032670021057128906,
    "time_server": 1704806776
}
cgtobi commented 5 months ago

Thanks. And sorry for questioning that. It is really curious why the API does not provide values at all.

dspe commented 5 months ago

no worries @cgtobi . Maybe they didn't migrate all from Legrand API to Netatmo API? but what is strange is that I can check the graph on netatmo security account ..

cgtobi commented 5 months ago

I'll send Netatmo a message about this.

GyWhy commented 5 months ago

@dspe 2 questions How do you query the API ? Where do you find your home number ?

Apologize if my questios are stupid but I am a newbee in that space .

cgtobi commented 5 months ago

@GyWhy you'll find your home_id when querying https://dev.netatmo.com/apidocumentation/control#homesdata.

Iz-No-Good commented 5 months ago

Hi There, I am having the same issue. So if a second config can help to find out more.... Do you see the sensor config into the configuration.yaml file ?

cgtobi commented 5 months ago

@Iz-No-Good sorry I don't understand what you mean.

Iz-No-Good commented 5 months ago

Hi @cgtobi, I mean that I am in a similar situation (same Ecometer, no data), so if providing elements from my config can help to isolate the issue, more than happy.

Iz-No-Good commented 5 months ago

@cgtobi Do you need more info ? or is there something to help to solve that ? thank you.

cgtobi commented 5 months ago

I think for now there is enough data/info. What I/we need is time and/or someone who implements it. The plan is to feed historical data into the system since the data retrieved by polling has too many gaps.

Iz-No-Good commented 5 months ago

@cgtobi, if you want me to try something, let me know ;) Thx

cgtobi commented 5 months ago

@Iz-No-Good I sure will come back to this

Iz-No-Good commented 3 months ago

Hello @cgtobi , I do not know anything to Jeedom, still have seen that there is a plugin for the Netatmo series (reference 41203x). (bernard-dandrea/jeedom-EcoNetatmo)

AuroreVgn commented 2 months ago

Hello, i got same problem...

I have one light switch relay (412170) on app Control+ power is up when i light on, but with netatmo integration i don't have the data when i turn on the light, power is always : 0 but on my app power is up to 40W

image

I made a few tests with my devices (light micromodules). The power changes in HA with a loooooot of delay (~15 min). I use the official Netatmo integration and I have Home Assistant core 2024.4.0.

mt-zn commented 1 month ago

Hi Everyone, Has anyone finally been able to integrate the Legrand connected ecometer (ref 4 120 32 or 4 120 33) into Home Assistant? I can see the power lines listed but no power consumption is available. (I can provide details if necessary but it seems that no one has succeeded whatever the configuration) Many thanks. Mathieu

GyWhy commented 1 month ago

Hi @mt-zn I tried but never succeed. I see entities thru Netatmo integration but all data are "unavailable" so it is useless. It is a shame . Any idea to make progress is more than welcome. Thanks

mt-zn commented 1 month ago

That's exactly what I'm facing. I will try to sort something out... Any idea is welcome. Thanks

matthieuki commented 3 weeks ago

Hi ! I am new to Home assistant and I have a netatmo ecometer. Is there any news on power entities? THANKS !

Iz-No-Good commented 3 weeks ago

Hello, Unfortunately it is still not working. I am trying the newest custom integration (from @tmenguy 2024.04.18) and have reviewed my complete system to ensure that external access are fine, and doing a /getstatus from the Netatmo is providing some value, still, no power data in HA ... so far ...

@cgtobi, any update on your side ? How HA is supposed to get data from the Netatmo site ? is it HA that send a request or the site that does push the info ?

Thanks

mt-zn commented 2 weeks ago

Thanks for trying. It is so frustrating. Not an expert (far from that) but it ssems like it would not require much effort from Legrand Netatmo to make this possible. Cheers. Mathieu

tmenguy commented 2 weeks ago

hi @Iz-No-Good your are using my custom integration? (I'm using it too obviously and I get all the power metrics from Legrand) on which device it is not working?

tmenguy commented 2 weeks ago

The custom integration handles power and energy (two separated end points in Netatmo), if you want a faster refresh rate, setup the custom integration with a developer account (like described here : https://www.home-assistant.io/integrations/netatmo/#development--testing-with-your-own-client-id) (and please be sure to take the latest code of the custom integration, I maintain it actively to follow HA and the official one)

tmenguy commented 2 weeks ago

and @Iz-No-Good in the official integration and custom, the refresh rate is around 2 to 3mn so normal to not see anything "real time" in HA. Using dev account is way better (In the official one around 40s , 5 to 10s in the custom one)

Iz-No-Good commented 2 weeks ago

Hello @tmenguy , yes I am using your integration and the Legrand Ecometer 4 120 32. I have a dev account, and on the Netatmo web site, I can do a /getstatus and see data. I am also able to get other command and see my ecometer and the 7 different sub-device with the name I gave them .... Still, I get 0W and Power unavailable.

tmenguy commented 2 weeks ago

You can have power values in your getstatus API? If so, can you send me a json example? I'm afraid we don't handle properly a device with several power line at all, so would like to get your homedata if possible ...

Iz-No-Good commented 2 weeks ago

Hello @tmenguy ,


{
  "body": {
    "homes": [
      {
        "id": “xxxxxxxxxxxxxxx”,
        "name": "Maison",
        "altitude": 119,
        "coordinates": [
          2.xxxx,
          48.xxxxxx
        ],
        "country": "FR",
        "timezone": "Europe/Paris",
        "rooms": [
          {
            "id": "3782863802",
            "name": "Armoire électrique",
            "type": "electrical_cabinet",
            "module_ids": [
              "00:04:74:12:49:7e",
              "00:04:74:12:49:7e#0",
              "00:04:74:12:49:7e#1",
              "00:04:74:12:49:7e#2",
              "00:04:74:12:49:7e#3",
              "00:04:74:12:49:7e#4",
              "00:04:74:12:49:7e#5",
              "00:04:74:12:49:7e#6",
              "00:04:74:12:49:7e#7",
              "00:04:74:12:49:7e#8"
            ]
          }
        ],
        "modules": [
          {
            "id": "00:04:74:12:49:7e",
            "type": "NLE",
            "name": "Écocompteur",
            "setup_date": 1696096164,
            "room_id": "3782863802",
            "modules_bridged": [
              "00:04:74:12:49:7e#0",
              "00:04:74:12:49:7e#1",
              "00:04:74:12:49:7e#2",
              "00:04:74:12:49:7e#3",
              "00:04:74:12:49:7e#4",
              "00:04:74:12:49:7e#5",
              "00:04:74:12:49:7e#6",
              "00:04:74:12:49:7e#7",
              "00:04:74:12:49:7e#8"
            ]
          },
          {
            "id": "00:04:74:12:49:7e#0",
            "type": "NLE",
            "name": "Chargeur EV",
            "setup_date": 1696096175,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          },
          {
            "id": "00:04:74:12:49:7e#1",
            "type": "NLE",
            "name": "Chauffe eau",
            "setup_date": 1696096175,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          },
          {
            "id": "00:04:74:12:49:7e#2",
            "type": "NLE",
            "name": "Chauffage",
            "setup_date": 1696096175,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          },
          {
            "id": "00:04:74:12:49:7e#3",
            "type": "NLE",
            "name": "Prises - Eclairage",
            "setup_date": 1696096176,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          },
          {
            "id": "00:04:74:12:49:7e#4",
            "type": "NLE",
            "name": "Pompe a Chaleur",
            "setup_date": 1696096176,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          },
          {
            "id": "00:04:74:12:49:7e#5",
            "type": "NLE",
            "name": "Total",
            "setup_date": 1696096176,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          },
          {
            "id": "00:04:74:12:49:7e#6",
            "type": "NLE",
            "name": "Gaz",
            "setup_date": 1696096176,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          },
          {
            "id": "00:04:74:12:49:7e#7",
            "type": "NLE",
            "name": "Eau chaude",
            "setup_date": 1696096176,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          },
          {
            "id": "00:04:74:12:49:7e#8",
            "type": "NLE",
            "name": "Eau froide",
            "setup_date": 1696096176,
            "room_id": "3782863802",
            "bridge": "00:04:74:12:49:7e"
          }
        ]
Iz-No-Good commented 2 weeks ago

and doing a "/getmeasure) (NLE) on the 3rd modules, 3 hours, with sum_energy_elec$1 and sum_energy_elec$2 gives me the following:

{
  "body": [
    {
      "beg_time": 1695486600,
      "step_time": 10800,
      "value": [
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          21
        ],
        [
          30
        ],
        [
          29
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          0
        ],
        [
          282
        ],
        [
          446
        ],
        [
          3383
        ],
        [
          236
        ],
        [
          256
        ],
        [
          1427
        ],
        [
          204
        ],
        [
          332
        ],
        [
          841
        ],
        [
          297
        ],
        [
          442
        ],
        [
          750
        ],
        [
          287
        ],
        [
          388
        ],
        [
          528
        ],
        [
          355
        ],
        [
          456
        ],
        [
          417
        ],
        [
          296
        ],
        [
          429
        ],
        [
          399
        ],
        [
          284
        ],
        [
          369
        ],
        [
          1956
        ],
        [
          278
        ],
        [
          356
        ],
        [
          598
        ],
        [
          281
        ],
        [
          396
        ],
        [
          482
        ],
        [
          227
        ],
        [
          305
        ],
        [
          442
        ],
        [
          285
        ],
        [
          377
        ],
        [
          457
        ],
        [
          307
        ],
        [
          441
        ],
        [
          498
        ],
        [
          279
        ],
        [
          426
        ],
        [
          576
        ],
        [
          275
        ],
        [
          395
        ],
        [
          542
        ],
        [
          248
        ],
        [
          342
        ],
        [
          579
        ],
        [
          305
        ],
        [
          410
        ],
        [
          1412
        ],
        [
          238
        ],
        [
          329
        ],
        [
          1365
        ],
        [
          994
        ],
        [
          1651
        ],
        [
          1159
        ],
        [
          273
        ],
        [
          359
        ],
        [
          558
        ],
        [
          186
        ],
        [
          261
        ],
        [
          263
        ],
        [
          91
        ],
        [
          85
        ],
        [
          258
        ],
        [
          262
        ],
        [
          93
        ],
        [
          107
        ],
        [
          265
        ],
        [
          262
        ],
        [
          70
        ],
        [
          251
        ],
        [
          360
        ],
        [
          273
        ],
        [
          118
        ],
        [
          144
        ],
        [
          312
        ],
        [
          330
        ],
        [
          642
        ],
        [
          147
        ],
        [
          348
        ],
        [
          370
        ],
        [
          267
        ],
        [
          131
        ],
        [
          856
        ],
        [
          1142
        ],
        [
          189
        ],
        [
          183
        ],
        [
          367
        ],
        [
          350
        ],
        [
          84
        ],
        [
          155
        ],
        [
          382
        ],
        [
          333
        ],
        [
          721
        ],
        [
          140
        ],
        [
          367
        ],
        [
          283
        ],
        [
          218
        ],
        [
          143
        ],
        [
          329
        ],
        [
          362
        ],
        [
          187
        ],
        [
          149
        ],
        [
          342
        ],
        [
          357
        ],
        [
          983
        ],
        [
          130
        ],
        [
          328
        ],
        [
          354
        ],
        [
          221
        ],
        [
          118
        ],
        [
          324
        ],
        [
          320
        ],
        [
          122
        ],
        [
          113
        ],
        [
          327
        ],
        [
          371
        ],
        [
          65
        ],
        [
          135
        ],
        [
          316
        ],
        [
          343
        ],
        [
          1511
        ],
        [
          132
        ],
        [
          366
        ],
        [
          375
        ],
        [
          1095
        ],
        [
          147
        ],
        [
          309
        ],
        [
          302
        ],
        [
          1290
        ],
        [
          122
        ],
        [
          266
        ],
        [
          310
        ],
        [
          200
        ],
        [
          123
        ],
        [
          289
        ],
        [
          281
        ],
        [
          191
        ],
        [
          159
        ],
        [
          334
        ],
        [
          375
        ],
        [
          97
        ],
        [
          338
        ],
        [
          1166
        ],
        [
          1620
        ],
        [
          566
        ],
        [
          122
        ],
        [
          361
        ],
        [
          340
        ],
        [
          233
        ],
        [
          130
        ],
        [
          370
        ],
        [
          372
        ],
        [
          249
        ],
        [
          156
        ],
        [
          341
        ],
        [
          326
        ],
        [
          1358
        ],
        [
          143
        ],
        [
          327
        ],
        [
          311
        ],
        [
          275
        ],
        [
          123
        ],
        [
          317
        ],
        [
          257
        ],
        [
          212
        ],
        [
          137
        ],
        [
          317
        ],
        [
          289
        ],
        [
          131
        ],
        [
          134
        ],
        [
          362
        ],
        [
          366
        ],
        [
          99
        ],
        [
          180
        ],
        [
          323
        ],
        [
          383
        ],
        [
          215
        ],
        [
          143
        ],
        [
          359
        ],
        [
          343
        ],
        [
          1372
        ],
        [
          109
        ],
        [
          340
        ],
        [
          1762
        ],
        [
          1345
        ],
        [
          136
        ],
        [
          369
        ],
        [
          344
        ],
        [
          144
        ],
        [
          98
        ],
        [
          349
        ],
        [
          336
        ],
        [
          184
        ],
        [
          119
        ],
        [
          362
        ],
        [
          282
        ],
        [
          231
        ],
        [
          178
        ],
        [
          298
        ],
        [
          323
        ],
        [
          135
        ],
        [
          172
        ],
        [
          528
        ],
        [
          474
        ],
        [
          1044
        ],
        [
          128
        ],
        [
          378
        ],
        [
          390
        ],
        [
          224
        ],
        [
          117
        ],
        [
          356
        ],
        [
          374
        ],
        [
          888
        ],
        [
          137
        ],
        [
          385
        ],
        [
          432
        ],
        [
          249
        ],
        [
          118
        ],
        [
          355
        ],
        [
          368
        ],
        [
          162
        ],
        [
          122
        ],
        [
          395
        ],
        [
          298
        ],
        [
          107
        ],
        [
          125
        ],
        [
          413
        ],
        [
          369
        ],
        [
          1418
        ],
        [
          160
        ],
        [
          412
        ],
        [
          442
        ],
        [
          241
        ],
        [
          146
        ],
        [
          437
        ],
        [
          413
        ],
        [
          255
        ],
        [
          55
        ],
        [
          343
        ],
        [
          427
        ],
        [
          191
        ],
        [
          330
        ],
        [
          511
        ],
        [
          367
        ],
        [
          207
        ],
        [
          151
        ],
        [
          361
        ],
        [
          365
        ],
        [
          261
        ],
        [
          184
        ],
        [
          432
        ],
        [
          385
        ],
        [
          140
        ],
        [
          175
        ],
        [
          335
        ],
        [
          293
        ],
        [
          95
        ],
        [
          202
        ],
        [
          479
        ],
        [
          379
        ],
        [
          504
        ],
        [
          158
        ],
        [
          372
        ],
        [
          274
        ],
        [
          229
        ],
        [
          225
        ],
        [
          363
        ],
        [
          433
        ],
        [
          234
        ],
        [
          154
        ],
        [
          377
        ],
        [
          312
        ],
        [
          799
        ],
        [
          94
        ],
        [
          334
        ],
        [
          246
        ],
        [
          106
        ],
        [
          113
        ],
        [
          330
        ],
        [
          287
        ],
        [
          63
        ],
        [
          127
        ],
        [
          387
        ],
        [
          427
        ],
        [
          178
        ],
        [
          387
        ],
        [
          519
        ],
        [
          427
        ],
        [
          148
        ],
        [
          145
        ],
        [
          1222
        ],
        [
          1476
        ],
        [
          420
        ],
        [
          130
        ],
        [
          563
        ],
        [
          362
        ],
        [
          120
        ],
        [
          133
        ],
        [
          389
        ],
        [
          363
        ],
        [
          143
        ],
        [
          57
        ],
        [
          457
        ],
        [
          411
        ],
        [
          102
        ],
        [
          128
        ],
        [
          426
        ],
        [
          454
        ],
        [
          144
        ],
        [
          163
        ],
        [
          337
        ],
        [
          372
        ],
        [
          126
        ],
        [
          662
        ],
        [
          1363
        ],
        [
          796
        ],
        [
          98
        ],
        [
          164
        ],
        [
          348
        ],
        [
          441
        ],
        [
          331
        ],
        [
          107
        ],
        [
          392
        ],
        [
          413
        ],
        [
          134
        ],
        [
          176
        ],
        [
          413
        ],
        [
          1697
        ],
        [
          1050
        ],
        [
          111
        ],
        [
          358
        ],
        [
          420
        ],
        [
          280
        ],
        [
          270
        ],
        [
          335
        ],
        [
          379
        ],
        [
          163
        ],
        [
          127
        ],
        [
          380
        ],
        [
          381
        ],
        [
          136
        ],
        [
          105
        ],
        [
          368
        ],
        [
          752
        ],
        [
          1311
        ],
        [
          114
        ],
        [
          292
        ],
        [
          295
        ],
        [
          218
        ],
        [
          140
        ],
        [
          1297
        ],
        [
          2307
        ],
        [
          1168
        ],
        [
          183
        ],
        [
          317
        ],
        [
          271
        ],
        [
          153
        ],
        [
          96
        ],
        [
          270
        ],
        [
          275
        ],
        [
          182
        ],
        [
          138
        ],
        [
          303
        ],
        [
          352
        ],
        [
          147
        ],
        [
          347
        ],
        [
          437
        ],
        [
          296
        ],
        [
          87
        ],
        [
          120
        ],
        [
          479
        ],
        [
          320
        ],
        [
          1496
        ],
        [
          194
        ],
        [
          347
        ],
        [
          335
        ],
        [
          182
        ],
        [
          122
        ],
        [
          314
        ],
        [
          437
        ],
        [
          104
        ],
        [
          189
        ],
        [
          356
        ],
        [
          289
        ],
        [
          226
        ],
        [
          122
        ],
        [
          377
        ],
        [
          383
        ],
        [
          191
        ],
        [
          336
        ],
        [
          435
        ],
        [
          245
        ],
        [
          6
        ],
        [
          108
        ],
        [
          274
        ],
        [
          278
        ],
        [
          81
        ],
        [
          118
        ],
        [
          289
        ],
        [
          234
        ],
        [
          127
        ],
        [
          154
        ],
        [
          683
        ],
        [
          525
        ],
        [
          164
        ],
        [
          163
        ],
        [
          347
        ],
        [
          307
        ],
        [
          607
        ],
        [
          133
        ],
        [
          405
        ],
        [
          313
        ],
        [
          127
        ],
        [
          180
        ],
        [
          373
        ],
        [
          352
        ],
        [
          170
        ],
        [
          78
        ],
        [
          394
        ],
        [
          355
        ],
        [
          105
        ],
        [
          107
        ],
        [
          389
        ],
        [
          276
        ],
        [
          92
        ],
        [
          174
        ],
        [
          273
        ],
        [
          373
        ],
        [
          146
        ]
      ]
    },
    {
      "beg_time": 1717713000,
      "step_time": 10800,
      "value": [
        [
          288
        ],
        [
          424
        ],
        [
          146
        ],
        [
          360
        ],
        [
          505
        ],
        [
          421
        ],
        [
          138
        ],
        [
          330
        ],
        [
          758
        ],
        [
          463
        ],
        [
          172
        ],
        [
          375
        ],
        [
          470
        ],
        [
          471
        ],
        [
          149
        ],
        [
          425
        ],
        [
          546
        ],
        [
          478
        ],
        [
          144
        ],
        [
          370
        ],
        [
          447
        ],
        [
          443
        ],
        [
          159
        ],
        [
          430
        ],
        [
          500
        ],
        [
          439
        ],
        [
          147
        ],
        [
          340
        ],
        [
          444
        ],
        [
          433
        ],
        [
          131
        ],
        [
          516
        ],
        [
          451
        ],
        [
          284
        ],
        [
          571
        ],
        [
          429
        ],
        [
          288
        ],
        [
          430
        ],
        [
          424
        ],
        [
          293
        ],
        [
          480
        ],
        [
          433
        ],
        [
          311
        ]
      ]
    }
  ],
  "status": "ok",
  "time_exec": 2.2484688758850098,
  "time_server": 1718697217
}
tmenguy commented 2 weeks ago

Thx,

The get measure gives you only one one of the two sum_energy_elec$X , same it is only for one device, but at least it shows some energy measurements, so good hope to get something ... but it should be something you may see in my custom integration after few hours of run, the energy part, not the power one, but we may have other issues here. Can you get me a /homestatus too? Also Any logs that could help if you see some warning or error (especially at boot time, setup the Netatmo integration in debug mode in the UI to get all logs).

Iz-No-Good commented 2 weeks ago

Welcome ;)

here is the outcome of /homestatus:

{
  "status": "ok",
  "time_server": 1718711827,
  "body": {
    "home": {
      "id": "65185fa45xxxxxxxxxxxxx",
      "modules": [
        {
          "id": "00:04:74:12:49:7e",
          "type": "NLE",
          "firmware_revision": 18
        },
        {
          "id": "00:04:74:12:49:7e#0",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        },
        {
          "id": "00:04:74:12:49:7e#1",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        },
        {
          "id": "00:04:74:12:49:7e#2",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        },
        {
          "id": "00:04:74:12:49:7e#3",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        },
        {
          "id": "00:04:74:12:49:7e#4",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        },
        {
          "id": "00:04:74:12:49:7e#5",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        },
        {
          "id": "00:04:74:12:49:7e#6",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        },
        {
          "id": "00:04:74:12:49:7e#7",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        },
        {
          "id": "00:04:74:12:49:7e#8",
          "type": "NLE",
          "bridge": "00:04:74:12:49:7e"
        }
      ]
    }
  }
}

I do not see any thing in the log related to Netatmo What /command would you suggest me to try ?

tmenguy commented 2 weeks ago

Ouch …. Like above there is no power data at all from what I see :( . Do you see the energy being not 0 in your HA entities ?

Iz-No-Good commented 2 weeks ago

stay positive ;) All energie entities are showing 0 whille power state "unavailable"

Iz-No-Good commented 2 weeks ago

It is weird as in the Netatmo dev documentation, i read that:

Get the total energy

And the device itself displays power per line ...

tmenguy commented 2 weeks ago

Hi,

Yes seems an issue in their API with no power. The fact that you have the energy at 0 is an issue and it shouldn't be the case, but hard to debug for me without access to such a device. Let it run for a few hours with no reset (but it seems you done it already :( )

Iz-No-Good commented 1 week ago

Hi,

What is the issue of not having power ? After all, what matters to me is the energy... and any way, depending on the polling, one can be calculated from the other ... Is there something I can do from my HA to validate connection toward Netatmo site ?

Looking more in my log, I just noticed the following eror: Error during webhook registration - 400 - Bad request - Allowed ports for webhooks are 80, 88, 443 and 9443. (21) when accessing 'https://api.netatmo.com/api/addwebhook'

I will reset my webhook on Netatmo, and retry.... :/

tmenguy commented 1 week ago

the webhook issue is not impacting the energy collection part. So won’t help unfortunately. And you are right the fact that the power is missing shouldn’t impact energy, but a lot of stuff are missing in the homestatus, maybe it impacts something. Hard to tell without de debugging on a house that have this meter.

as for the energy that we can compute from power : I created the custom one because the power measures was erratic and not precise enough compared to the one in the netatmo app to get the energy.

Iz-No-Good commented 1 week ago

I tried to delete the Netatmo devices, uninstall the Custom Integration, reset my dev.netatmo.net account ...and reinstall everything. Same issue. The integration see the devices and still, it blocks at the webhook registration. So for the last couple of days, I tried to fix it without any success.... I am loosing hope :/