# Energy Home overview miscalculation

**URL:** <https://community.homey.app/t/energy-home-overview-miscalculation/24692>\
**Category:** Vragen & hulp\
**Created:** [January 19, 2020, 1:08pm UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692 "2020-01-19T13:08:57Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bol](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bol/32/20190_2.png) [@Bol](https://community.homey.app/u/Bol)\
**Post date:** [January 19, 2020, 1:08pm UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/1 "2020-01-19T13:08:57Z")

</div>

I’ve a SolarEdge converter connected with the solar panels and a smart grid meter.  
Homey get the smart meter data via P1 monitor and the solar data via Zonnepalen app with the SolarEdge API key.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/0/60cd7cb124ffec61bd18767f1b3f7ed65e41aff8.jpeg)

In the overview Homey makes in my opinion the wrong calculation.  
Homey adds up the solar energy and the energy supplied!

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [January 19, 2020, 1:20pm UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/2 "2020-01-19T13:20:30Z")

</div>

The P1 app you are using is not reporting to Homey conform the required conventions. P1 production (teruglevering) is not a solar panel and thus should not report it that way. And P1 smart meter should only report a single total value, being the usage - production.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 19, 2020, 1:24pm UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/3 "2020-01-19T13:24:14Z")

</div>

Het gaat om Watts, dus actuele opwekking, niet om kWh (cumulatief over tijd). Een P1 meter geeft zowel actuele waarden als totalen.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 19, 2020, 1:26pm UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/4 "2020-01-19T13:26:00Z")

</div>

Homey weet niet dat beiden waarden (“Oostduyn zon” en “P1-meter teruglevering”) de waarden van dezelfde PV-installatie weergeven; in plaats daarvan denkt Homey dat je twee PV-installaties hebt.

---

<div class="post-metadata">

