Gladys Assistant 4.66: Energy monitoring and Zigbee2mqtt 2.7.1!

Yes, with pleasure, I’m finishing up the date selection and I’ll make it available.

And there you go :
image
image
With date control and locking :
image
image

Prevention :
image

3 Likes

Great !! Well done :wink:

Most of the devices on my network have been running for several years and are configured with unlimited backups, but although the tasks complete successfully, the data only appears for 2025 and 2024 at best.

How is it possible to retrieve all the data?

Hi @Jluc,

  1. Do you have your contracts for the corresponding dates? Otherwise the costs cannot be calculated.
  2. That said, if you switch to the « Consumption » view these should appear for the out-of-contract periods, I think.
    image vs image

Hi everyone :slight_smile:

Nice to see there was activity while I was unavailable!

@froch Could you create a specific thread for your questions? The accuracy of the calculations is my priority, and I think you’re one of the first to test the « basic » peak/off-peak hours (excluding Tempo), so I’d really appreciate your feedback so we can fix all that! (Don’t hesitate to just copy-paste your post into a thread)

I’ll look into that after the break, but if there isn’t a specific thread your message might get lost! Thanks :slight_smile:

@Terdious Thank you very much for your developments, it’s great! I’ll review all that when I’m back after the break :slightly_smiling_face:

Just a small note regarding PRs: as I always say, try to favor more concise and well-scoped PRs. I feel like this one mixes quite a few things and I’m having trouble seeing how I’ll be able to review it :sweat_smile:

Hi @pierre-gilles,

Yes yes no problem, I had taken your end-of-year leave into account — we’ll handle that in 2026 ^^

So in this case, if you can answer me on that I’ll reorganize if needed during your absence, because I assume you mean the 2nd PR and I know it’s large but it really only affects the evolution of the settings tab.
To be able to do the dev and my tests, I built it from the 1st PR (addition of the tasmota part) so I could use my production base for a real test and add the new features for already existing devices.
Once the 1st PR is approved and merged the corresponding changes will no longer appear in the modified files.

It’s long because indeed it adds the date selection AND the feature selection.
If you prefer I can split it into 2 PRs but some changes will affect both PRs because I’m adding details for task/job tracking:

  • One for adding the date selection
  • One for adding the feature selection
    But in that case I would still reuse the previous PR to have the task/job modifications only once.

Tell me and I’ll take the time to do that, or I’ll leave it as is if that suits you!! ^^

Hi @Terdious,

First of all, a big thank you for your dedication and everything it brings to users.

I only entered the pre-tax amount per kWh and set the start date to 2022

image

I must be misprioritizing the devices and matching the wrong items in the dropdown because the consumption is the same for the fridge as for the whole network.

image

Ah ok, my bad! We’ll see how it goes when the first one is merged then :slight_smile:

Indeed, your 30-minute consumption should be under "

Thanks, and I have to do the same for all the other outlets. I just have one case with an outlet that controls a set of devices and another outlet on top of it to control others; I’ll run some tests.

Now I’m getting this:

Did you have the index recalculated from the beginning?

Hello !!

@mutmut, a test image is finally being built. I’ll give you the link as soon as it’s ready !!

As a reminder: although my tests revealed no issues when switching back to master, be careful not to break your prod instance.

For my part, I always run my tests by duplicating my db and launching a test image on another port, selecting the duplicated dbs which I rename to gladys-development.db / *.duckdb.
Then once launched I stop gladys-plus and all the scenes on the test instance (By the way I’m thinking of creating a PR to be able to stop all scenes with one click, that would be awesome ^^ even on prod it could be interesting in case gladys goes haywire ^^)

1 Like

https://hub.docker.com/repository/docker/terdious/gladys/tags/dev-energy-calculate/sha256-0ac4ff0dd1c66e16e5a2e39d05372eb28977a0a849b4bf65f910d900aa4dabd5

The image :
docker pull terdious/gladys:dev-energy-calculate

1 Like

Thanks @Terdious, I’ll test that tonight.
My method to test your image: snapshot of my LXC on Proxmox, update my Docker Compose with your repository and restart with cleanup :wink:
And if it crashes, roll back the snapshot :partying_face:

In any case I’ll keep you posted!

1 Like

Quick question, I haven’t followed the latest

A start of an answer here : https://community.gladysassistant.com/t/matter-ajouter-la-consommation-electrique-dun-appareil/9783/6?u=mutmut

I’m looking at your dev and I have a few remarks :

  • I only see my teleinfo indexes but not my outlets or relays that have consumption tracking :
    image
  • when you select an item, it appears in the analysis list but doesn’t disappear from the selection listing (but you can’t have it selected twice for analysis :ok_hand:)
    image

I ran 2 calculations on my jours rouges indexes, one with the total, the other with the winter period, I’ll see the result tomorrow.

1 Like

Hi @mutmut

Could you give me the category/type of your outlets or relays? I thought I had correctly mapped the correspondences from the existing setup, I may have been wrong. They appear in the « My devices » tab of the « Energy Monitoring » integration, I suppose?

I’ll fix that, indeed, I noticed it too ^^

Ok great, let me know

1 Like