46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
# ============================================
|
|
# Battery Charging Optimizer - REST Commands
|
|
# ============================================
|
|
# Diese REST Commands zu deiner configuration.yaml hinzufügen
|
|
|
|
rest_command:
|
|
# ESS in REMOTE Mode setzen (für manuelles Laden via HA)
|
|
# WICHTIG: Muss VOR dem Schreiben auf Register 706 aufgerufen werden!
|
|
set_ess_remote_mode:
|
|
url: "http://x:admin@192.168.89.144:8074/jsonrpc"
|
|
method: POST
|
|
payload: '{"method": "updateComponentConfig", "params": {"componentId": "ess0","properties":[{"name": "controlMode","value": "REMOTE"}]}}'
|
|
content_type: "application/json"
|
|
|
|
# ESS in INTERNAL Mode setzen (zurück zu automatischem Betrieb)
|
|
# WICHTIG: NACH dem Laden aufrufen, um wieder auf Automatik zu schalten!
|
|
set_ess_internal_mode:
|
|
url: "http://x:admin@192.168.89.144:8074/jsonrpc"
|
|
method: POST
|
|
payload: '{"method": "updateComponentConfig", "params": {"componentId": "ess0","properties":[{"name": "controlMode","value": "INTERNAL"}]}}'
|
|
content_type: "application/json"
|
|
|
|
# Alternative: Modbus Write über Home Assistant Modbus Integration
|
|
# (Bevorzugte Methode für dynamische Werte)
|
|
|
|
# Füge diese Modbus-Konfiguration hinzu wenn noch nicht vorhanden:
|
|
modbus:
|
|
- name: openems
|
|
type: tcp
|
|
host: 192.168.89.144
|
|
port: 502
|
|
|
|
# Write-Register für Batterieleistung
|
|
# Register 706: ess0/SetActivePowerEquals
|
|
# FLOAT32 Big-Endian - Negativ = Laden, Positiv = Entladen
|
|
|
|
# Optional: Sensor zum Lesen des aktuellen Sollwerts
|
|
sensors:
|
|
- name: "OpenEMS Batterie Sollwert"
|
|
address: 706
|
|
data_type: float32
|
|
swap: none # Big-Endian
|
|
scan_interval: 30
|
|
unit_of_measurement: "W"
|
|
device_class: power
|