I have created a separate branch "batteries" where i added the query for meters & batteries which will be added to the available data.
and you set the log to debug, it will dump all retrieved data in the domotics.log.
Code: Select all
2025-06-12 10:19:25.408 Solaredge: [V] inverter values : {
"c_id": "SunS",
"c_did": 1,
"c_length": 65,
"c_manufacturer": "SolarEdge",
"c_model": "SE5000",
"c_version": "0003.2537",
"c_deviceaddress": 1,
"c_sunspec_did": 101,
"c_sunspec_length": 50,
"current": 488,
"l1_current": 488,
"l2_current": 0,
"l3_current": 0,
"current_scale": -2,
"l1_voltage": 2349,
"l2_voltage": 0,
"l3_voltage": 0,
"l1n_voltage": 0,
"l2n_voltage": 0,
"l3n_voltage": 0,
"voltage_scale": -1,
"power_ac": 11409,
"power_ac_scale": -1,
"frequency": 49974,
"frequency_scale": -3,
"power_apparent": 11486,
"power_apparent_scale": -1,
"power_reactive": 13294,
"power_reactive_scale": -2,
"power_factor": 9932,
"power_factor_scale": -2,
"energy_total": 36040880,
"energy_total_scale": 0,
"current_dc": 3130,
"current_dc_scale": -3,
"voltage_dc": 3700,
"voltage_dc_scale": -1,
"power_dc": 11583,
"power_dc_scale": -1,
"temperature": 3667,
"temperature_scale": -2,
"status": 4,
"vendor_status": 0,
"rrcr_state": 0,
"active_power_limit": 100,
"cosphi": 0,
"commit_power_control_settings": 0,
"restore_power_control_default_settings": 0,
"reactive_power_config": 0,
"reactive_power_response_time": 200,
"advanced_power_control_enable": 1,
"export_control_mode": 0,
"export_control_limit_mode": 0,
"export_control_site_limit": 0,
"meters": {},
"batteries": {
"Battery1": {
"c_manufacturer": "\u0002",
"c_model": "False",
"c_version": "False",
"c_serialnumber": "False",
"c_deviceaddress": 15,
"c_sunspec_did": 0,
"rated_energy": -3.4028234663852886e+38,
"maximum_charge_continuous_power": -3.4028234663852886e+38,
"maximum_discharge_continuous_power": -3.4028234663852886e+38,
"maximum_charge_peak_power": -3.4028234663852886e+38,
"maximum_discharge_peak_power": -3.4028234663852886e+38,
"average_temperature": -3.4028234663852886e+38,
"maximum_temperature": 0.0,
"instantaneous_voltage": -3.4028234663852886e+38,
"instantaneous_current": -3.4028234663852886e+38,
"instantaneous_power": 0.0,
"lifetime_export_energy_counter": 0,
"lifetime_import_energy_counter": 0,
"maximum_energy": -3.4028234663852886e+38,
"available_energy": -3.4028234663852886e+38,
"soh": -3.4028234663852886e+38,
"soe": -3.4028234663852886e+38,
"status": 7,
"status_internal": 0,
"event_log": 0,
"event_log_internal": 0
},
"Battery2": {
"c_manufacturer": "\u0002",
"c_model": "False",
"c_version": "False",
"c_serialnumber": "False",
"c_deviceaddress": 14,
"c_sunspec_did": 0,
"rated_energy": -3.4028234663852886e+38,
"maximum_charge_continuous_power": -3.4028234663852886e+38,
"maximum_discharge_continuous_power": -3.4028234663852886e+38,
"maximum_charge_peak_power": -3.4028234663852886e+38,
"maximum_discharge_peak_power": -3.4028234663852886e+38,
"average_temperature": -3.4028234663852886e+38,
"maximum_temperature": 0.0,
"instantaneous_voltage": -3.4028234663852886e+38,
"instantaneous_current": -3.4028234663852886e+38,
"instantaneous_power": 0.0,
"lifetime_export_energy_counter": 0,
"lifetime_import_energy_counter": 0,
"maximum_energy": -3.4028234663852886e+38,
"available_energy": -3.4028234663852886e+38,
"soh": -3.4028234663852886e+38,
"soe": -3.4028234663852886e+38,
"status": 7,
"status_internal": 0,
"event_log": 0,
"event_log_internal": 0
}
}
}
I assume you will see actual data when Batteries are attached and also find extra data in case you have power meters attached measuring the life return to the net.
In case you do see actual data, it needs to be determined which of those values need to be shown in Domoticz and which devicetype is required.
This then will be put into a table and then devices will be created and updated after the code for that is added.