Repository navigation
Releases
v0.8.2
Fixed: house consumption sensors that report in kW (or MW) are now
converted to W. Previously the value was used as-is, so a reading of
1.5 kW was treated as 1.5 W and the battery, grid export and status
were all calculated as if the house was using almost nothing.
Closes #18.
Fixed: the Configure dialog no longer offers battery capacity
and system efficiency. Changes made there were saved but ignored,
because the dashboard sliders for those values restore their own last
value. Use the sliders to change them. Max charge and discharge rates
are still edited in Configure.
Closes #17.
Fixed: virtual_solar.get_dashboard now sizes the solar output
gauge from the current panel wattage and panel count sliders, instead
of the values from initial setup. Regenerating the dashboard after
changing a slider now updates the gauge.
Closes #19.
Fixed: adding a second setup with a name that's already in use now
says so, instead of "Virtual Solar is already configured". The
get_dashboard service description now covers multiple setups and the
optional entry_id field.
Closes #16.
v0.8.1
Fixed: switch.virtual_solar_discharge_enabled now actually
controls the battery. In 0.8.0 the switch was never found by the
other entities, so the battery kept discharging when it was off,
sensor.virtual_solar_battery_status never showed Holding, and the
generated dashboard pointed at the wrong switch for any setup not
named "Virtual Solar".
If you turned the switch off in 0.8.0 and left it off, the battery
will start holding its charge after upgrading. Turn the switch back
on if you want it to discharge.
Closes #10.
Fixed: sensor.virtual_solar_battery_charge_rate no longer reports
a negative rate once the battery is empty, or a positive rate once it
is full. The sensor now takes the battery level into account, so it
reads 0 W when the battery can't supply or absorb any more energy,
matching what the battery level actually does.
Closes #9.
v0.8.0
Added: switch.virtual_solar_discharge_enabled (default on).
Controls whether the virtual battery discharges when the house draws more than solar. Off holds the charge and lets the grid cover the shortfall, useful for time-of-use tariff simulations (turn discharge off during cheap overnight hours to preserve battery for the expensive daytime).
Charging (solar surplus filling the battery) is unaffected by the switch.
A new Holding value is added to sensor.virtual_solar_battery_status for the case where discharge is disabled and the house draws more than solar. sensor.virtual_solar_battery_charge_rate reads 0 in that state to reflect the actual (rather than desired) battery flow.
The auto-generated dashboard's Battery card now includes the switch. Re-run Developer Tools → Actions → Virtual Solar: Get dashboard YAML to regenerate.
Closes #4.
v0.7.0
Added: multiple Virtual Solar setups can now run in parallel.
The setup wizard's first step gains a Setup name field. Each name becomes the device title and the entity-ID prefix for that setup. Two setups pointed at the same lux and house sensors let you A/B compare panel configurations, battery sizes, or system efficiencies against the same real-world conditions.
Under the hood
Sensors and number entities now resolve their sibling entity IDs per config entry via the entity registry, instead of relying on hardcoded number.virtual_solar_* constants. Existing single-setup installs migrate transparently through v3 → v4 (their entities keep their current IDs and values).
Dashboard
virtual_solar.get_dashboard returns a combined dashboard covering every setup by default, with one view (tab) per setup. Pass an entry_id field to get just one setup's YAML.
Closes #3.
v0.6.0
Added: sensor.virtual_solar_grid_export (W, device_class: power).
Reports the solar surplus that couldn't go into the battery this tick, either because the battery is at capacity or because solar - house exceeded the configured max charge rate. In a real setup, that energy would flow back to the grid (with an export-enabled inverter) or be wasted (with an export-prevention inverter). Tracking it lets you tell whether more panels would actually generate more usable energy or just produce more overflow.
Returns 0 when the battery can absorb all the net solar. Returns None when lux / house / battery capacity are unavailable.
The auto-generated dashboard now shows the new sensor in the "Current Status" card; re-run Developer Tools → Actions → Virtual Solar: Get dashboard YAML to get the updated YAML.
Closes #2.
v0.5.3
Changed: panel count cap raised from 20 to 60 to allow larger residential and small-commercial array sizing. Existing entries with values 1-20 are unaffected.
Closes #1.
Thanks to Reddit user Western_Employer_513 for the feature request.
v0.5.2
Added: integration ships its own brand icon.
Home Assistant 2026.3.0 introduced a brands proxy API that lets custom integrations ship their icon directly in their own repo instead of submitting a PR to home-assistant/brands (which now rejects custom-integration PRs). The integration includes:
custom_components/virtual_solar/brand/icon.png(256×256)custom_components/virtual_solar/brand/icon@2x.png(512×512)
Artwork: sun above a tilted solar panel with a lightning bolt below, yellow strokes on a dark-green background.
HA / HACS pick these up automatically on next install or upgrade. No manifest changes required, no extra configuration.
Also dropped the ignore: brands workaround from the CI workflow now that the brands check passes via the local files.
v0.4.3
Fixed: virtual_solar.get_dashboard was wrapping the dashboard config under yaml: and config: fields, so copying the whole service response into the Raw configuration editor produced `At path: views, Expected an array value, but received: undefined`.
The service now returns the dashboard config directly. The response panel in Developer Tools -> Actions starts with `views:` and is the dashboard YAML, ready to paste as-is.
New flow:
- Developer Tools -> Actions -> "Virtual Solar: Get dashboard YAML" -> Perform action.
- Copy the entire response (starts with `views:`).
- Settings -> Dashboards -> Add Dashboard -> New dashboard from scratch.
- Open Raw configuration editor, select all, paste, save.
v0.4.2
Fixed: virtual_solar.get_dashboard now returns YAML that pastes cleanly into HA's Raw configuration editor.
Previously the YAML had a top-level title: field that storage-mode dashboards reject, causing Your configuration is not valid: At path: views -- Expected an array value, but received: undefined. The output now:
- Has
views:as the only top-level key (notitle:, nopath:) - Drops
refresh_intervalon history-graph cards (deprecated) - Uses proper indentation under list parents
If you already have a dashboard wired up, no action needed. To regenerate: Developer Tools → Actions → "Virtual Solar: Get dashboard YAML" → copy the response's yaml field, paste over the existing raw config.
v0.4.1
Docs-only release.
- Added
LICENSE(MIT). - Added
CHANGELOG.mdwith notes back to 0.1.0. - Added
CONTRIBUTING.mdcovering profile contributions, local dev, and the release workflow. - Added
docs/profiles.mdwith the profile schema reference.
No behavioural changes; the custom_components/virtual_solar/ tree is functionally identical to 0.4.0.