Connect pvnode with Home Assistant
This guide shows how to integrate the pvnode Forecast API via the built-in RESTful Sensor in Home Assistant — without any custom component.
The guide below currently still uses the V1 API. We will update it once the migration to V2 is complete.
Prerequisites
- A running Home Assistant installation
- A pvnode API key (create a key here)
- Access to
configuration.yaml(File editor add-on or SSH)
1. Store the API key securely
Open secrets.yaml in the config/ directory (create it if it doesn't exist):
Code
2. REST sensor in configuration.yaml
Add the following block to your configuration.yaml and adjust the
location and PV configuration:
Code
Parameters at a glance
| Parameter | Description |
|---|---|
latitude / longitude | Location of the PV system |
slope | Tilt of the modules in degrees (0 = flat, 90 = vertical) |
orientation | Orientation in degrees (0 = north, 90 = east, 180 = south, 270 = west) |
pv_power_kw | Installed power in kWp |
forecast_days | Number of forecast days (0–7) |
required_data | Which fields the API should return - find all data fields here |
A complete overview of all parameters and data fields is in the Forecast API documentation.
3. Reload the configuration
After saving, in Home Assistant go to: Developer Tools → YAML → Reload all YAML configuration. On first setup, a restart is required.
Under Developer Tools → States, search for the sensor sensor.pvnode_power_now
— the state shows the current power in watts, and in the attributes
you'll find the full 15-minute forecast.
4. Visualize the forecast as a chart
With the ApexCharts Card (installable via HACS) you can plot the full forecast series as a curve:
Code
Use cases
With the pvnode forecast in Home Assistant you can, for example:
- Control a wallbox: charge the EV when sufficient solar production is expected
- Schedule a heat pump: run hot water preparation during surplus periods
- Optimize a battery: fully charge before expected periods of bad weather
- Load shifting: start the washing machine, dryer or dishwasher at peak times
Tips
- Higher resolution with Nowcasting: with the Nowcasting add-on, the forecast
updates every 10 minutes based on live satellite data. Then set
scan_interval: 600. - Multiple systems: for east/west roofs or multiple strings, simply create
several REST sensors with different
unique_idvalues.