A solar forecast becomes more useful when it knows which way the panels face—and when a neighbour’s tree gets in the way. Reddit user mikeonepu, sharing a Belgian installation on r/homeassistant, built RoofCast to turn weather forecasts into predictions tailored to three roof faces. Those predictions now feed battery and EV scheduling in Home Assistant, without a vendor cloud in the control loop.
The hardware is substantial: 45 panels totalling about 21.8 kWp, two Deye hybrid inverters and four LiFePO₄ battery packs. But the most reusable part of this project is the software connecting expected sunshine to decisions about when to store energy, use it or charge the car.
Eight forecasts, calibrated to one roof
RoofCast runs on a local virtual machine. Every 15 minutes, it retrieves forecasts from eight weather models through Open-Meteo, including KNMI’s HARMONIE-AROME and models from ECMWF, ICON, Météo-France, UKMO, DMI and GFS.
Rather than averaging those forecasts straight away, the engine calibrates each model nightly against measured production for each roof face. The installation has 21 panels facing south-southwest, 12 facing west and 12 facing east-southeast. Its corrections account for orientation, a rolling adjustment factor and a shading mask learned from clear days, including shadows from the roof itself and a neighbouring tree.
Only then does RoofCast average the eight calibrated models. For the next one to three hours, it also uses KNMI’s satellite nowcast to adjust the curve when recent production indicates that the models are off.
That sequence is the interesting design choice: the engine adapts the weather inputs to the roof before combining them. It isn’t simply asking more forecasting services the same question.
For the preceding 30 days, mikeonepu reported these day-ahead forecast errors:
That puts the reported RoofCast error below half the Solcast figure for this installation and period. The post doesn’t define the error calculation, so these numbers are a useful local comparison rather than a benchmark for every roof. Nor do they isolate how much of the improvement came from calibration, shading corrections or combining models.
An edit announces that RoofCast is available under the MIT licence. According to its creator, it publishes forecasts in Solcast format, allowing EMHASS and existing cards to consume them without changing formats.
Local connections carry the control signals
The two Deye SUN-12K-SG05LP3 inverters run in parallel as master and slave. Home Assistant monitors and controls them over Modbus through a Waveshare RS485-to-Ethernet gateway, with the Solarman integration operating in local mode.
Battery telemetry takes a separate route. An ESP32 running ESPHome reads each pack’s battery-management system over Bluetooth, collecting state of charge, cell-voltage extremes, cell-voltage spread and temperature. A HomeWizard P1 supplies grid readings through its local API. The EV charger receives commands through Zigbee2MQTT, while a local OBD reader supplies the car’s battery level.
The equipment-room dashboard makes those connections tangible: its photograph places the two inverters on either side of a breaker panel, with coloured dotted overlays and live-value labels. The creator describes this as an SVG overlay on a photo of the actual room.
There’s a small capacity discrepancy worth keeping straight. The hardware list gives the four Felicity Solar packs 64 kWh of rated capacity, while the post title and dashboard use 67 kWh. No explanation for that difference is given.
The system also grew during the logging period. The first inverter arrived in July, battery packs followed in August and September, and the second inverter brought the final 12 east-southeast panels online in early November. The reported 81.3 kWh production record on 29 July therefore belongs to the earlier 33-panel, single-inverter configuration—not the completed array.
Forecasts become a charging plan
EMHASS runs as a Home Assistant add-on in model predictive control mode, planning battery use and EV charging throughout the day. It uses RoofCast’s output, Energie.be’s dynamic day-ahead prices and the Flemish capacity tariff. The charger follows the resulting plan, seeking cheap available periods before the departure time set by the owner.
The planning view puts the relevant quantities together: a green battery-percentage curve, yellow solar areas and a purple purchase-price line, with grid and battery activity below. It’s a useful complement to the house rendering because it shows the timing behind the current state, not just where power is flowing now.
Neither dashboard is Lovelace. They belong to a standalone web app served from Home Assistant’s /local folder and connected through its WebSocket API. The creator also describes a 24-hour replay that retrieves Home Assistant history in five-minute steps—a way to revisit the day’s behaviour rather than relying on a single live snapshot.
Offline operation has more than one boundary
Local control doesn’t mean the installation has no outside inputs. Weather data and day-ahead electricity prices still arrive over the internet; the forecasting calculation and control decisions happen locally.
According to mikeonepu, a short internet outage leaves several days of forecasts and prices through the following day available. For longer outages, EMHASS falls back to a local price profile: the median price for each 15-minute slot over the previous 14 days.
A Home Assistant failure is a different case. The creator says the inverters continue running the house and batteries independently, while extra actions such as forced grid charging at critically low battery levels are Home Assistant automations. Someone in the discussion asked for clarification about that safety boundary. Continued inverter operation shouldn’t be confused with every HA-managed safeguard remaining available.
For other builders, that distinction is as useful as the forecast result: document what survives an internet outage separately from what survives the loss of the automation host.
RoofCast’s next meaningful test is on other roofs. People in the discussion asked for the code and easier deployment options, and the creator now invites feedback through the repository and an EMHASS discussion. A shared error definition and results across different shading patterns would make the reported improvement much easier to judge—and help separate a successful personal calibration from a broadly reusable forecasting tool.
Written by the Visual Space editorial team.