Hello guys,
I have a new solar installation with battery, inverter and all. Its from Energie Konzepte Deutschland. They system is called Ampere.Storage.Pro. It looks a lot like SAJ Series HS2.
I have not yet found an integration, but was able to reverse engineer the REST API. I was able to extract 44 different values. Kudos to this site which helped me a lot.
I have a set of Restful sensors to collect all the information form the REST API.
I am currently struggling to use the variables in the energy dashboard. I am happy to provide input for people able to create an integration. I wanted to use the sensors in the energy dashboard. I would love to get some help to get this resolved.
Lets start with the battery. I have the following two entities defined:
- platform: rest
resource: http://10.0.30.130/rest/items/sajhybrid_battery_94_HSR2103J2323E18072_battery_totalDischargeEnergy
# 2.13 kWh
name: solar_battery_totalDischargeEnergy
value_template: '{{ value_json.state | regex_replace("([^\d.-]+)","") | float }}'
unit_of_measurement: "kWh"
device_class: energy
state_class: measurement
- platform: rest
resource: http://10.0.30.130/rest/items/sajhybrid_battery_94_HSR2103J2323E18072_battery_totalChargeEnergy
# 0.28 kWh
name: solar_battery_totalChargeEnergy
value_template: '{{ value_json.state | regex_replace("([^\d.-]+)","") | float }}'
unit_of_measurement: "kWh"
device_class: energy
state_class: measurement
Both entites can be selected now in the battery section of the energy dashboard, however some error are shown in the dashboard. The âlast reset is missingâ.
I am done for now, need some sleep. HOwever, I would love to get some help to be able to create all the sensors for the energy dashboard.
These are the parameter I can extract:
battery_mode, 0
battery_modeConverter, OFF
battery_power, 22 W
battery_stateOfCharge, 20.00 %
battery_temperature, 13.0 °C
battery_totalChargeEnergy, 0.32 kWh
battery_totalDischargeEnergy, 2.15 kWh
# The following are linux timestamps in UTC plus a current value.
harmonized_power_in, 1708550445000|28.0 W
harmonized_power_out, 1708550445000|0.0 W
harmonized_work_in, 1708550400000|0.0 Ws
harmonized_work_out, 1708550400000|0.0 Ws
harmonized_mppt_dc_power, 1708550445000|0.0 W
harmonized_mppt_dc_work, 1708550400000|0.0 Ws
harmonized_power_in, 1708550445000|28.0 W
harmonized_power_out, 1708550445000|0.0 W
harmonized_work_in, 1708550400000|7155.0 Ws
harmonized_work_out, 1708550400000|0.0 Ws
inverter_activePower, -28.0 W
inverter_activePowerRaw, 70 W
inverter_apparentPower, 306 W
inverter_energyIn, 168035.0 Ws
inverter_energyOut, 7787450.0 Ws
inverter_pvEnergy, NULL
inverter_pvPower, 0 W
inverter_pvPowerMPPT, 0 W
inverter_selfConsumptionPower, 713 W
limitable_getActualProductionPower_P_active, -28.0 W
harmonized_power_in, 1708550445000|725.5 W
harmonized_power_out, 1708550445000|0.0 W
harmonized_work_in, 1708550400000|257647.5 Ws
harmonized_work_out, 1708550400000|0.0 Ws
metering_getConsumption_P_active, 717.0 W
metering_getProduction_P_active, 717.0 W
powermeter_phase_r_export, 0.32 kWh
powermeter_phase_r_import, 0.51 kWh
powermeter_phase_s_export, 0.00 kWh
powermeter_phase_s_import, 1.57 kWh
powermeter_phase_t_export, 0.04 kWh
powermeter_phase_t_import, 1.05 kWh
powermeter_real_power_1, 152 W
powermeter_real_power_2, 325 W
powermeter_real_power_3, 240 W
powermeter_realPower, 717.0 W
powermeter_totalExport, 147280.0 Ws
powermeter_totalImport, 10433527.5 Ws
These additional ones are there as well in the API, but yet with NULL values.
harmonized_power_buffered_from_grid, NULL
harmonized_power_buffered_from_producers, NULL
harmonized_power_buffered, NULL
harmonized_power_consumed_from_grid, NULL
harmonized_power_consumed_from_producers, NULL
harmonized_power_consumed_from_storage, NULL
harmonized_power_consumed, NULL
harmonized_power_in, NULL
harmonized_power_out_from_producers, NULL
harmonized_power_out_from_storage, NULL
harmonized_power_out, NULL
harmonized_power_produced, NULL
harmonized_power_released, NULL
harmonized_power_self_consumed, NULL
harmonized_power_self_supplied, NULL
harmonized_work_buffered_from_grid_total, NULL
harmonized_work_buffered_from_grid, NULL
harmonized_work_buffered_from_producers_total, NULL
harmonized_work_buffered_from_producers, NULL
harmonized_work_buffered_total, NULL
harmonized_work_buffered, NULL
harmonized_work_consumed_from_grid_total, NULL
harmonized_work_consumed_from_grid, NULL
harmonized_work_consumed_from_producers_total, NULL
harmonized_work_consumed_from_producers, NULL
harmonized_work_consumed_from_storage_total, NULL
harmonized_work_consumed_from_storage, NULL
harmonized_work_consumed_total, NULL
harmonized_work_consumed, NULL
harmonized_work_in_total, NULL
harmonized_work_in, NULL
harmonized_work_out_from_producers_total, NULL
harmonized_work_out_from_producers, NULL
harmonized_work_out_from_storage_total, NULL
harmonized_work_out_from_storage, NULL
harmonized_work_out_total, NULL
harmonized_work_out, NULL
harmonized_work_produced_total, NULL
harmonized_work_produced, NULL
harmonized_work_released_total, NULL
harmonized_work_released, NULL
harmonized_work_self_consumed_total, NULL
harmonized_work_self_consumed, NULL
harmonized_work_self_supplied_total, NULL
harmonized_work_self_supplied, NULL
harmonized_power_out, NULL
harmonized_work_out_total, NULL
harmonized_work_out, NULL