-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New integration: Victron VRM Forecasts #38749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AndyTempel
wants to merge
3
commits into
home-assistant:next
Choose a base branch
from
AndyTempel:next
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- | ||
title: Victron VRM Forecasts | ||
description: Instructions for implementation of Victron VRM Forecasts into Home Assistant. | ||
ha_category: | ||
- Energy | ||
ha_release: 2025.5 | ||
ha_iot_class: Cloud Polling | ||
ha_config_flow: true | ||
ha_codeowners: | ||
- '@AndyTempel' | ||
ha_domain: vrm_forecasts | ||
ha_platforms: | ||
- sensor | ||
ha_integration_type: service | ||
--- | ||
|
||
The Victron VRM Forecasts integration pulls solar production and consumption forecasts from [Victron Energy](https://www.victronenergy.com/) <abbr title="Victron Remote Monitoring">VRM</abbr> portal into Home Assistant. It provides <abbr title="from the day before">day‑ahead</abbr>, next‑hour, and six‑day outlooks for both production and consumption, plus peak‑time predictions. It fetches forecasts from the day before, today, next hour, tomorrow, and provides six-day outlooks once you have at least 30 days of VRM history. | ||
|
||
--- | ||
|
||
## Prerequisites | ||
|
||
- **Victron VRM installation** with a solar system and all consumption routed through inverters or a grid meter. | ||
- **At least 30 days of data** in VRM before forecasts appear. | ||
- **VRM access token** (keep this secret!). Create one in the VRM Portal at **Preferences → Integrations → Access tokens** or use [this link](https://vrm.victronenergy.com/access-tokens). | ||
- **VRM Site ID**: found under **Settings → General** in your site’s VRM Portal page. | ||
{% important %} | ||
Your VRM access token grants full access to your VRM portal, including system control and data retrieval. Treat it like a password: | ||
|
||
- Do not share it. | ||
- Rotate it immediately if you suspect compromise. | ||
{% endimportant %} | ||
|
||
--- | ||
|
||
{% include integrations/config_flow.md %} | ||
|
||
--- | ||
|
||
## Data updates | ||
|
||
The Victron VRM Forecasts integration fetches fresh data from the VRM API every 60 minutes. | ||
|
||
## Sensor Entities | ||
|
||
### Solar Production Forecast | ||
|
||
- `sensor.energy_production_estimate_yesterday`: Estimated energy production — Yesterday | ||
- `sensor.energy_production_estimate_today`: Estimated energy production — Today | ||
- `sensor.energy_production_estimate_today_remaining`: Remaining production — Today | ||
- `sensor.energy_production_estimate_tomorrow`: Estimated energy production — Tomorrow | ||
- `sensor.energy_production_current_hour`: Production — Current hour | ||
- `sensor.energy_production_next_hour`: Production — Next hour | ||
- `sensor.power_highest_peak_time_yesterday`: Peak production time — Yesterday | ||
- `sensor.power_highest_peak_time_today`: Peak production time — Today | ||
- `sensor.power_highest_peak_time_tomorrow`: Peak production time — Tomorrow | ||
|
||
### Consumption Forecast | ||
|
||
- `sensor.energy_consumption_estimate_yesterday`: Estimated energy consumption — Yesterday | ||
- `sensor.energy_consumption_estimate_today`: Estimated energy consumption — Today | ||
- `sensor.energy_consumption_estimate_today_remaining`: Remaining consumption — Today | ||
- `sensor.energy_consumption_estimate_tomorrow`: Estimated energy consumption — Tomorrow | ||
- `sensor.energy_consumption_current_hour`: Consumption — Current hour | ||
- `sensor.energy_consumption_next_hour`: Consumption — Next hour | ||
- `sensor.consumption_highest_peak_time_yesterday`: Peak consumption time — Yesterday | ||
- `sensor.consumption_highest_peak_time_today`: Peak consumption time — Today | ||
- `sensor.consumption_highest_peak_time_tomorrow`: Peak consumption time — Tomorrow | ||
|
||
--- | ||
|
||
## Adding to the Energy Dashboard | ||
|
||
1. Go to **Dashboards** in the settings. | ||
2. Select the **Energy** dashboard. | ||
3. Under **Solar panels**, click the edit button of your solar installation. | ||
4. Select **Forecast production** and choose previously set up VRM Forecasts. | ||
5. Save; your dashboard will show forecasted values. | ||
|
||
--- | ||
|
||
## Troubleshooting | ||
|
||
- **No sensors**: Confirm you completed the UI flow and see no errors in logs. | ||
- **Forecasts not available**: Verify you have ≥30 days of VRM data. | ||
- **Invalid auth**: Regenerate your token in VRM Portal and update the integration. | ||
- **Token expired or insufficient scopes**: Ensure your access token is still valid and includes the required scopes (read:forecast, read:site). | ||
- **API errors in Home Assistant logs**: Inspect `home-assistant.log` for VRM API fetch errors (timeouts, 401/403 responses) to pinpoint connectivity or permission issues. | ||
- **Site not found**: Make sure you've entered the correct site/installation ID. | ||
|
||
--- | ||
|
||
## Useful links | ||
|
||
1. [VRM JSON API v2 documentation](https://vrm-api-docs.victronenergy.com/#/) | ||
2. [VRM Portal manual](https://www.victronenergy.com/media/pg/VRM_Portal_manual/en/introduction.html) | ||
3. [Victron VRM Portal](https://vrm.victronenergy.com/) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.