Connect pvnode with Home Assistant
This guide shows how to use the pvnode Forecast API in Home Assistant via the built-in RESTful Sensor — no custom component required.
An official HACS integration is planned and will be released alongside the pvnode V2 API. The setup described here works with the current API today.
Prerequisites
- A running Home Assistant installation
- A pvnode API key (create one here)
- Access to
configuration.yaml(File Editor add-on or SSH)
1. Store the API key securely
Open secrets.yaml in your config/ directory (create it if it doesn't exist):
Code
2. Add a REST sensor in configuration.yaml
Paste the following block into your configuration.yaml and adjust the
location and PV configuration to match your system:
Code
Parameter overview
| Parameter | Description |
|---|---|
latitude / longitude | Location of the PV system |
slope | Module tilt in degrees (0 = flat, 90 = vertical) |
orientation | Azimuth in degrees (0 = North, 90 = East, 180 = South, 270 = West) |
pv_power_kw | Installed capacity in kWp |
forecast_days | Number of forecast days (0–7) |
required_data | Which fields the API should return — see all available fields here |
A complete overview of all parameters and data fields is available in the Forecast API documentation.
3. Reload the configuration
After saving, in Home Assistant: Developer Tools → YAML → Reload all YAML configuration. On first setup, a full restart is required.
Under Developer Tools → States, find the sensor sensor.pvnode_power_now —
the state shows the current power in watts, while the attributes contain the
full 15-minute forecast.
4. Visualize the forecast as a chart
With the ApexCharts Card (installable via HACS), you can plot the entire forecast series as a curve:
Code
Use cases
With the pvnode forecast in Home Assistant you can, for example:
- Control your wallbox: Charge your EV when sufficient solar production is expected
- Schedule heat pumps: Run hot water preparation during expected surplus periods
- Optimize batteries: Fully charge before forecasted poor-weather periods
- Shift loads: Start washing machines, dryers, or dishwashers during peak production
Tips
- Higher resolution with Nowcasting: With the Nowcasting add-on, the
forecast updates every 10 minutes based on live satellite data. In that
case, set
scan_interval: 600. - Multiple arrays: For east/west roofs or multiple strings, simply add
additional REST sensors with different
unique_idvalues.