openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.85k stars 3.56k forks source link

[fronius] add battery SOC #12635

Open chr1337 opened 2 years ago

chr1337 commented 2 years ago

Thank you a lot for your great work!

It would really be great to read from solar_api/v1/GetStorageRealtimeData.cgi What I'm missing in the current binding is the battery status. (Especially the SOC (StateOfCharge_Relative)). This ist the output of my gen24: { "Body" : { "Data" : { "0" : { "Controller" : { "Capacity_Maximum" : 7800, "Current_DC" : 0.79987550575785871, "DesignedCapacity" : 7800, "Details" : { "Manufacturer" : "BYD", "Model" : "BYD Battery-Box Premium HV", "Serial" : "P030T020Z200XXXXXXX " }, "Enable" : 1, "StateOfCharge_Relative" : 65.900000000000006, "Status_BatteryCell" : 3.0, "Temperature_Cell" : 16.0, "TimeStamp" : 1650606867.0, "Voltage_DC" : 321.30000000000001 }, "Modules" : [] } } }, "Head" : { "RequestArguments" : { "Scope" : "System" }, "Status" : { "Code" : 0, "Reason" : "", "UserMessage" : "" }, "Timestamp" : "2022-04-22T05:54:31+00:00" } }

jimtng commented 2 years ago

Is this different to the SOC data from the inverter channel powerflowinverter1soc ?

jimtng commented 2 years ago

Is this different to the SOC data from the inverter channel powerflowinverter1soc ?

@chr1337 can you provide feedback please?

Trancep0rt commented 1 year ago

powerflowinverter1sochas the same value as StateOfCharge_Relative from the API. Temperature_Cell would be nice to have, too.

sberer commented 7 months ago

Any feedback on this? I also want to use SOC and temperature of the battery.