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

The PbtH JSON file, with the data of your provider, was still OKÉ this morning.
This one is for ZP
As in variable putting in this morning.

{"0":0.2646,"1":0.261,"2":0.2609,"3":0.2607,"4":0.2604,"5":0.2681,"6":0.254,"7":0.3111,"8":0.3105,"9":0.2946,"10":0.2657,"11":0.2593,"12":0.2568,"13":0.2575,"14":0.2615,"15":0.2717,"16":0.2875,"17":0.3115,"18":0.3496,"19":0.3482,"20":0.3182,"21":0.3012,"22":0.2849,"23":0.2721}

Later it is over written.
Direct by card "Provide price JSON ‘this day’ ".

{"0":0.2594,"1":0.2594,"2":0.2594,"3":0.2594,"4":0.2594,"5":0.2594,"6":0.2594,"7":0.2594,"8":0.2594,"9":0.2594,"10":0.2594,"11":0.2594,"12":0.2594,"13":0.2594,"14":0.2594,"15":0.2594,"16":0.2594,"17":0.2594,"18":0.2594,"19":0.2594,"20":0.2594,"21":0.2594,"22":0.2594,"23":0.2594}
2 Likes

The JSON data for tomorrow is al available. That’s go here in a variable. “tomorrow”
On 00:00 I switch that to the variable “today”.

Looking to use really that file now I found that I was further than I thought.
Now only linking the successful lose tests together.

1 Like


I’m getting more and more troubles with the battery monitor inside the PBTH app.

For the past few days, it no longer shows when it is charging the batteries. This is an example from today. Previously, it would indicate in green which hours it was going to charge.

I tried restarting the app serveral times, and changing the minimum price difference. Without succes.

Yes… i have defined a fixed monthly cost, in addition to the fixed tariff per KWh. Rechecked the graphs and if selected today last 14 days graph, the peak goes to correct place, beginning of the month with correct value… In longer timespan the graph somehow averages values incorrectly .

That is how Homey Insights ‘compresses’ older data.

@Gruijter
Im having issues with the daily average price value dropping to zero every day at 13:00. Known issue?
I believe the issue startet to appear 6.march.


Is there an easy way to get the daily power peak, the hour with the highest (maximum) power in kW?

Something like this.

I created 2 variables, one to store the highest kWh and one to store a timestamp:

  • kWh: a numeric var called highest_kWh_hour_today
  • timestamp: a string var called highest_kWh_hour_time_today

Flow 1

Every hour, check if the power summariser’s [kWh prev. hour] tag value, is greater than [highest_kWh_hour_today] value;
If so,

  • save the [kWh prev. hour] tag value to [highest_kWh_hour_today]
  • save the current time to [highest_kWh_hour_time_today]

Flow 2

At midnight, send the values, and next, reset both variables after sending:

Note
I use 1 minute delays to give the app some slack to change the hourly values for the kWh prev. hour tag.

Thanks, that makes sense, I did something similar but was using the power, which would be wrong since it needs to be, as you have done, the total kWh over one whole hour.
Any ideas on how to get the three highest hours of the month? That is how the power tariff here is calculated, the average of the three highest hours.
Should I have a script that runs at the end of every month or three variables that are updated every hour, similar to the solution above?

Anybody else not getting spot price updates for the past 4 hours (Estonia)?

Works alright here (NL)

2 Likes

Working again as of yesterday afternoon soon after my post, thanks

1 Like

Hi, Is there a way to use PBTH to measure negative energy ( exported energy) of Easee equalizer?
If yes, how?

Hi Mats,

yes - just create a virtual device and link it to the negative value of power of your energy device by flows (When original#power changed and original#power<0, then virtual#power= {{ - original#power }}. Then you can us PBTH for the (positive) exported power. But do not add the virtual device to the energy consumption :rofl:
regards Dirk

Thanks, but i dont get the "and"options you described when i´m create a flow :roll_eyes:

Unfortunately my flow is in German


I hope you can understand.
You find the #power (German ‘#Leistung’) in the When… card and then you can use it in the Logica card, but only after you have connected the And card to the When card.

Hmm…this was a tricky one. Both because of the language and my low knowledge of Homey :joy: have to try
Thanks!

In my Homey is Zlinky activated and working… No data is arriving from this ‘french’ version of the P1 powermeter… Is the Zlinky NOT compatible with this? Many thanks for your quick reply (used app for Zlinky is LiXee.

Hi Carlo,

Did you add a “Power summarizer” device already?

Hello, thanks for your reaction!
Yes of course the ‘Power Summarizer’ was added. And the Zlinky_Tic was recognised immediately.
But it stops there. The Zlinky_Tic itselfs shows the actual consommation, but in ‘Power by the hour’ there is nothing…