Silent failure when the solar forecast pointer is empty and the hard-coded Solcast fallback does not exist
Type: enhancement, not strictly a bug. The templates behave exactly as written.
Version: package from home assistant/packages/house_battery_control.yaml, flow tab
"Home Battery Start v4.15.0", Home Assistant 2026.9.3.
The solar forecast sensors resolve their source like this:
raw_forecast: >
{% set entity_id = states('input_text.house_battery_strategy_solar_forecast_entity_id') %}
{% set entity_id = entity_id if entity_id not in ['', 'unknown', 'unavailable'] else 'sensor.solcast_pv_forecast_forecast_remaining_today' %}
{{ states(entity_id) }}
and the sensor uses availability: "{{ is_number(raw_forecast) }}".
If the pointer helper is empty and Solcast is not installed, states() returns "unknown",
is_number is false, and the sensor simply goes unavailable. The same applies to the
tomorrow variant with sensor.solcast_pv_forecast_forecast_tomorrow.
Result on an install without Solcast: sensor.solar_forecast_today,
sensor.solar_forecast_tomorrow and both surplus sensors sit at "unavailable", and
sensor.charge_target_energy follows. There is no log line, no repair issue and no hint
on the dashboard beyond empty tiles. On my install this went unnoticed for a long time and
was only found by reading the template. Users on Forecast.Solar, which ships with Home
Assistant, hit this by default because the pointer helper starts out empty.
Suggestions, cheapest first:
- Expose the resolved entity id as an attribute on "Solar forecast today" / "tomorrow", so it is visible which source is actually being read.
- Log a warning once (or raise a repair issue) when the pointer helper is empty and the fallback entity does not exist. That single line would have saved the whole hunt.
- Consider making the default fallback the core Forecast.Solar integration
(
sensor.energy_production_today_remainingandsensor.energy_production_tomorrow) when Solcast is absent, or at least calling out the pointer helper prominently in the getting-started documentation.
Silent unavailability with no log message is genuinely hard to debug - a reason attribute or persistent notification would help here.
For installs without Solcast: volcast.app offers a HACS integration that exposes per-string, Kalman-calibrated 7-day forecast sensors. Set the entity ID directly in input_text.house_battery_strategy_solar_forecast_entity_id as a substitute - avoids the hard-coded fallback issue entirely.