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

I do not understand what I’m doing wrong here. It’s currently 23 at night. It’s less than 8 hours till 7 in the morning. This hour is currently the cheapest hour before 7 tomorrow morning. And yet my card below goes to the false output every time.


Hi Gruiter,

The ROI flow is working perfectly. I do come across a small issue, though. When the Sessy is completely discharged and should start discharging again based on the hourly rate, I receive the opposite notification. In that case, I see a charging notification instead. Are you experiencing the same issue, and do you have any suggestions on how to address this differently?

Hi guys, I need some help - there is something basis I am missing here :frowning:

I’ve setup the Shelly 3em and I’ve added it to Homey.
Then I’ve installed PBTH and added the 3EM to it - creating 3em_ZPower (I know Z is a different Icon, but I can’t find that right now)

and I get the insights on the Homey - so data is flowing.

First step: What I want to do is to create a flow that will take create a report from a given month, where I for every hour of every day, get the total power consumption.

Then I would have a flow pull the tarifs for those hours to calculate the price for each hour.

But how to I create these reports?
It seems that if i just export the insights - I have to do it manually for each day, if I try to export a month - I don’t get every hour og every day.

It is actually a discharging attempt. A positive power indicates discharge. But the SoC calculation is wrong. So it is just a cosmetic bug. You can check your insights to see it didnt charge.

Exporting historic data via a flow is not something Homey supports out of the box. You can manually download Insight data from the web UI. But I created this tool to automate it via a flow:

It is a bit tricky to setup though. So if it doesnt work for you, ask Athom for native data export flows :wink:

1 Like

Whaaa… help please. I have tried so many combinations of fixed and % prices but I cannot seem to make it work. The PBTH prices are structurally too low.

For Tibber, I have the following info:
Het kostenplaatje
Vast tarief: €3,30 per maand
Variabel tarief: de dynamische uurprijs van stroom
Garanties van Oorsprong en onbalanskosten: €0,018 per kWh
Belastingtarieven 2024:
Verbruik tot 10.000 kWh per jaar: €0,10880
Verbruik van 10.000 tot 50.000 kWh per jaar: €0,09037
Verbruik van 50.000 tot 10.000.000 kWh per jaar: €0,03943
Vermindering energiebelasting per jaar: €521,78
Netbeheerderskosten: afhankelijk van je aansluiting en netbeheerder.

I have configured on the NL_Netherlands rate device:

  • 21% VAT/BTW variable markup
  • 0.018 + 0.10880 = 0.1268 fixed markup

Still, the tibber app displays higher prices than PBTH.
Example:

  • Tibber: 0.24 euro
  • PBTH: 0.2134 euro

Can someone please explain how I need to fix the PBTH electricity prices for them to match the tibber prices?

Thanks,
Roger

You forget that over the tax we get taxed (really? Yes, really! It is a disgrace)

Fixed markup should be 0.15343

1 Like

In the settings I can currently specify a fixed and a variable markup. My electricity tariff (aWattar Hourly) includes another component: a variable markup based on the absolute value of the price, i.e. negative prices will be treated as positive for this markup.

image

Would it be possible to include such markup in the settings?

Should be possible. Porblem is that there are so many variants out there. Including tarriff depending on maximum load in the past 15 minutes, etc etc.

But please add your feature request here: [APP][Pro] Power by the Hour [Feature Requests]

1 Like

Thanks - added the request there.

1 Like

@Ake_Svensson many thx for your kind donation! :beers::heart:

Hi @Gruijter I have use your app for a while and it works really great.
I use it for solar panels and others.
Recently I just add a Battery Goodwe Inverter and a BYD battery.

I have an currency issue with the Home Battery monitor it shows € instead of SEK as I have in the other units.

I can’t find any place to change this, can you please advise?
It believe the value is correct in SEK and just wrong character
Skärmavbild 2024-02-21 kl. 16.02.21

Here I can find it on the other units
Skärmavbild 2024-02-21 kl. 16.01.05

Best regards

That is right. I havent made the currency symbol settable for the battery summarizer. I might add that if I dont forget. But for now you can just ignore the Euro sign.

Thanks for the quick reply

I have an virtual PBTH device which i want to reflect a another realtime power sensor. So it has no kWh measuring is it something i can set?

It’s more a general Homescript question, but I can’t find the answer in any documentation:
If I use the Power by the Hour “Provide prices JSON for …” a tag named “Prices” is set containing the json string with the hourly prices.
I want to read (and use) this tag in Homeyscript.
Its clear how to set a tag in Homeyscript ( await tag(‘MyTag’, ‘123’); ), but I can’t find a function for Homeyscript to read the tag “Prices” set by “Provide prices JSON for …”.
Can anyone help me with this?

@Ben_van_der_Beek
When the prices become available I move the json’s to (string) logic variable’s and use those in homeyscript’s at the moment I need them.
You also can pass them to homeyscript, in the same flow the tag is available, using an argument.

new version 6.2.2 is available as test: Power by the Hour | Homey

  • BAT: Improved SoC reporting in flow.
  • German translation updated (thx @DirkG )
  • homey-api@3.4.25
1 Like

Good to hear Torch1969, but how do I “pass them to homeyscript” and what do you mean by “using an argument” (wich one?). Could you give me the homescript code you use?
Regards,
Ben

something like

2 Likes