# Gladys Assistant 4.66: Energy monitoring and Zigbee2mqtt 2.7.1!

**URL:** <https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854>\
**Category:** Actualités\
**Created:** [December 8, 2025, 2:29pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854 "2025-12-08T14:29:28Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [December 15, 2025, 8:07pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/101 "2025-12-15T20:07:35Z")

</div>

I mostly agree, it doesn’t make sense to apply the subscription fee to levels above 0. In my case, where I detail each electrical panel to get my actual consumption, the subscription is added for each meter, which, in this instance, is not correct.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [December 15, 2025, 8:13pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/102 "2025-12-15T20:13:41Z")

</div>

> [@prohand](#):
>
> For me the subscription cost should be applied only to level 0 and possibly the Lixee, right?

Oops, good catch 😃 I think I’ll just add an option that can be enabled or disabled in the interface because Gladys can’t know whether it should be activated or not

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [December 15, 2025, 8:22pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/103 "2025-12-15T20:22:57Z")

</div>

My proposal:

![Screenshot 2025-12-15 at 21.22.21](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/a/f/af14acc10f6ffce30b7233c895bab4decc78d85d.png)

> <https://github.com/GladysAssistant/Gladys/pull/2403>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[forum\](https://community.gladysassistant.com/)) for testing before merging.
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Energy Monitoring: Only show subscription price if selected

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [December 15, 2025, 8:29pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/104 "2025-12-15T20:29:51Z")

</div>

Perfect 👌  
Disabling it here won’t affect anything else  
Otherwise I would have disabled it directly in the integration

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [December 15, 2025, 8:31pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/105 "2025-12-15T20:31:29Z")

</div>

No, it’s just on the widget! I rolled out a release, so I’ll be less available over the next few days — this is my last shot 😂

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [December 15, 2025, 8:31pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/106 "2025-12-15T20:31:52Z")

</div>

Ok, perfect then ☺

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [December 15, 2025, 8:43pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/107 "2025-12-15T20:43:22Z")

</div>

Gladys Assistant v4.66.8 is available with this fix!

> [@prohand](#):
>
> If you check it once, will it remain checked?

Yes, it’s a widget setting, in the dashboard configuration. You only need to check it once during configuration.

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [December 16, 2025, 2:02pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/109 "2025-12-16T14:02:22Z")

</div>

Done here:

> <https://github.com/GladysAssistant/Gladys/pull/2404>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Energy Monitoring : Add UI helper for Tasmota integration ... and Other

@pierre-gilles, after several attempts I went with the exact same approach you used for the MQTT integration. So it’s valid for all integrations that have access to modifying features.

Indeed, I looked into automating it the way zigbee2mqtt does, but in the end it didn’t seem appropriate because Tasmota devices create 3 energy metrics when a device is created:

- Total Energy
- Energy today
- Energy yesterday  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/f/b/fb6ad18628acc8294c128b5e1d0c83ca60de20af.png) ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/6/5/657223b2b6397ee6cf3cf9c08acf2518b6a47cf9.png) ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/3/0/303dce3612b1ca7ff03c251de0cdff6efab17b8e.png)

They are not distinguished by type and therefore the last two are not worth exposing as consumption / cost.

So I decided that we should always create them manually. Is it worth creating a helper when adding a new device that contains at least one Energy feature to prompt creating it manually?

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [December 16, 2025, 2:16pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/110 "2025-12-16T14:16:52Z")

</div>

Following this development I thought of one thing:

- I will have 8 outlets to update for their consumption / cost once integrated…
- I’ll be too lazy to wait 24 hours to re-run the cost calculations for all devices
- What do you think (do you think) about modifying the Energy Monitoring Settings view  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/9/e958514de6377b5a91052e6f008de80f0d628c97.png)

1. To put only a single global calculation button «&nbsp;Calculate consumption and cost of all devices from the beginning&nbsp;»? Because ultimately, we always do both… It doesn’t make sense to do consumption only, and if we decide to run the cost calculation then consumption must necessarily be done as well, right?

2. Add a global recalculation button with a field «&nbsp;Since&nbsp;» and a date selector. Indeed, for those who, like me, have the energy tariff created manually, when the price changes, if I’m late creating the new prices, a shift will occur and we’ll have to rerun everything from the start. If we can recalculate from a date, that’s faster and will relieve the CPU and RAM, which may thank us ^^ 🙂