**Author:** ![Bol](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bol/32/20190_2.png) [@Bol](https://community.homey.app/u/Bol)\
**Post date:** [January 20, 2020, 9:14am UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/5 "2020-01-20T09:14:04Z")

</div>

Bedankt voor snelle reactie.

Stefan Lenders ( P1 monitor) heeft gereageerd op mijn review en vraagt om meer info.  
Heb geen email adres van hem en hij vraagt me een issue te openen op github hiervoor.

Helaas heb ik daar geen ervaring mee hoe dit moet.

Met vriendelijke groet,

Ben van Os

---

<div class="post-metadata">

**Author:** ![Bol](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bol/32/20190_2.png) [@Bol](https://community.homey.app/u/Bol)\
**Post date:** [January 21, 2020, 9:08am UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/6 "2020-01-21T09:08:57Z")

</div>

In my opinion is there a simple solution for this issue.  
In the app P1 monitor under the tag **P1-meter Verbruik** -\>settings-\>advanced settings there is the option “Bring energy in total yes / no”

I would also like this option for the **P1-meter Teruglevering**

---

<div class="post-metadata">

**Author:** ![Stefan\_Lenders](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stefan_lenders/32/10368_2.png) [@Stefan\_Lenders](https://community.homey.app/u/Stefan_Lenders)\
**Post date:** [February 12, 2020, 6:04pm UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/7 "2020-02-12T18:04:23Z")

</div>

Hey Ben

Excuus dat ik je bericht niet eerder heb gevonden. Ik heb het issue vastgelegd op Github voor je: [https://github.com/burnacid/homey-com.burnacid.ztatz/issues/14](https://github.com/burnacid/homey-com.burnacid.ztatz/issues/14)

Kan je voor mij een export van je API doorsturen zodat ik kan zien wat ZTATZ voor data genereert zodat ik zelf kan testen. Open het volgende en stuur me de data die je daar ziet.

[http://linknaarZTATZ/api/v1/smartmeter?limit=20](http://linknaarZTATZ/api/v1/smartmeter?limit=20)

Liefst wel op een moment dat de zonnepanelen een beetje energie genereren (geen 0 in ieder geval)

Ik hoor het graag dan kan ik kijken of ik het voor je kan oplossen.

---

<div class="post-metadata">

**Author:** ![Bol](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bol/32/20190_2.png) [@Bol](https://community.homey.app/u/Bol)\
**Post date:** [February 15, 2020, 10:14am UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/8 "2020-02-15T10:14:14Z")

</div>

Ha Stephan,

Hierbij gevraagde info:

```auto
[["2020-02-15 11:11:49", 1581761509, 0, 8912.096, 7674.394, 4224.316, 9602.584, "D", 0, 704, 6825.553], ["2020-02-15 11:11:38", 1581761498, 0, 8912.096, 7674.394, 4224.314, 9602.584, "D", 0, 881, 6825.553], ["2020-02-15 11:11:29", 1581761489, 0, 8912.096, 7674.394, 4224.312, 9602.584, "D", 0, 695, 6825.553], ["2020-02-15 11:11:19", 1581761479, 0, 8912.096, 7674.394, 4224.31, 9602.584, "D", 0, 678, 6825.553], ["2020-02-15 11:11:08", 1581761468, 0, 8912.096, 7674.394, 4224.308, 9602.584, "D", 0, 673, 6825.553], ["2020-02-15 11:10:59", 1581761459, 1, 8912.096, 7674.394, 4224.306, 9602.584, "D", 0, 782, 6825.553], ["2020-02-15 11:10:49", 1581761449, 1, 8912.096, 7674.394, 4224.303, 9602.584, "D", 0, 898, 6825.553], ["2020-02-15 11:10:38", 1581761438, 1, 8912.096, 7674.394, 4224.301, 9602.584, "D", 0, 862, 6825.553], ["2020-02-15 11:10:29", 1581761429, 1, 8912.096, 7674.394, 4224.299, 9602.584, "D", 0, 1090, 6825.553], ["2020-02-15 11:10:19", 1581761419, 1, 8912.096, 7674.394, 4224.296, 9602.584, "D", 0, 439, 6825.553], ["2020-02-15 11:10:08", 1581761408, 1, 8912.096, 7674.394, 4224.294, 9602.584, "D", 0, 1216, 6825.553], ["2020-02-15 11:09:58", 1581761398, 1, 8912.096, 7674.394, 4224.289, 9602.584, "D", 0, 1112, 6825.553], ["2020-02-15 11:09:49", 1581761389, 1, 8912.096, 7674.394, 4224.287, 9602.584, "D", 0, 690, 6825.553], ["2020-02-15 11:09:38", 1581761378, 1, 8912.096, 7674.394, 4224.285, 9602.584, "D", 0, 599, 6825.553], ["2020-02-15 11:09:28", 1581761368, 1, 8912.096, 7674.394, 4224.283, 9602.584, "D", 0, 554, 6825.553], ["2020-02-15 11:09:19", 1581761359, 1, 8912.096, 7674.394, 4224.282, 9602.584, "D", 0, 535, 6825.553], ["2020-02-15 11:09:08", 1581761348, 1, 8912.096, 7674.394, 4224.281, 9602.584, "D", 0, 530, 6825.553], ["2020-02-15 11:08:58", 1581761338, 1, 8912.096, 7674.394, 4224.279, 9602.584, "D", 0, 532, 6825.553], ["2020-02-15 11:08:49", 1581761329, 1, 8912.096, 7674.394, 4224.277, 9602.584, "D", 0, 513, 6825.553], ["2020-02-15 11:08:38", 1581761318, 1, 8912.096, 7674.394, 4224.276, 9602.584, "D", 0, 506, 6825.553]]

```

 ![image0.png](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/0/e0b41171543bf6081b8b464665f3447fb42eae6f.png)

Met vriendelijke groet,

Ben van Os

---

<div class="post-metadata">

**Author:** ![Stefan\_Lenders](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stefan_lenders/32/10368_2.png) [@Stefan\_Lenders](https://community.homey.app/u/Stefan_Lenders)\
**Post date:** [February 16, 2020, 7:55am UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/9 "2020-02-16T07:55:40Z")

</div>

Helaas is je idee dat homey het verkeerd weergeeft volgens mij correct. Ik kan daar verder niets aan veranderen. Ik heb gekeken maar inderdaad de Energy tab voegt gewoon alles samen ook al is een meter netjes gedefinieerd als “solarpanel”

Ik kan het helaas niet oplossen voor je.

---

<div class="post-metadata">

**Author:** ![Jaapp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jaapp/32/9656_2.png) [@Jaapp](https://community.homey.app/u/Jaapp)\
**Post date:** [May 15, 2020, 6:31pm UTC](https://community.homey.app/t/energy-home-overview-miscalculation/24692/10 "2020-05-15T18:31:44Z")

</div>

Na een uitgebreide discussie met Homey zijn we er achter gekomen dat het inderdaad een bug is.  
Als je bij de slimme meter “counts towards total” aan zet maakte Homey een foute aanname en telt de zonne panelen bij het totaal op. Het optellen of aftrekken zou configureerbaar in Homey moeten zijn:  
Total = productie + gebruik  
Of  
Total = productie - gebruik

Ik heb hiervoor een feature request aangemaakt. Misschien wordt het sneller opgelost als er meer verzoeken zijn.
