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

@Baboon many thx for your donation :partying_face:!

v5.0.1 is ready for testing: Power by the Hour | Homey

  • added support for Qubino 3-phase meter.
  • round ‘price now’ tag to decimals settings. (thx for reporting @Daniel_S !)
  • rewrite summarizer driver to support more devices/apps.
  • make tariff group 1 default for new summarizer devices.
  • fix summarizer bugs for some source devices/apps.
  • fixed english title and-card. (thx for reporting @Daniel_S !)
  • fixed detect new tariffs received @midnight.

This update is on top of the changes already made in the v5.0.0 test version. So this brings the list of most important changes in v5.x.x to the following:

New:

fixes:

  • fix DAP 25 hour day ghostprices
  • fix DAP Daylight Savings Time handling
  • fix DAP new exchange rate not applied immediately
  • fix DAP ‘price now’ flow tag decimals
  • fix DAP English title and-card
  • fix summarizer bugs for some source devices/apps
  • fix app crash on setSettings

optimizations:

  • rewrite UTC time handling of DAP pricing sources
  • rewrite summarizer driver to support more devices/apps
  • added DAP source pricing sanity check
  • DAP code refactoring for easier software maintainance
  • improved DAP price fetching retry and backup service handling
  • make tariff group 1 default for new summarizer devices

deprecated:

  • removed FrankEnergy as DAP datasource
  • removed old gas DAP support USER ACTION REQUIRED
3 Likes

Have installed the App and am running into an issue. The gas consumption is correctly shown in the PBTH device, but the ‘previous day’ has remained 0 for two days.

The PBTH Electricity device does work correctly. How can I get the statistics to work form gas too?

Thanks!

Can you try the test version (5.0.1 at the moment?): Power by the Hour | Homey

I have introduced major changes to the code in v5, and if there is a bug in gas usage display I need to know if it is present in v5 as well.

Installed the 5.0.1 via your link. Devices went offline and became online so I guess that worked. Unfortunately the ‘day before’ (and older) figures remain empty.

I’ll do a PTP to make sure!

Day before will be filled at midnight. So we have to wait for tomorrow to know…

1 Like

And just checking: your gasmeter is not resetting to 0 m3 every night I assume?

Edit: Actually, judging from the negative usage for this month and this year it does look that you don’t have a ‘normal’ gas meter that provides the absolute m3 number over its lifespan. I do believe now that your meter itself is resetting its m3 value to 0. Can you confirm?

I have a gateway from smart gateways.nl and that comes with a Homey App. This registers both gas and electricity in 1 P1 device.


That electricity does show older data and gas not, is odd…

PS
And, today I also added the water gateway to PBTH. I will check tomorrow if it shows older stats! I’ll let you know tomorrow

Ok, but I have created a setting for meters that reset every night to 0. Go to the PBTH gas device settings and switch on ‘has daily reset’. That will create a virtual cumulative meter in PBTH itself.

And that it works out of the box for electricity is because PBTH automatically detects that your source device provides only Watt, and no kWh.

1 Like

Adjusted the setting by flipping the slider. Fingers crossed it will show data tomorrow.

Thanks!

Update: WORKS NOW!

1 Like

Thx for the heads-up. I have it working as a virtual device but native support is always better, thanks! Happy holidays! :partying_face:

1 Like

Many thx for your donation @Paul_Grevink ! :smiling_face_with_three_hearts::beer:

v5.0.2 is ready for testing: Power by the Hour | Homey

  • Added settable yearly budget for Gas, Electricity and Water.
  • Added linear usage distribution over the year.
  • Added NL_2023 usage distribution (prijsplafond) for Gas and Electricity.
  • Added % on/above/under the budget for Month-to-date and Year-to-date.
  • Update to homey-api@1.10.5.

This version again brings a significant new feature: Real-time comparison with a yearly reference gas/electricity/water usage, based on a settable budget. Since in winter you usually use more then in summer, a distribution is applied. Next to a linear (flat) distribution, I implemented the distribution that is used by the Netherlands Government for the 2023 price ceiling (‘prijsplafond’).

