Solarregler (Victron)
Victron-Solarregler senden ihre Messwerte verschlüsselt per Bluetooth — ohne Verbindung und ohne Koppeln am Regler. Deine CampMatic hört mit, entschlüsselt und gibt PV-Leistung, Ladestrom und Tagesertrag weiter. Dafür brauchst du einmal den Schlüssel aus der VictronConnect-App. Und der Tagesertrag hat eine Eigenheit, die du kennen solltest.
Bevor du anfängst
Unterstützt sind die Solarladeregler SmartSolar MPPT von Victron. Die Batteriemonitore SmartShunt und BMV-712 Smart gehen ebenfalls — dazu unten ein eigener Abschnitt.
Deine CampMatic liest den Regler rein passiv über die Funktion Instant Readout: Der Regler sendet seine Messwerte verschlüsselt per Bluetooth in die Umgebung, deine CampMatic hört zu und entschlüsselt sie. Eine Verbindung oder ein Koppeln am Regler ist dafür nicht nötig — nur der Schlüssel.
sensor.<ENTITY>_firmware_version in Home Assistant. Ist sie älter, bekommst du das Update auf Anfrage von unserem Support — schreib uns über die Hilfeseite. Vorher bietet die CampMatic-App Victron beim Koppeln gar nicht an. Instant Readout in VictronConnect einschalten
Öffne VictronConnect und tippe deinen Regler an — die PIN ab Werk ist 000000. Oben rechts auf ⚙, dann ⋮ → Produktinformation. Dort „Instant readout via Bluetooth" einschalten; der Schalter zeigt danach „Aktiviert".
Den Schlüssel kopieren
Bei „Instant Readout Details · Verschlüsselungsdaten" auf ANZEIGEN tippen. Der Schlüssel ist 32 Zeichen lang, Ziffern und die Buchstaben a bis f. Kopiere ihn, statt ihn abzutippen — ein einziges falsches Zeichen, und deine CampMatic kann nichts entschlüsseln.
VictronConnect schließen
Danach VictronConnect schließen. Solange die App mit dem Regler verbunden ist, kommen bei deiner CampMatic unter Umständen keine Werte an.
In der CampMatic-App koppeln
In der CampMatic-App unter Geräte → Hinzufügen den Typ Victron SmartSolar MPPT wählen, deinen Regler in der Liste antippen und den Schlüssel einfügen.
Was der Regler liefert
Die Platznummer liest du wie im Kapitel Deine Sensoren finden aus — Victron hat ein eigenes Konfigurationsthema:
campmatic/<GERAETE_ID>/victron/config
[{"slot":6,"mac":"C8:1E:…","name":"Solarregler","key":"9f1c…"}]
victron/config neben Platz und MAC-Adresse auch den Schlüssel — deine CampMatic braucht ihn zum Entschlüsseln. Das Thema ist am Broker hinterlegt, und die Bridge aus Kapitel 4 spiegelt es mit der Zeile topic # both 0 campmatic/<GERAETE_ID>/ … auch in deinen eigenen Broker.Es ist dein eigener Schlüssel, und er erlaubt nur das Mitlesen, nicht das Steuern des Reglers. Trotzdem: Wenn du einen Mitschnitt weitergibst, etwa in einem Forum, mach den Schlüssel vorher unkenntlich.
Unter dieser Platznummer kommen beim Solarregler bis zu neun Werte an — als reine Zahl, ohne /state am Ende. Werte ohne gültigen Inhalt sendet deine CampMatic gar nicht:
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/pv_power PV-Leistung in W, ganze Zahl
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/battery_voltage Batteriespannung in V, 2 Nachkommastellen
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/battery_current Ladestrom in A, 1 Nachkommastelle
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/yield_today Ertrag heute in kWh, 2 Nachkommastellen
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/state Ladephase als Zahl, siehe unten
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/error Fehlercode, 0 = kein Fehler
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/load_current Strom am Lastausgang in A
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/rssi Signalstärke in dBm
campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/product_id Modellkennung als Hex, z. B. A075
yield_today setzt der Regler nicht um Mitternacht auf null, sondern beim nächsten Sonnenaufgang. Abends und nachts steht also noch der Ertrag des Tages da, auch nach Mitternacht. Das ist kein Fehler — und für das Energie-Dashboard spielt es keine Rolle, mehr dazu unten. load_current kommt nur bei Reglern, die einen Lastausgang haben. Hat deiner keinen, bleibt der Sensor dafür einfach leer.
state ist die Ladephase als Zahl. Den Klartext rechnet unten ein Template-Sensor daraus:
0 aus
1 geringe Leistung
2 Störung
3 Hauptladung (Bulk)
4 Konstantspannung (Absorption)
5 Erhaltung (Float)
6 Lagerung (Storage)
7 Ausgleichsladung (Equalize)
245 startet
247 automatische Ausgleichsladung
252 externe Steuerung
error ist der Fehlercode des Reglers. 0 heißt: kein Fehler. Jede andere Zahl ist die Nummer, die VictronConnect als Err N anzeigt — zum Beispiel:
0 kein Fehler
2 Batteriespannung zu hoch
17 Regler überhitzt
33 PV-Spannung zu hoch
Ob deine CampMatic den Regler überhaupt entschlüsseln kann, verrät ein eigenes Thema. Es enthält für jede Platznummer einen Zustand st:
campmatic/<GERAETE_ID>/victron/status
{…,"state":[{"slot":6,"st":"ok",…}]}
ok alles in Ordnung, die Werte kommen an
key der Schlüssel passt nicht zum Regler
off Instant Readout ist im Regler ausgeschaltet
none vom Regler ist noch nichts angekommen
raw ein Victron-Gerät, das weder Solarregler noch SmartShunt ist
Sensoren anlegen
Wieder unter das bestehende mqtt: sensor:. Ersetze <GERAETE_ID> und <SLOT_SOLAR> durch deine Werte.
- name: "Solarregler PV-Leistung"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_pv_power
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/pv_power"
unit_of_measurement: "W"
device_class: power
state_class: measurement
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "Solarregler Batteriespannung"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_battery_voltage
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/battery_voltage"
unit_of_measurement: "V"
device_class: voltage
state_class: measurement
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "Solarregler Ladestrom"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_battery_current
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/battery_current"
unit_of_measurement: "A"
device_class: current
state_class: measurement
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "Solarregler Ertrag heute"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_yield_today
# Der Regler setzt den Wert bei Sonnenaufgang zurück, nicht um Mitternacht.
# total_increasing: Home Assistant erkennt das Zurücksetzen selbst.
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/yield_today"
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "Solarregler Laststrom"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_load_current
# Nur bei Reglern mit Lastausgang — sonst kommt hier nie ein Wert.
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/load_current"
unit_of_measurement: "A"
device_class: current
state_class: measurement
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "Solarregler Signalstärke"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_rssi
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/rssi"
unit_of_measurement: "dBm"
device_class: signal_strength
state_class: measurement
entity_category: diagnostic
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
expire_after Sekunden ohne neuen Wert springt ein Sensor auf „nicht verfügbar". 2700 Sekunden sind 45 Minuten — rund acht Werte deiner CampMatic. Erst wenn so lange nichts kommt, ist der Regler wirklich weg, etwa außer Reichweite, Instant Readout aus oder VictronConnect womöglich noch verbunden. Es ist derselbe Wert wie bei allen anderen Sensoren dieser Anleitung.Wer schneller merken möchte, dass der Regler fehlt, kann auf 1800 gehen. Kürzer sollte es nicht sein: Einzelne Werte fallen auch mal aus, etwa nach einem Neustart deiner CampMatic, und der Sensor würde dann grundlos flackern.
Ladephase und Störungen
Für die Ladephase und den Fehlercode legst du zuerst zwei Diagnosewerte an, wieder unter mqtt: sensor:. Sie behalten die Zahl, mit der auch Automationen gut arbeiten können. Dazu kommt ein Sensor, der den Empfangszustand aus victron/status für deine Platznummer herausliest:
- name: "Solarregler Ladephase Code"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_state
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/state"
entity_category: diagnostic
icon: mdi:numeric
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "Solarregler Fehlercode"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_error
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/error"
entity_category: diagnostic
icon: mdi:alert-circle-outline
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "Solarregler Empfang"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_link
# Zustand dieser Platznummer aus victron/status.
state_topic: "campmatic/<GERAETE_ID>/victron/status"
value_template: >-
{% set s = value_json.state | default([]) | selectattr('slot', 'eq', <SLOT_SOLAR>) | list %}
{% set st = s[0].st if s else 'none' %}
{{ {'ok': 'ok', 'key': 'Schlüssel passt nicht', 'off': 'Instant Readout aus',
'none': 'noch nichts empfangen', 'raw': 'anderer Gerätetyp'}.get(st, st) }}
entity_category: diagnostic
icon: mdi:bluetooth
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
Den Klartext der Ladephase rechnet ein Template-Sensor. Er gehört unter template: sensor: — den Abschnitt hast du aus Kapitel 6 und 9 vermutlich schon, dann kommt der Eintrag einfach dazu:
template:
- sensor:
- name: "Solarregler Ladephase"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_state_text
icon: mdi:solar-power
availability: >-
{{ states('sensor.solarregler_ladephase_code') not in ['unknown','unavailable'] }}
state: >-
{% set c = states('sensor.solarregler_ladephase_code') | int(-1) %}
{{ {0: 'aus', 1: 'geringe Leistung', 2: 'Störung', 3: 'Hauptladung',
4: 'Konstantspannung', 5: 'Erhaltung', 6: 'Lagerung',
7: 'Ausgleichsladung', 245: 'startet', 247: 'automatische Ausgleichsladung',
252: 'externe Steuerung'}.get(c, 'unbekannt (Code ' ~ c ~ ')') }}
Die Störung kommt als binary_sensor. Hast du den Abschnitt schon aus den Kapiteln Truma LevelControl oder Gaswaage, hängst du den Eintrag dort an. Sonst legst du ihn jetzt einmal an, auf derselben Ebene wie sensor:.
# Eigener Abschnitt — auf derselben Ebene wie "sensor:"
binary_sensor:
# Schlägt an, sobald der Regler einen Fehlercode meldet (error ungleich 0).
- name: "Solarregler Störung"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SOLAR>_fault
state_topic: "campmatic/<GERAETE_ID>/victron/solar_<SLOT_SOLAR>/error"
value_template: "{{ 'ON' if value | int(0) != 0 else 'OFF' }}"
device_class: problem
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
Energie-Dashboard
Solarregler Ertrag heute ist so angelegt, dass Home Assistant ihn als Solarerzeugung annimmt: device_class: energy, Einheit kWh und state_class: total_increasing. In den Einstellungen des Energie-Dashboards trägst du ihn als Solarproduktion ein.
total_increasing gilt ein Rückgang des Werts als neuer Zählbeginn, nicht als negativer Ertrag. Dass der Regler beim Sonnenaufgang auf null springt statt um Mitternacht, ist deshalb egal — Home Assistant rechnet die Tage richtig zusammen. Im fertigen Dashboard aus dem Kapitel Dashboard bauen gibt es außerdem eine Gruppe Solar mit PV-Leistung, Batterie, Tagesertrag und dem Verlauf der letzten 48 Stunden.
SmartShunt und BMV-712 Smart
Die Batteriemonitore SmartShunt und BMV-712 Smart liest deine CampMatic ebenfalls. Eingerichtet wird genauso: Instant Readout einschalten, Schlüssel kopieren, VictronConnect schließen. In der CampMatic-App wählst du dann den Typ Victron SmartShunt / BMV. Im Thema steht statt solar das Wort shunt:
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/soc Ladezustand in %
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/voltage Batteriespannung in V
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/current Strom in A — negativ heißt: Entladen
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/consumed_ah entnommene Amperestunden, negativ
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/remaining_min Restlaufzeit in Minuten
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/alarm Alarme als Bitmaske
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/aux_mode Belegung des Zusatzeingangs
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/starter_voltage Starterbatterie in V } je nach
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/midpoint_voltage Mittelpunkt in V } Zusatz-
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/temperature Temperatur in °C } eingang
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/rssi Signalstärke in dBm
campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/product_id Modellkennung als Hex
Die wichtigsten Werte legst du so an — wieder unter mqtt: sensor:, mit der Platznummer des Shunts statt der des Solarreglers:
- name: "SmartShunt Ladezustand"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SHUNT>_soc
state_topic: "campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/soc"
unit_of_measurement: "%"
device_class: battery
state_class: measurement
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "SmartShunt Spannung"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SHUNT>_voltage
state_topic: "campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/voltage"
unit_of_measurement: "V"
device_class: voltage
state_class: measurement
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "SmartShunt Strom"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SHUNT>_current
# Negativ heißt: Die Batterie wird entladen.
state_topic: "campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/current"
unit_of_measurement: "A"
device_class: current
state_class: measurement
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "SmartShunt Entnommen"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SHUNT>_consumed_ah
state_topic: "campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/consumed_ah"
unit_of_measurement: "Ah"
state_class: measurement
icon: mdi:battery-minus
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "SmartShunt Restlaufzeit"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SHUNT>_remaining
state_topic: "campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/remaining_min"
unit_of_measurement: "min"
device_class: duration
state_class: measurement
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
- name: "SmartShunt Signalstärke"
unique_id: campmatic_<GERAETE_ID>_victron_<SLOT_SHUNT>_rssi
state_topic: "campmatic/<GERAETE_ID>/victron/shunt_<SLOT_SHUNT>/rssi"
unit_of_measurement: "dBm"
device_class: signal_strength
state_class: measurement
entity_category: diagnostic
expire_after: 2700
availability_topic: "campmatic/<GERAETE_ID>/status"
payload_available: "online"
payload_not_available: "offline"
Danach Konfiguration prüfen und Home Assistant neu starten.
- Instant Readout ist eingeschaltet, der Regler in der CampMatic-App gekoppelt und VictronConnect geschlossen
- PV-Leistung und Batteriespannung zeigen Werte, Solarregler Empfang steht auf ok
- Solarregler Störung steht auf OK