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

@ubram many thanks for your kind donation! Much apprectiated :smiling_face_with_three_hearts:

Concerning your feature requests: please post them on the feature request thread: [APP][Pro] Power by the Hour [Feature Requests]

1 Like

Thanks for you help here, much appreciated.

Hope this helps

Don’t fuss over this, it would be great if it worked, but I can play with going direct through the api, or try something with Node Red.

It’s a nice to have…

1 Like

Hi! Is the solar panel app Good we inverter supported by PBTH?

Dont know. Just try and let us all know :wink:

1 Like

Hi @gruijter I noticed that for WHEN flow New prices received for tomorrow triggers but still the tomorrow prices are not shown yet. And so we get [null] value in the message. The time corresponds to when prices are publicished but not loaded in app yet.

Still can you please check my previous post about the flow The price become one of _ highest/lowest for today? Many thanx for explanantion.

@Nitramevo has sent some SMPL displays around to app developers to try out (clever thinking :wink:). I recieved mine some hours ago and started to see what I could do with it in combination with PBTH. Here are my very first 2 applications I created.

  1. Show actual solar production in both kWh and Euro

  1. Show actual spot price, cheapest price of the day, and total energy cost of the day

I set the display update to once a minute (which is the fastest possible update). To save batteries I could maybe lower the update interval to 10 minutes, and completely pause updates during the night.


I will try to think of some other use cases. Or maybe you all can come up with nice PBTH uses of the display. [APP][Pro] smpl products - Battery powered e-ink display


Dang… 21 euro energy used today (and the day is not over yet). That would be 650 euro this month if the temperature stays around freezing point :scream:


New test version 4.8.3 is available: Power by the Hour | Homey

  • Fixed Watts As Souce ghost usage.
  • Update to homey-api@1.10.3

I hope this solves the issue of people using Watts as Source, where the PBTH usage ever increases even when the source device is off. See the Github bug report here: kWh increasing while device is not consuming power · Issue #67 · gruijter/com.gruijter.powerhour · GitHub

I did find something and made appropriate changes, but I cannot easily test it myself.
@Busta999 maybe this solves your issue as well, but I have doubts about that.


What is the data source you are using? Eg. CEPS show up for me everytime…

When the new prices card is triggered only the tag that comes with the card is immediately available. All other values you try to use will not be available before the next whole hour.

v4.9.0 is ready for testing: Power by the Hour | Homey

  • Show kWh and m3 of previous period.
  • Fix capability states after migration.

The first was requested as feature: [APP][Pro] Power by the Hour [Feature Requests] - #60 by JeeHaa

The second is a fix for a long standing bug that corrupts historic meter values when migrating capabilities to a new app version.

I will wait for feedback from the testers before promoting 4.9.0 to stable release.


I notice that the daily amount of energy for electricity is exactly the same as stated by my supplier, but for gas it differs every day. Any idea what could be causing this? So it concerns # kWh and m3.

It could differ a bit depending when and how often your gasmeter is providing the data. I have an old meter that only gives its meter value once an hour, and does that 10 minutes past the hour.

Homey takes the meter value exactly at midnight as close of day. But if you used gas between 23 and 24hrs, and that gets reported some minutes after midnight, it might be that your energy supplier has a slightly different day value.

That makes sense. I will check later this month over several days, the difference should be minimal.

Is it possible to include monthly negative fixed costs? And do the fixed costs per month include or exclude VAT?

Yes, in the advanced settings of the summarizer

You decide yourself :wink:
PBTH simply adds the value you enter at the start of the month.

And is the fixed amount divided over the costs per day? And only at the beginning of the month? So a change in the fixed costs during the month will only be calculated at the beginning of the next month?

First of all you need to understand the difference between fixed costs for spot prices (DAP) and fixed costs for summarizers.

Fixed costs for DAP are added to the hourly kWh purchase price of electricity, after the variable costs are added as percentage. The result of purchace price, variable costs and fixed costs is the tariff per kWh. This tariff gets sent every hour to the summarizer devices.

For a summarizer you can also add fixed costs, e.g. the subscription fee your energy supplier charges every month. But it only makes sense to add that to 1 summarizer device, usually your main meter. There is a setting for monthly costs, daily costs and hourly costs. It is up to you which ones to use.

The fixed monthly costs I am talking about are (in Dutch): netbeheerkosten, vaste leveringskosten en vermindering energiebelasting. I add the costs per kWh to the daily prices.

But the costs/reduction you mention are independent on how much kWh you use. So you should not set them in the DAP device, but in your smart meter summarizer.

Thank you :pray:t2:

1 Like