Enedis-Linky integration

Hi @_Will_71 @Tlse-vins :slight_smile:

I think I know where the bug comes from — it’s not a bug related to the Enedis integration per se, but to the way the aggregation of values linked to historical data works!

Would you mind sending me your database privately so I can reproduce the issue on my end?

Thanks!

Hi @pierre-gilles I’ll try to send it to you tonight

Thanks @_Will_71, remember to stop Gladys before copying the file :slight_smile:

I can’t promise I’ll have time to do it tonight.
I’ll take a look.
It would be nice to be able to retrieve the file directly via Gladys Plus. Wouldn’t that be possible?

I sent you an email with a link to download my database

Thanks @_Will_71 for your DB, that confirms what I thought. The Enedis integration works well, you have all the data on your local DB, however the aggregated data are not correct which is causing these display issues

I created a GitHub issue, I’ll keep you posted when it’s fixed :slight_smile:

The file on the Gladys Plus side is encrypted with a key only present on the local instance, so in any case there will be a download to the local instance + a decryption; not sure that’s the best option

But a « Download my database » button in Gladys locale, why not (to see if it’s a recurring need)

@Tlse-vins @_Will_71 I worked this morning on this issue to resolve this display problem on your instances.

I fixed the bug in this PR:

And I coded a database migration to fix the existing data on your instances:

All of this will be included in the next version of Gladys :slight_smile:

Thanks @_Will_71 for the DB, it helped me a lot!

2 Likes

@Tlse-vins @_Will_71 The fix was released last week in Gladys Assistant v4.23.3 — is the bug properly resolved for you? :slight_smile:

Yes, I confirm.

1 Like

Yes, I confirm as well.
However, on the 7-day view only 5 days are displayed — is that normal? On the chart above I can see 7 days

Yes it’s normal, the latest value I see from Enedis is dated May 20, it should update during the morning with fresher values :slight_smile:

Also, I have the impression that on weekends that include public holidays, Enedis isn’t always

Ok I’ll look later

1 Like

@pierre-gilles So I did get an Enedis update because now I have 6 days on the graph. The 21st has been added.

However I only have 6 days displayed from May 16 to 21

On another graph (non-Enedis) in the 7-day view the graph shows May 15 to 21

I can find the value if needed on the 30-day graph, but is it normal to only have 6 days then?

This may be confusing, but when this chart displays the last 7 days, it will fetch the last 7 24-hour periods.

So if you look at your chart on Sunday at 3:00 PM, it will fetch states up to the previous Sunday at 3:00 PM, which makes sense if you’re looking at a line chart with lots of sensor values.

The Enedis case is special, because there is only one state per day (since it’s a daily consumption), an event which is inserted on the day’s date (with 00:00 for the time → midnight)

So if you check during the day, indeed it will only display 6 days because the state at midnight is too old for this view

Several options are possible:

  • Either we change for everyone so that « last 7 days » = « the last 7 days starting at midnight of the day 7 days ago »
  • Or we change only for a selected set of sensor types (of which Enedis will be part)
  • Otherwise, due to the unique nature of the Enedis integration, the next step of this development (if there is demand for it) was to develop a custom graphical display specifically for « electricity consumption »; I had made mockups on the subject:

Ok now it’s clearer, thanks @pierre-gilles.

It was confusing to see

1 Like

Hello,
I haven’t been receiving my Enedis data for about a week. When I click on the Gladys plus link to Enedis I get this page.

Yet in my Enedis account the data sharing is checked. Do you have any idea what’s going on? Thanks in advance

Same here, no data for a week.

Same here: latest value as of Sept. 7.

Thank you for your feedback, I’ll investigate.