Since a fe weeks I get a strange behaviour of my solar production data.
I have 4kWh solar panels on my roof and a Solax converter. I can obtain my data using an API from the Solax portal. The daily increase in solar energy is sent to the energy dashboard. using the following config:
- platform: rest
scan_interval: 90
resource: https://www.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=000000000000&sn=xxxxxxxxx
name: "Solax"
json_attributes_path: "$.result"
json_attributes:
- yieldtoday
- yieldtotal
- acpower
- uploadTime
- inverterStatus
value_template: >
{% set ignore = ['unknown', 'unavailable'] %}
{{ trigger.from_state.state not in ignore and
trigger.to_state.state not in ignore and
trigger.to_state.state != trigger.from_state.state }}
- platform: template
sensors:
solax_today:
friendly_name: "Solax today"
value_template: "{{ state_attr('sensor.solax', 'yieldtoday') }}"
unit_of_measurement: "KWh"
sensor:
- name: dashboard_energy
state: "{{ states('sensor.solax_today')|float(0) }}"
unit_of_measurement: 'kWh'
state_class: total_increasing
device_class: energy
attributes:
last_reset: '1970-01-01T00:00:00+00:00'
But the results are swown here:
When I look at the data from the Solax portal I see this the graph with small interruptions.The logbook shows some errors in the status at that moment.
So when there was a misreading from the Solax portal this shows in the dasboard Energy going to 0 and then doubling the value when e new ready is coming in (because it went from 0 to the correct value).
How can I correct this?