Sonnenspeicher

Aus FHEMWiki

Hinweise zur Einbindung des Speichersystems von sonnen (https://sonnen.de/stromspeicher/) per HTTPMOD

Im Kürze:

define sonnenbatterie HTTPMOD http://x.x.x.x:8080/api/v1/status 60
attr sonnenbatterie extractAllJSON 1
attr sonnenbatterie stateFormat {sprintf("PV %d W -> Verbrauch %d W + %d W %s Speicher + %d W %s Grid, SOC %d%%",\
ReadingsVal($name,"Production_W",0),\
ReadingsVal($name,"Consumption_W",0),\
abs(ReadingsVal($name,"Pac_total_W",0)),\
ReadingsVal($name,"flowProductionBattery",0) > 0 ? "aus" : "in",\
ReadingsVal($name,"GridFeedIn_W",0),\
ReadingsVal($name,"flowConsumptionGrid",0) > 0 ? "aus" : "in",\
ReadingsVal($name,"RSOC","-1")\
)}