# Energycounter with Context

**URL:** <https://discourse.nodered.org/t/energycounter-with-context/44045>\
**Category:** Share Your Projects\
**Created:** [12 April 2021 15:14 UTC](https://discourse.nodered.org/t/energycounter-with-context/44045 "2021-04-12T15:14:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abrechen2](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Abrechen2](https://discourse.nodered.org/u/Abrechen2)\
**Post date:** [12 April 2021 15:14 UTC](https://discourse.nodered.org/t/energycounter-with-context/44045/1 "2021-04-12T15:14:24Z")

</div>

hey guys have a look at my Website:

> **[Energiezähler Subflow Für Nodered - Abrechen2Technikblog](https://abrechen2technikblog.duckdns.org/energiezahler-subflow/)**
>
> Da es leider keinen passenden Node gibt der einfach nur Leistungswerte nimmt und dann die kwh Werte für Tag/Woche/Monat/Jahr ausgibt, habe ich einen

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [12 April 2021 15:50 UTC](https://discourse.nodered.org/t/energycounter-with-context/44045/2 "2021-04-12T15:50:21Z")

</div>

Just had a quick look at your subflow, and it appears that you are simply aggregating the readings, regardless of how long there is between the readings.  
The calculation for energy is **power x time = energy** , so if you don't know the exact time between the individual readings, the final result may not be accurate.

---

<div class="post-metadata">

**Author:** ![Abrechen2](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Abrechen2](https://discourse.nodered.org/u/Abrechen2)\
**Post date:** [12 April 2021 16:09 UTC](https://discourse.nodered.org/t/energycounter-with-context/44045/3 "2021-04-12T16:09:03Z")

</div>

this Problem shuld handle the watt2kwh i thought?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [12 April 2021 16:15 UTC](https://discourse.nodered.org/t/energycounter-with-context/44045/4 "2021-04-12T16:15:38Z")

</div>

Ah OK, the flow from your website is not wired to include the watt2kwh node in the flow, you may need to export it again.  
If your readings pass through the watt2kwh node first, then yes, it would then be accurate.

---

<div class="post-metadata">

**Author:** ![Abrechen2](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Abrechen2](https://discourse.nodered.org/u/Abrechen2)\
**Post date:** [12 April 2021 16:19 UTC](https://discourse.nodered.org/t/energycounter-with-context/44045/5 "2021-04-12T16:19:41Z")

</div>

oh thanks for your help and feedback, its my first Website 😅 Founded yesterday

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [12 April 2021 16:22 UTC](https://discourse.nodered.org/t/energycounter-with-context/44045/6 "2021-04-12T16:22:31Z")

</div>

> [@Abrechen2](#):
>
> its my first Website 😅 Founded yesterday

Well you've done a great job, I'm sure it will help others 👍
