Victron VRM API
Victron VRM API Integration für Home Assistant
Es gibt hier bestimmt auch ein paar Home-Assistant Nutzer. Ich bin stolz euch meine erste Integration vorstellen zu können. Es hat doch einiges an Arbeit gekostet, aber das Ergebnis schaut wirklich schon gut aus und ich mache das schließlich auch alles nur in meiner Freizeit. ![]()
Diese Integration nutzt das Victron VRM-Portal, um Daten von der API abzurufen. Alles was ihr dafür braucht, sind ein paar Zahlen aus eurem VRM Portal. Aktuell könnt ihr Daten von Batterie, MultiPlus, Grid, PV Inverter, Tank und SolarCharger auslesen. Außerdem erhaltet ihr die Gesamtstatistiken für Tag, Woche, Monat und Jahr von Solar, Netz, und Total sowie die Geräteinformationen der hinterlegten Geräte.
Perfekt geeignet für Offgrid-Lösung wie Boot, Caravan, Wohnmobil, Garten usw, halt überall dort wo keine ständige Verbindung zu HA besteht.
Wenn euch die Integration gefällt, würde ich mich über eine Sternebewertung im github
freuen. ![]()
VRM API unterstützte Geräte und Sensoren
Overview Devices
| Device Type | Number of Sensors |
|---|---|
| Battery | 34 |
| MultiPlus | 12 |
| Grid Meter | 10 |
| PV Inverter | 17 |
| Tank | 6 |
| Solar Charger | 7 |
| System Overview | 5 |
| Overall Stats | 20 |
| Total | 111 |
Sensor Details
| Device Type | Sensor Name | VRM ID / Key | Unit | Description |
|---|---|---|---|---|
| Battery | State of charge | 51 |
% | State of Charge (SOC) |
| Battery | Voltage | 47 |
V | Battery Voltage |
| Battery | Current | 49 |
A | Battery Current |
| Battery | Consumed Amphours | 50 |
Ah | Consumed Amphours |
| Battery | Time to go | 52 |
h | Time to go until empty |
| Battery | Battery Temperature | 115 |
°C | Battery Temperature |
| Battery | Minimum Cell Voltage | 173 |
V | Minimum Cell Voltage (BMS) |
| Battery | Maximum Cell Voltage | 174 |
V | Maximum Cell Voltage (BMS) |
| Battery | Cell Voltage Difference | (Calculated) | V | Cell Voltage Difference |
| Battery | Battery Power | (Calculated) | W | Current Power (V*A) |
| Battery | Battery Charge Cycles | 58 |
- | Full Charge Cycles |
| Battery | Battery to Consumers (Today) | Bc |
kWh | Energy to Load (Today) |
| Battery | Battery to Grid (Today) | Bg |
kWh | Energy to Grid (Today) |
| Battery | Low voltage alarm | 119 |
- | Low voltage alarm |
| Battery | High voltage alarm | 120 |
- | High voltage alarm |
| Battery | Low starter-voltage alarm | 121 |
- | Low starter-voltage alarm |
| Battery | High starter-voltage alarm | 122 |
- | High starter-voltage alarm |
| Battery | Low state-of-charge alarm | 123 |
- | Low state of charge |
| Battery | Low battery temperature alarm | 124 |
- | Battery temperature too low |
| Battery | High battery temperature alarm | 125 |
- | Battery temperature too high |
| Battery | Mid-voltage alarm | 126 |
- | Mid-voltage anomaly |
| Battery | Low fused-voltage alarm | 155 |
- | Low fused voltage |
| Battery | High fused-voltage alarm | 156 |
- | High fused voltage |
| Battery | Fuse blown alarm | 157 |
- | Fuse blown |
| Battery | High internal-temperature alarm | 158 |
- | Internal temperature alarm |
| Battery | Cell imbalance alarm | 286 |
- | Cell imbalance detected |
| Battery | High charge current alarm | 287 |
- | Charge current too high |
| Battery | High discharge current alarm | 288 |
- | Discharge current too high |
| Battery | Internal failure | 289 |
- | Internal failure detected |
| Battery | High charge temperature alarm | 459 |
- | Charge temperature too high |
| Battery | Low charge temperature alarm | 460 |
- | Charge temperature too low |
| Battery | Low cell voltage | 522 |
- | Low cell voltage |
| Battery | Charge blocked | 739 |
- | Charging blocked (BMS) |
| Battery | Discharge blocked | 740 |
- | Discharging blocked (BMS) |
| — | — | — | — | — |
| MultiPlus | AC Input Voltage L1 | 8 |
V | AC Input Voltage Phase 1 |
| MultiPlus | AC Input Power L1 | 17 |
W | AC Input Power Phase 1 |
| MultiPlus | AC Output Voltage L1 | 20 |
V | AC Output Voltage Phase 1 |
| MultiPlus | AC Output Power L1 | 29 |
W | AC Output Power Phase 1 |
| MultiPlus | DC Bus Voltage | 32 |
V | DC Bus Voltage |
| MultiPlus | DC Bus Current | 33 |
A | DC Bus Current |
| MultiPlus | VE.Bus State | 40 |
- | Operating State (e.g., Inverting) |
| MultiPlus | MultiPlus Temperature | 521 |
°C | Device Temperature |
| MultiPlus | DC Bus Power | (Calculated) | W | Current DC Power (V*A) |
| MultiPlus | System State of Charge | 144 |
% | System-calculated state of charge (replaces internal MultiPlus SOC) |
| MultiPlus | Grid to Consumers (Today) | Gc |
kWh | Energy from Grid to Load (Today) |
| MultiPlus | Grid to Battery (Today) | Gb |
kWh | Energy from Grid to Battery (Today) |
| — | — | — | — | — |
| Grid Meter | Grid L1 Voltage | 834 |
V | Voltage on grid meter phase L1 |
| Grid Meter | Grid L1 Current | 835 |
A | Current on grid meter phase L1 |
| Grid Meter | Grid L1 Power | 379 |
W | Power on grid meter phase L1. |
| Grid Meter | Grid L2 Voltage | 837 |
V | Voltage on grid meter phase L2 |
| Grid Meter | Grid L2 Current | 838 |
A | Current on grid meter phase L2 |
| Grid Meter | Grid L2 Power | 380 |
W | Power on grid meter phase L2 |
| Grid Meter | Grid L3 Voltage | 840 |
V | Voltage on grid meter phase L3 |
| Grid Meter | Grid L3 Current | 841 |
A | Current on grid meter phase L3 |
| Grid Meter | Grid L3 Power | 381 |
W | Power on grid meter phase L3. |
| Grid Meter | Grid Total Power | (Calculated) | W | Sum of power across all three phases (L1+L2+L3) |
| — | — | — | — | — |
| PV Inverter | L1 Voltage | 203 |
V | Voltage Phase 1 |
| PV Inverter | L1 Current | 204 |
A | Current Phase 1 |
| PV Inverter | L1 Power | 205 |
W | Power Phase 1 |
| PV Inverter | L1 Energy | 206 |
kWh | Energy Yield Phase 1 (Total) |
| PV Inverter | L2 Voltage | 207 |
V | Voltage Phase 2 |
| PV Inverter | L2 Current | 208 |
A | Current Phase 2 |
| PV Inverter | L2 Power | 209 |
W | Power Phase 2 |
| PV Inverter | L2 Energy | 210 |
kWh | Energy Yield Phase 2 (Total) |
| PV Inverter | L3 Voltage | 211 |
V | Voltage Phase 3 |
| PV Inverter | L3 Current | 212 |
A | Current Phase 3 |
| PV Inverter | L3 Power | 213 |
W | Power Phase 3 |
| PV Inverter | L3 Energy | 214 |
kWh | Energy Yield Phase 3 (Total) |
| PV Inverter | Status | 246 |
- | Status Code |
| PV Inverter | PV to Consumers (Today) | Pc |
kWh | Energy from PV to Load (Today) |
| PV Inverter | PV to Battery (Today) | Pb |
kWh | Energy from PV to Battery (Today) |
| PV Inverter | PV to Grid (Today) | Pg |
kWh | Energy from PV to Grid (Today) |
| PV Inverter | PV Total Today | (Calculated) | kWh | Total PV Yield Today (Pc+Pb+Pg) |
| — | — | — | — | — |
| Tank | Capacity | 328 |
m³ | Tank Capacity |
| Tank | Type | 329 |
- | Fluid Type |
| Tank | Level | 330 |
% | Fluid Level in Percent |
| Tank | Remaining | 331 |
m³ | Remaining Fluid Volume |
| Tank | Status | 443 |
- | Tank Status (e.g., OK) |
| Tank | Custom Name | 638 |
- | User Defined Name |
| — | — | — | — | — |
| Solar Charger | Battery Watts | 107 |
W | Charging Power to Battery |
| Solar Charger | Battery Voltage | 81 |
V | Battery Voltage |
| Solar Charger | Charge State | 85 |
- | Charger State (e.g., Bulk, Float) |
| Solar Charger | Battery Temperature | 83 |
°C | Battery Temperature (external) |
| Solar Charger | Yield Today | 94 |
kWh | Energy Yield Today |
| Solar Charger | Yield Yesterday | 96 |
kWh | Energy Yield Yesterday |
| Solar Charger | Relay Status | 90 |
- | Relay State |
| — | — | — | — | — |
| System Overview | Infos for each Device | - | - | Detailed Infos for each Device |
| System Overview | ESS Battery Life State | 332 |
- | Current status of the BatteryLife algorithm (e.g., “Self-consumption”, “BL Disabled”) |
| System Overview | ESS Battery Life SOC Limit | 333 |
% | Dynamic SOC limit currently set by BatteryLife |
| System Overview | ESS Minimum SOC | 334 |
% | User-defined minimum SOC (when grid is available) |
| System Overview | ESS Scheduled Charging | 469 |
- | Status of scheduled charging (e.g., “Active”, “Not active”) |
| — | — | — | — | — |
| Overall Stats | * Batteries Total Power | vrm_batteries_power_total |
W | Total Batteries Power |
| Overall Stats | * PV Inverter Total Power | vrm_pv_inverters_power_total |
W | Total PV Inverter Power |
| Overall Stats | * Solar Charger Total Power | vrm_solar_chargers_power_total |
W | Total Solar Charger Power |
| Overall Stats | * DC Loads | vrm_dc_loads |
W | Calculated DC Loads (MP, PV, Battery) |
| Overall Stats | * Total Solar Yield | total_solar_yield |
kWh | Total PV Yield (for selected period) |
| Overall Stats | * Total Consumption | total_consumption |
kWh | Total Consumption (for selected period) |
| Overall Stats | * Grid Energy In | grid_history_from |
kWh | Energy from Grid (for selected period) |
| Overall Stats | * Grid Energy Out | grid_history_to |
kWh | Energy to Grid (for selected period) |
(The Overall Stats Entities are build for Periods Today, Week, Month and Year.)
Voraussetzungen
-
VRM-Zugriffstoken (bitte geheim halten!). Erstelle eines im VRM-Portal unter Einstellungen > Integrationen > Zugriffstoken.
-
Deine Side_ID
-
Instanz Nummer von Battery, Multiplus und PV Inverter
Installation der Integration
HACS
- Folge einfach dem Link, um dieses Repository in HACS zu integrieren.
- Gehe zu
Einstellungen→Geräte und Dienste→Integration. - Klicke auf
Integration hinzufügen. - Suche nach
victron vrm apioder kurzvrm. - Gebe deine Side_ID, dein Token und
deine Instance_ID für Battery, Multiplus und PV Inverter ein.
Manual
- Lade die neueste Version herunter.
- Kopiere den Ordner
victron-vrm-apiin deincustom_componentsOrdner von Home Assistant. - Starte Home Assistant neu.
- Gehe zu
Einstellungen→Geräte und Dienste→Integration. - Klicke auf
Integration hinzufügen. - Suche nach
victron vrm apioder kurzvrm. - Gebe deine Side_ID, dein Token und
deine Instance_ID für Battery, Multiplus und PV Inverter ein.
So sollte es aussehen in HA
Q&A
- Configuration Menu, if the instance number for Battery, Multiplus or PV Inverter is set to 0, then no device will be added!
(Example, if you have no Battery, then you don`t need the empty Device in HA.) - You get the Temperature value with a 1PH Multiplus Setup. With 3Ph Multiplus Setup you dont get this Sensor.
- You get Data from your 1Ph or 3Ph PV-Inverter. With 3Ph you get some more Sensors.