3. Add a field for the action for only a list of devices. Similar to the graphs, a multi-select list would allow selecting devices to recalculate from the beginning (for any addition of new functionality) and therefore would not affect other consumption / cost already calculated.

I’m happy to look into taking care of it if that’s relevant for everyone? (It is for me ^^)

---

<div class="post-metadata">

**Author:** ![froch](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@froch](https://community.gladysassistant.com/u/froch)\
**Post date:** [December 16, 2025, 4:48pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/111 "2025-12-16T16:48:50Z")

</div>

Hello

I just configured the new energy management (‘énergie) (Enedis and llixee Tic with a Linky in standard TIC mode) and I notice inconsistencies between the consumption values on the EDF & Enedis sites and Gladys.

On the left-hand graph the values match the Enedis values.

On the other graphs (30-minute consumption) I notice that the values for April and March do not correspond to the values shown on the Enedis site.

The annual values in euros and kWh are not correct for 2025, 2024 and 2023.

![Screenshot 2025-12-16 at 16.25.13](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/1/8/18102a5e5db324a45556e35e070eda1137711f66.png)

I restarted the meter synchronization with Gladys but that changes nothing.

On the Enedis graph below, before the end of April 2025 I noticed that there is only one value every two days, but the annual values are higher than my actual consumption!!

![Screenshot 2025-12-16 at 17.34.15](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/3/735a701bbcb142d1b362e2b5b6ea03ab389837c7.png)

For the configuration of off-peak and peak hours I have two periods:

one from 21:00 to 23:00 and another from 1:00 to 7:00

![Screenshot 2025-12-16 at 16.30.10](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/c/f/cfdce71626d775726b4389d5d219edab908df183.png)

The bar corresponding to 1:00 should be entirely off-peak.

The bar corresponding to 7:00 should be peak and not off-peak.

The bar corresponding to 21:00 should be entirely off-peak.

The bar corresponding to 23:00 should be peak and not off-peak.

But maybe I’m mistaken.

![Screenshot 2025-12-16 at 16.27.09](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/a/6/a6a48c53989ae0fa6176202030d0a9ac8089c9e1.png)

Comparison with the EDF graph

![Screenshot 2025-12-16 at 17.20.29](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/5/4/5400f9da6da954dfa033d5c8513a5298deb366db.png)

![Screenshot 2025-12-16 at 16.29.13](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/f/4/f47b37715161f7bbe76245695519e5dae23457ec.png)

Last topic: I use PZEM-004T & ESP32 via TASMOTA as energy meters

For my heat pump, my hot water tank and my sump pump

Today it is not possible to integrate them into the Energy management — how can I add the 30-minute consumption variables and the 30-minute cost?

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [December 16, 2025, 6:04pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/112 "2025-12-16T18:04:00Z")

</div>

Proposal for points 1) and 3) mentioned above :  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/c/f/cf2f29f815ac5232eef586cc128ef3497e562392.png)  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/a/e/ae0b472a2ac914b0a5aa835b1eca64d01d8b0073.png)

Here we only recalculate the 2 features selected from the start.  
What do you think?

The big advantage: I was able to recreate a new feature that I had forgotten, select it and re-run a recalculation job only for that one  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/a/eac7a45ba7d18d41cceaab2988f908c9787a6992.png)

It was positioned after the others and is therefore pending:  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/8/d824124e667b5b9342087256129d74def086c9d0.png)

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [December 16, 2025, 6:13pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/113 "2025-12-16T18:13:04Z")

</div>

Hi @froch,

Indeed, strange what’s happening with your HP/HC (peak/off-peak hours) apparently.

I’ll only reply to the last part

