I’ve got the values, but don’t have a clue what to do with them in the configuration.yaml. This is way over my head
The reason for wanting these temps is so that I can setup alerts. I’ve had this battery system installed since October 2025, and now have Pack 2 in error with high temp warning as seen below. I’m in contact with the installer etc, But I want to keep any eye on this as I don’t like these figures for Pack B.
Can you help further with the yaml code to get these imported? I don’t have a clue about any of this stuff & translating it into those temps😔
No worries if you can’t, I’m thankful for your help anyway.
sensor:
- name: Solar Production Energy
unique_id: solar_production_energy
value_template: "{{ (value_json.data | selectattr('date', 'equalto', now().timestamp() | timestamp_custom('%Y-%m-%d')) | first).pvDge | default(states.sensor.solar_production_energy.state) }}"
device_class: "energy"
unit_of_measurement: "kWh"
state_class: "total_increasing"
sensor:
- name: Solar Production
unique_id: solar_production
value_template: "{{ value_json.data.pvTtPwr | default(0) }}"
device_class: "power"
unit_of_measurement: "W"
state_class: "measurement"
sensor:
- platform: integration
name: Solar Production Integral
unique_id: solar_production_integral
source: sensor.solar_production
I’ve had a go at getting the data by adapting the original code - don’t laugh if I’m completely wrong as it’s all foreign to me. Looking through the Dev Tools I found the temps appeared in 2 places, and it’s own payload as below…
UPDATE…
Found issue. The payload for historyStaticsChart has been updated for month change. The REST needs to be updated with new payload.
I updated the rest (having your original) last month & its been working great. However at midnight all the information for the below have returned unknown:
home_usage_energy (loadEe)
grid_import_energy (gridTdEe)
grid_export_energy (gridTdFe)
battery_discharge_energy (batTdDschg)
battery_charge_energy (batTdChg)