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

Hi,

I did the update but my values are not correct anymore.
Hourly data keeps staying the same as Daily data
Data is also not correct, It seems like double the value.
Or maybe something with timezones, no idea

thx 4 the feedback! Are the issues the same for all your devices, or does it differ per device? If so, what type of devices have you added via PBTH?

I have quite a lot of devices,
I installed the normal version of the app now, I will try with the new one this evening

1 Like

I think I am seeing the same as you. Sometimes the new hour event seems to be missed. So the new api introduces new timing issues :unamused:

I am doing some tests now. But I have to wait an hour every time I want to do a new test to see the result
 So this might take some time to fix. In the mean time all test users are better off reverting to the stable version.

I noticed something strange today. After using ExportInsights also by @Gruijter . I noticed that my historical data suddenly showed the same value for every day since 1-11. While the current values are correct. No idea what is going on.

Using stable version 3.2.0


What happened on 1-11? Did you get a new Homey firmware maybe? MMh
 1 November is around the time I released version 3.0.0 (the rewrite to SDK3).

Ah wait. You selected the wrong ‘last day’. Since publishing v3.0.0 the Insights are stored in a different variable to enable showing the value in the device tile.

Robin, so far it’s working fine for me - no issues (latest test version). But I have few devices only

1 Like

Actually I suspect that devices that often update the meter (like the main power meter) act fine. But devices that update only a few times or less per hour show incorrect hourly values. I have to conduct more diagnostics but I think I found a problem with Athoms new homey-api.

1 Like

Hi @Gruijter

Your comment [quote=“Gruijter, post:412, topic:20535”]
Ah wait. You selected the wrong ‘last day’.
[/quote] gave me enough ‘insight’ to figure out what is going on.

1 Like

I can confirm there is an issue with the new API. It does not behave like the previous one. I contacted Athom to find a solution (either they ‘fix’ the new API, or I have to somehow find a workaround). So in the mean time: If you are using the test version of the app (3.3.0) you can expect the This Hour values to be incorrect sometimes.

2 Likes

Just published as stable v3.3.1:

  • Fix polling for homey-api.
  • Update to homey-api@1.5.1

Athom gave me access to an ‘undocumented feature’ of the new Homey API, and was able to fix the polling / hourly data not working correctly :wink:

3 Likes

Gottha love those! Thanks!

1 Like

So to think about next steps for the app I have had requests to add showing the cost of power, and also to show predictions of power usage. What do you think of this? Here are some of my own thoughts:

  • adding the monetary value should be possible, but with limitations. First of all the device card will become pretty crowded. I could add Value for this hour, this day, this month and this year.
  • I think I would have to make capabilities that would always be in a single currency (Euro), or leave out the currency sign all together and just name it Value. What would you all prefer?
  • The rate would be a single fixed rate per KWh. So no day/night rates, and no flexible rates. This means the value is an approximation and would not exactly match the bill from your energy provider.
  • Adding an energy prediction would also be possible. Also that would add capabilities to the device cards: Prediction this hour, prediction this day, prediction this month, prediction this year. You would be able to trigger a flow if the prediction is over or below a certain value.
  • The prediction algorithms would be extremely simple at first: just a linear extrapolation. Does anyone have a link to more advanced prediction algorithms? E.g. for solar panels a linear extrapolation would not work well at all.

So please share your thoughts on this subject :hugs:

2 Likes

I would not worry about that personally :wink: Question is if “hour” is really required but probably doesn’t make difference after all. Or using maybe day, week, month, year.

Would be then “Value” configurable somewhere in the app or it will be really eg. 400 Value. Still I would prefer something general then


That’s really a pity. Having at least two tariffs configurable eg. in low form 00-06;09-15;22-24 and all the rest high, that would be really something. But I understand this brings additional complexity not better speaking about Public holidays / Weekends, which in my country have also different rates
but with combination of another app (Public holidays App for Homey | Homey), who knows


Seems it might be indeed complex - as per Prediction of Hourly Household Power Consumption | by Arnav Yadav | Analytics Vidhya | Medium the best would be Random Forest :wink: No idea what it is
on Github you can find some examples using Jupyter but no idea if this is anyhow useful


I was myself already considering to play with Flow Utilities app but then I gave up because of more tariffs / rates I have


Anyway, thank you you are considering it, it’s great !

1 Like

Coming up very soon: How much does it cost?

https://homey.app/f/N7OldW


1 Like

New test version 3.4.0 is now available: Power by the Hour App for Homey | Homey

  • Added money values for Energy, Gas and Water
  • Added dynamic tariff settings via flow.
  • Added money flow triggers.
  • Improved device settings update.
  • Small bugfixes and improvements.

The new money values are calculated based on the active tariff, and work in any currency. You can dynamically change tariffs as often as you need via a flow. The money value could slightly deviate from what your provider will bill you for due to rounding errors that grow over time.

Please test it and let me know if this is useful, and/or what could be improved :kissing_heart:

@Emil_Linder @Sharkys @Wout_van_den_Dool @Niels_de_Jong @Martijn_Hoogenbosch and all Norwegian users for instance?

4 Likes

@Gruijter Unfortunately I can’t change the water rate.
My water meter is connected via HomeWizard App

Why can you not change the water rate? I get a new rate every year from my water providing company. Or do you mean the app has a bug?

Sorry wasn’t clear. I’m testing your new version of PBTH. It is about changing the rate for the water. Changing my electricity rate is going well

ok Thx 4 the feedback. I will check the water driver.

edit: yes found a bug when changing the tariff via device settings. Is fixed in v3.4.1 :slight_smile:

1 Like