> [@froch](#):
>
> last topic: I use PZEM-004T & esp32 via TASMOTA as an energy meter
> 
> For my heat pump, my hot water tank (cumulus) and my sump pump (pompe de relevage)
> 
> Today it’s not possible to integrate them into Energy management — how to add the 30-minute consumption and the 30-minute cost variables?

Indeed, that was exactly the subject of my post just above: [https://community.gladysassistant.com/t](https://community.gladysassistant.com/t)

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [December 16, 2025, 7:14pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/114 "2025-12-16T19:14:13Z")

</div>

Hi @Terdious,

I’m replying to your very relevant suggestions:

1. merge recalculation of consumption AND cost: YES because we’ll do both anyway UNLESS we don’t yet have the contract from our energy supplier. And NO because in my case (and for Alsatians), we can take EDF for now but the subscription at ES is different (more expensive) than EDF. So we’ll recalculate costs only, not consumptions  
 **→ Have 3 buttons: Recalculate consumption, recalculate cost, recalculate consumption + cost**
2. Start date: YES and I would also add an end date. The goal, in my view for the start of this great development, is to run tests and validate over one month, six months, one year, that the units (my current problem) and the costs match within a short calculation time and not in 12h + 2h (still in my case) before getting… shaky results
3. Here I’m 100% FOR it! At my place all Z2M devices that are «&nbsp;consumers&nbsp;» have a consumption of 30 and a cost of 30, both correct. My MQTT virtual devices part for my Tempo indexes isn’t quite there yet and if I can just test for a single one, it will allow me to go much faster in finding what’s wrong. Then I have Z-Wave devices with energy consumption (not yet developed for tracking, same for Tasmota, and what about Matter?) and running calculations only on those would be a big plus.

I’ll toss out an idea: the ability to see information indicating the devices that have already had the calculations done (consumption/cost) and be able to choose the new ones and/or some older ones to recalculate.

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [December 16, 2025, 7:24pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/115 "2025-12-16T19:24:08Z")

</div>

Hi @mutmut

> [@mutmut](#):
>
> merge recalculation of consumption AND cost: YES because we will do both anyway UNLESS we don’t yet have the contract from our energy supplier. And NO because in my case (and the Alsatians), we can take EDF for now but the subscription with ES is different (more expensive) than EDF’s. So we will recalculate costs only, not the consumption  
> **→ Have 3 buttons: Recalculate consumption, recalculate cost, recalculate consumption + cost**

Very relevant and indeed, I was just thinking the same — cost calculation is much faster I think and this can absolutely be a scenario (adding contracts gradually and rerunning everything will be pretty quick!! ^^

> [@mutmut](#):
>
> Start date: YES and I would also add an end date. The goal, in my view for the start of this great development, is to run tests and validate over one month, 6 months, 1 year, that the units (my current problem) and the costs match within a short calculation time and not 12h + 2h (still in my case) before getting … shaky results

Not wrong ^^ It’s no harm in that, and your example for tests seems pertinent to me

> [@mutmut](#):
>
> Here I’m 100% FOR! At my place all the Z2M devices that are «&nbsp;consumers&nbsp;» have a consumption of 30 and cost 30 correct. My virtual MQTT devices for my Tempo indexes aren’t quite there yet and if I can just test for one, it’ll let me go much faster to find what’s wrong. Then I have Z-Wave devices with energy consumption (tracking not yet developed, same for Tasmota, and what about Matter?) and running calculations only on those would be a big plus.

Exactly the goal indeed. We’ll have to see with Z-Wave and Matter, but in itself the dev for Tasmota could easily be opened to those integrations. You just need to open the edit page if that’s not already done!

> [@mutmut](#):
>
> Come on, I push an idea: possibility to see an indicator showing devices that have already had calculations done (consumption/cost) and be able to choose new ones and/or some old ones to recalculate.

I’ll let @pierre-gilles look at that part because I see the need, but technically I wouldn’t know how to do that off the top of my head… ^^

> [@mutmut](#):
>
> And again a big thank you for sponsoring this dev 🤩

I think I’m not wrong in saying that it makes both @pierre-gilles and me very happy to have such enthusiasm for this integration. I admit that for me it was something I had been waiting for a long time but knew would be a mountain to climb!! And moreover it’s rental income for me!!

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [December 16, 2025, 9:13pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/116 "2025-12-16T21:13:57Z")

</div>

I fully endorse the proposals you made @Terdious, they seem very relevant indeed.

Regarding @mutmut’s proposal on point 1, I understand the usefulness of recalculating only the costs, in addition to the full consumption+cost calculation. But I don’t really see in which case one would want to recalculate only the consumption without also recalculating the costs?

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [December 16, 2025, 9:22pm UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/117 "2025-12-16T21:22:23Z")

</div>

> [@StephaneB](#):
>
> But I don’t really see in what case one would want to recalculate only the consumptions without also recalculating the costs?

For my part, I must have a unit problem with my Tempo indexes. They are in Wh but the calculation doesn’t seem right in the end. I could thus just have the consumption recalculated and already check if those values are correct before starting the cost calculation.  
But on reflection, it wouldn’t take much more time to recalculate consumption+cost — only if we can select a single device independently.

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [December 17, 2025, 10:13am UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/118 "2025-12-17T10:13:53Z")

</div>

Ok, so a simplification following the feedback :  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/4/e/4e7f8b4c7d30e46eb837f9fe9165fc3f639ab4ba.png)

So, given the impact there may be for some time, I added a confirmation button in case we want to recalculate everything :  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/7/078f50c9cdc2f0a6e66fc12cf6051e39cd332063.png)

I’ll continue with point 2) on the start/end dates

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [December 17, 2025, 10:22am UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/119 "2025-12-17T10:22:25Z")

</div>

> [@Terdious](#):
>
> I added a confirmation button in case someone wants to recalculate everything

In your screenshot, there’s `Confirmer le recalcul complet du coût`; is there the same for consumption+cost? on all devices or only the selected ones?  
Personally I see it by default all the time and in every situation, that way we don’t have to wonder.

I see that even when @

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [December 17, 2025, 10:37am UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/120 "2025-12-17T10:37:27Z")

</div>

> [@mutmut](#):
>
> Dans ton screenshot, il y a `Confirmer le recalcul complet du coût`; il y a la même chose pour conso+coût ? sur tous les appareils ou seulement les sélectionnés ?  
> Perso je le vois bien par défaut tout le temps et dans tous les cas de figure, comme ça on ne se pose pas de question.

Indeed, for the moment I have only implemented it when no functionality is selected (but it is implemented for consumption+cost and for cost-only) because it’s the heaviest job and cannot be manually interrupted except by restarting Gladys =\> This is important because you should know that currently if Gladys restarts, the job does not resume at startup (so you’ll have to start all over again).

I considered that once you’ve selected a functionality, you’re already in control of what you’re doing and in that case the alert becomes «&nbsp;Too much&nbsp;». Especially since with this dev, you can launch a first functionality whose consumption+cost will be recalculated and immediately afterwards (or 10 minutes later) launch one or several others even if the first isn’t finished — it will just add them to a waiting queue.  
For example, I launched a consumption+cost calculation on the Hay purifier (Purificateur de foin) and then added a cost-only recalculation on the consumption of the heat pump (PAC). Everything goes into waiting (thanks @pierre-gilles ^^ I didn’t have to do anything for that ^^) and then all normal calculations over time every 30 minutes get added to the queue so nothing is lost (well, as long as Gladys doesn’t restart I think) :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/8/c/8ca8859bc82c095642d3d2c0858f66c4fcac88ba.png)

> [@mutmut](#):
>
> Je vois que même quand @pierre-gilles n’est pas là, ça ne chôme pas sur le dev, bravo @Terdious 😜

I admit that after the PR on Tasmota, it made me want to work on this because I’m really too lazy to run the recalculation on everything, with the risks that come with it (as I said before, my recalculation takes about 30 hours; if Gladys stops during that, it can delay the use of the full feature for a long time, whereas it works very well for all devices currently in place ^^)

And for my part, like some others, I launched the primary calculation before having saved all my contracts, so I’ll need to rerun the costs only for the periods before 2025 ^^

---

<div class="post-metadata">

**Author:** ![mutmut](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/mutmut/32/14064_2.png) [@mutmut](https://community.gladysassistant.com/u/mutmut)\
**Post date:** [December 17, 2025, 11:00am UTC](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854/121 "2025-12-17T11:00:09Z")

</div>

Great for the recalculation and the info in the tasks!

And if you happen to have a Docker image to test and validate on another environment, I’m interested 😉

[Previous page](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854.md?page=5)

[Next page](https://community.gladysassistant.com/t/gladys-assistant-4-66-suivi-de-lenergie-et-zigbee2mqtt-2-7-1/9854.md?page=7)
