[APP][Pro] Power by the Hour: Insights per hour, day, month and year

Hi,

I try to understand the problem as we seem to compare all output from P1, Energylink and a calculated/derived result from PBTH.

But first, how did you connect both these devices? Is there an active splitter on de P1 port?
How are Energylink and P1 dongle powered?

Further I need output from:

Energylink: http://honewizard-ip/homewizardpassword/el/get/0/readings
P1: http://p1-dongle-ip/api/v1/data

Cheers,
Jeroen

@Jeroen_Tebbens
I use both devices because if my HW stops working I the go further wit the P1.
I want to know if it works like I want. There are sometimes different outcomes of the used power of the day in the HW original apps from about 500Wh and sometimes 1kWh a day.
That is a small issue but strange. It has nothing to do with you’re app. Just tell you why I use both.

Both the devices are connected to a active P1 splitter.
The Energylink and the P1 have there own adapter. Because my meter is a type SMR 4.
It has happend now 2 times that the “Start of the month” changed to the wrong value. I own the P1 just about two month. With the Energylink I have no problems. And I mean that it has happened by the app PBTH.

The links you have put here do nothing, sorry.
What should I try?
But if you think that is everything is good I can wait a couple of days till the first of May and look what value I then get.
Thank you both. @Gruijter

Sorry I need the output of the devices (values).
You have to modify the links I shared to reflect the ip addresses as I don’t know your network.

Further Energylink can act weird sometimes. I occasionally get 1000w for 3 hours duration at night which is wrong. I don’t trust my Energylink anymore but have it to support my Homewizard app.

Ah, OK, sorry. Now I see it.
When I see the difference with the Energylink and the elecricity company then it is at the and of the Mont almost the same for both. So I think that is no problem.

Homewizard Energylink:
{“status”: “ok”, “version”: “3.403”, “request”: {“route”: “/el” }, “response”: [{“type”:“electricity”,“tariff”:1,“consumed”:12037.748,“produced”:783.346},{“type”:“electricity”,“tariff”:2,“consumed”:10903.946,“produced”:1841.028},{“type”:“gas”,“consumed”:3267.636,“timestamp”:1649008800}]}

P1:
{“smr_version”:42,“meter_model”:“Kaifa KAIFA-METER”,“wifi_ssid”:“ASUS2”,“wifi_strength”:100,“total_power_import_t1_kwh”:12037.747,“total_power_import_t2_kwh”:10903.945,“total_power_export_t1_kwh”:783.405,“total_power_export_t2_kwh”:1841.028,“active_power_w”:-51,“active_power_l1_w”:-258,“active_power_l2_w”:null,“active_power_l3_w”:null,“total_gas_m3”:3267.636,“gas_timestamp”:220403120000}

@Mike1233 & @Gruijter

meter_power is the aggregated value sum (consumption T1/T2) - sum (production solar T1/T2).
So can’t see the problem there. Also both Energylink and P1 get roughly same numbers.

    "meter_power": {
      "title": {
        "en": "Total usage KWh",
        "nl": "Totaal verbruik KWh"
      }

this.setCapabilityValue(‘meter_power’, ((data.total_power_import_t1_kwh+data.total_power_import_t2_kwh)-(data.total_power_export_t1_kwh+data.total_power_export_t2_kwh))).catch(this.error);

2 Likes

Hi

I am a happy user of this app in the electricity side and would now also like to measure my water consumption. What is the best unit and solution for this purpose?

My water meter looks like this:

1 Like

Do I see an LED pulse on there? If so you can probably use the Youless LS120.

I do not see any LED pulse when I have water consumption!
Can this pulse be seen with the naked eye? Can it be turned on/off somehow?

Wrong place to ask. Ask your supplier what interfaces the meter can supply to the outside world.

All I know is that the Youless can work with a pulse, either LED or dry contact… Also the youless has a Homey app that supports a water meter that can be used by PBTH.

1 Like

Hi @Gruijter, first of all; what a great app you’ve built. It works really nice and stable and gives a very good insight in my energy usage right now.

There is one thing I cannot fix and maybe you can help me.
First of all let me mention that I use a P1 Plugwise Smile to read my Energy meters.
To calculate the amount of KWH I deliver back to the net I use the app Flow Utilities.
With this app I total the production in high and low tariff. The difference during the day is send to a virtual meter from Power by the Hour.
During the day this gives me insight in the current production of the day.

The thing I cannot fix has to do with the “This day start”
When I use the function “has a daily reset” the start of the day gives a amount which I cannot reproduce and is not 0.
When I do not use the function “has a daily reset” the value of the “start of the day” is the value of the previous day.

These flows are created to make it work:

The values that are calculated match the values which my energy supplier calculates.

Anyone a idea how to solve this without having to set the “start of the day” manually to 0 each day?

:smiling_face_with_three_hearts:

Im not sure what your flows are doing, and also not sure what you want to achieve with PBTH. What exactly is the second flow sending to PBTH? Is that the total kWh returned to the grid ever, or only the kWh returned for a single day?

If it is only for a single day, it will start again at 0 the next day right? In that case you need to set ‘has daily reset’ in PBTH. The value ‘start of the day’ in that case is only an internal value used by PBTH, and there is no need to change it manually. Why do you want to change it?

I want to see how much kWh I return in a single day. This should be the value “kWh deze dag” of the virtual meter

When I won’t change the value, the actual value at “kWh deze dag” is not correct.

For now I changed the setting to “ has a daily reset”
And will have a look at it tomorrow.

I calculate the usage of a day with Flow Utilities with this flows.

And for the P1 you should use the value “TOTAAL verbruik kWh”.

If this is what you want.

I think @Ronald_de_Boer only wants to keep track of the returned power, not the total power. I just created a flow myself to do this. Im using a single flow, and use the standard logic cards to add the day/night values together. Since this gives the total returned kWh that does not reset to 0, I do not enable the ‘has daily reset’.

Will know in a day or 2 if this works, but I dont know why it wouldnt work.

1 Like

@spndk spotprices for DK1 and DK2 are already available in the Power By The Hour app.

Yes, you are right.
I only want to track the returned power and I was thinking to difficult…
Whith flow utilities I was already calculating the things PBTH also can do :slight_smile:
Your example flow does indeed do the trick.
Thanks for your help!

1 Like

version 4.2.4 is ready for testing

  • homey-api@1.5.26.
3 Likes

Hi @Gruijter ,

Saw you updated the PBTH app and since then the calculation of my virtual “Teruglevering” does not work anymore.
It does something strange calculation with the current value.
The actual value I send with your example flow should be 3411.327
Can you look into it?

I have a strange thing with the value of the P1 meter with tis month starts. It is 2
120 kWh off.
I also use the Energylink and that one has no problem.

Restart the app does not change anything.
I am still on Homey 7.2.0

You are starting the month of both devices on a different day of the month…