hours_needed
The number: this many cheap hours the plant needs now.
Hours · EMS · Storage
Hours tells your energy manager how many cheap grid hours the battery needs right now — from state of charge, household load and PV — and at which clock times.
The battery sits at 28%. Overnight the house still needs power. PV is weak today, strong tomorrow midday. Hours fills only the gap — not the whole battery.
Concrete clock times the EMS can apply:
Illustrative example, not live data. Real values need a site profile and API key.
Three inputs stop the EMS from guessing.
How full is the battery, what will the house still use, what will PV add?
Hours covers until the next good sun — not the whole week’s load.
As many grid hours as needed, at the cheapest spot-price times.
One POST /v1/decision/hours-demand call returns the decision, not a raw chart.
hours_neededThe number: this many cheap hours the plant needs now.
charge_hoursThe timestamps and prices — so the optimizer does not have to search.
The horizon ends at the next good sun, not at “charge the whole week”.
Loxone has ready PicoC guides. If you build an EMS, you fetch the number over REST. A free Community account is enough to try it.
Windows says which N hours are cheapest. Hours says how many hours this plant needs now, because storage, load and PV look like this.
No. They explain the logic. Live values need a plant profile in the portal and an API key. The technical spec is in Docs.
Community to try it. Spec and Loxone guide to install. PV Forecast supplies the sun.