This means that all people in the Netherlands can now automatically guard if they stay within the PRIJSPLAFOND limits set for 2023

I will definitely use it myself to automatically disable my car charging if I don’t have any headroom left, and resume charging when I should again gain some headroom.

But usage is certainly not restricted to Dutch residents. You can set the budget yourself to any value you want. To enable the function for the summarizer of your main meter, go to advanced settings and select a distribution scheme (linear or NL_2023).

This update is on top of the changes already made in the v5.0.x test versions. So this brings the list of most important changes in v5.x.x to the following:

New:

  • added seperate DAP device for gas spot prices
  • added all gas spot prices from Spot market data | Powernext
  • Added settable yearly summarizer budget for Gas, Electricity and Water
  • Added linear usage distribution over the year
  • Added NL_2023 usage distribution (prijsplafond) for Gas and Electricity: Volumegrenzen Prijsplafond 2023 - Google Sheets
  • Added % on/above/under the budget for Month-to-date and Year-to-date.
  • Added multiple selections during summarizer pair
  • added support for Qubino 3-phase meter.

fixes:

  • fix DAP 25 hour day ghostprices
  • fix DAP Daylight Savings Time handling
  • fix DAP new exchange rate not applied immediately
  • fix DAP ‘price now’ flow tag decimals
  • fix DAP English title and-card
  • fix summarizer bugs for some source devices/apps
  • fix app crash on setSettings

optimizations:

  • rewrite UTC time handling of DAP pricing sources
  • rewrite summarizer driver to support more devices/apps
  • added DAP source pricing sanity check
  • DAP code refactoring for easier software maintainance
  • improved DAP price fetching retry and backup service handling
  • make tariff group 1 default for new summarizer devices
  • update to homey-api@1.10.5.

deprecated:

  • removed FrankEnergy as DAP datasource
  • removed old gas DAP support USER ACTION REQUIRED
6 Likes

Hi Robin, thanks voor the hard work and great app.
Can this be a bug (v4.9.1)?
The month and year money values are equal, for both energy and gas?
The kWh and m³ values are correct.

The this_year value will be equal to the this_month value when there has not been any information collected prior to this_month. That is for instance the case right after adding the PBTH device. You need to wait for the next month to see a difference. Or alternatively you can go to advanced device settings and manually fill the this_year value.

It could also have be caused by a migration bug that was introduced in 4.9.0. Was fixed after that so should not appear anymore.

Thx for quick reply, Robin. I started last september.
Looking at the reset day, it looks like it’s due to the bug. Case closed!

1 Like

@Gruijter i’m new with your app… is it possible that you share your dishwasher flow/screenshot? :slight_smile:

Here is the screenshot. Its a pretty big one, so hope it is readable enough for you…

2 Likes

New version 5.0.3 is ready for testing: Power by the Hour | Homey

DAP and summarizer:

  • set device unavailable during capability migration
  • disable new device settings during migration

Summarizer:

  • rearranged device order during pair
  • removed Homey itself from pairing list
  • disabled multiple selections during pair
  • apply budget distribution setting for main meter devices during summarizer pair
  • fixed hourly polling for Qubino 3-phase meter
  • added hourly poll delay
  • use previous tariff on first sample in a new hour

With this update version 5 is getting ready to be published as stable. When I don’t receive any feedback on serious issues, it will be published as stable before 31 December.

@Torch1969 : The hourly poll delay can be used to get rid of the 5 minute dip every hour for slow updating meters like gas. Be aware though that if you have an old gas meter that only updates once an hour you will see all usage reported as ‘last_hour’ and none in this_hour!

@DirkG hourly polling should be fixed now for Qubino

Hello @Gruijter what is the meaning of 97,5% on month budget? My month usage is 166,9 and I can’t figure out what the percentage means.

Same question for water usage. I have linear selected and year budget 155.
On month budget is 1% and on year budget is 0.7%. Actual month usage is 11,5. Actual year usage is 109,
Regards