tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
416 stars 74 forks source link

Huge spikes in some of the Powerstream outputs #169

Open justnx opened 1 year ago

justnx commented 1 year ago

Sometimes i'm having weird issues in Powerstream output, maybe due short internet disconnect, after accessing the ecoflow app or restart of the powersream itself. I dont really have a clue where it comes from but it makes calculation on energy dashboard very inaccurate.

for example the: sensor.powerstream_smart_plug_loads sensor

Bildschirmfoto 2023-10-31 um 19 55 49
mattwells commented 1 year ago

I actually have the same issue with the Ecoflow Delta Pro. I think it has something to do with the way the integration default the value to 0 when it is offline but I haven't had the time to look into. Here is a screenshot of the Enegy Screen on a day where I got 2 spikes as you describe:

image

justnx commented 1 year ago

Ahh you mean that if device is offline it is adding up the last state again and again? That could make sense. So we need a reset logic that zeros last state if it is not freshly pulled from device. wonders if the attribute: assume_online from sensor.powerstream_status may help here.

saschabraun commented 10 months ago

I have the same issue. As soon as the inverter goes offline after sunset, the last power value stays. So it keeps counting that power for the whole night and ruining my statistics basically. Having a sensor reset to 0 after some time would be great help.

saschabraun commented 10 months ago

I solved it now with a custom template sensor:

{% if is_state('sensor.mithras_status', 'assume_offline')  %}
0
{% else %} 
{{ (float(states('sensor.mithras_inverter_output_watts'))) }}
{% endif %}