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

What a mess…. When Athom created the Homey Power functionality they decided that batteries report power inverted to how solar panels report it. Since then I have had to create all kinds of workarounds in all my power related apps (including Sessy battery app).

Looks like I need to fix much more everywhere :confounded_face:

Will dig into it!

3 Likes

I cannot reproduce this. On my NL Homey (HP2023) it shows “Prognose vandaag” and “Prognose dit uur”. Also I doublechecked the code, but all is good there also.

I cannot reproduce this. Do you have screenshots showing the issue next time it happens?

Now it gets interesting. In Capabilities I see this:

HP2023

HP2019

what PbtH app version are you using? I definitely have the correct titles in the same screen you are showing :man_shrugging:

New version 8.7.4 ready for testing: https://homey.app/a/com.gruijter.powerhour/test/

  • Prioritize Homey Battery standards for Battery.
  • Added forecast tomorrow capabilities for Solar.

Please test @Martijn_van_Eck

Perfect fix, thanks for the quick support

1 Like

Both systems were running 8.7.3. But in the meantime, the HP 2019 has been automatically updated to 8.7.4. And it now neatly displays “prognose deze dag”, “prognoses dit our” and the new one “prognoses morgen”

I’ll just wait a bit until the HP2023 automatically does the update as well. Because I had pushed the previous one via your link.

But more importantly, because that was the point. On the HP2019, which has 3 arrays connected to it, today’s forecast is correct with a difference of 0.136 kWh more generated power. So I am a happy camper. And the forecast can be called impressive. I haven’t seen Solcast do that yet.

1 Like

:smiling_face_with_three_hearts::sun:

After the automatic update, the HP2023 now also gives “Prognose vandaag” etc.

1 Like

I use the app for as part of the flow you see below in the picture. At the time of the previous screenshot, the price was -0.20 øre (Norwegian cent) and both should have been true. But they didn’t work as intended.
Now, after 16.00 the price is 0,4, these cards in the flow should fail because it is all negative prices after midnight. But it comes out true.

What version PbtH are you using?

Ver 8.4.1

I have automatic updates activated, but see now that the latest version is 8.6.4. I don’t know why it is not up to date. I will update asap and let you know wether the issue is resolved.

1 Like

I can confirm that all works well now.

1 Like

v8.7.5 is ready for testing: https://homey.app/a/com.gruijter.powerhour/test/

  • Added many flow cards for Solar.
  • Solar shading learning improved.
  • Flow translation updates.

:sun: New Solar Forecaster Flow Cards

I have expanded the capabilities of the Solar Forecaster in PBTH. You can now build smart flows to optimize your self-consumption based on real-time learning and dynamic weather forecasts.

Here is an overview of the new flow cards and how you can use them:

:green_circle: Triggers (WHEN)

1. Solar production becomes one of the top [number] hours of today

  • How it works: Triggers the exact moment your solar array enters its most productive window of the day. This dynamically adjusts to the season, clouds, and your specific panel orientation.

  • Use case: Start charging your EV or run the pool pump exactly when your solar production hits its daily peak, completely eliminating the need to hardcode specific times of the day!

2. Solar forecast for [period] updated

  • How it works: Triggers whenever the solar forecast data is refreshed (or when the learning model updates) for Today, Tomorrow, or the Next Hours. Provides the forecast data as a JSON token.

  • Use case: Recalculate your smart home battery charging schedules if the solar forecast drops unexpectedly mid-day due to a sudden change in weather, or push the daily forecast curve to a dashboard.

3. Solar curtailment detected / Solar curtailment ended

  • How it works: Triggers when PBTH’s smart logic detects that your solar inverter is artificially limiting its output (e.g., due to grid overvoltage / 253V issues or export limits).

  • Use case: Automatically turn on the electric boiler or air conditioning to soak up excess power the moment curtailment is detected, relieving the inverter and preventing wasted energy.

:yellow_circle: Conditions (AND)

1. Tomorrow’s yield is better/worse than today’s

  • How it works: Directly compares the total expected solar generation of tomorrow against today.

  • Use case: When you put laundry in the washing machine, have Homey check this card. If tomorrow promises significantly more sunshine, Homey can delay the wash cycle to save money.

2. Expected yield for [period] is more/less than [value] kWh

  • How it works: Checks if the total forecasted energy for Today, Tomorrow, or the Next Hours meets a specific threshold.

  • Use case: If tomorrow’s expected solar yield is less than 5 kWh, allow the home battery to charge from the grid tonight during the cheapest dynamic pricing hours.

3. Solar production is / isn’t one of the top [number] hours of today

  • How it works: Checks if the current time falls within the absolute best production window for the current day.

  • Use case: Use as a condition in a generic “Appliance turned on” flow to warn you (or automatically turn it back off) if someone tries to run the dryer outside of peak solar hours.

4. Solar curtailment is / isn’t active

  • How it works: Checks the current curtailment status of your solar array.

  • Use case: Prevent your home battery from aggressively discharging into the grid if your solar inverter is already struggling with grid overvoltage.

@Qinoz : This is what you asked for (I hope :wink: ). Please test and let me know if you find them useful.

5 Likes

Soon I will need MCP to set that up !
Well done @Gruijter , I like to see where this goes, looks promising!

1 Like

Oh boy, oh boy, :hugs: time to leave Solcast. We’re going to do cool things with this. Further fine-tune my already complex flow.

2 Likes

I don’t see the sun forecast option as a device during setup within pbth. I do have a solaredge inverter and tried two difderent apps for connecting my solaredge because i read somewhere that specific capabilities have to be available (can’t find that information again).

Current pbth version 8.7.5

Solaredge device 1: Official Solaredge app v.1.8.1

Solaredge device 2: Zonnepanelen app v 5.3.2