syssi / esphome-pipsolar

ESPHome component to monitor and control a pipsolar inverter via RS232
Apache License 2.0
78 stars 35 forks source link

pipsolar ac_output_active_power #116

Open unknown1818 opened 3 months ago

unknown1818 commented 3 months ago

Hi,

Im trying to understand this parameter, its fluctuating as hell, inverter sometimes sending 0Watt sometime 100Watt.

But other real meter showing 80Watt.

Do i need to ignore 0Watt readings and later calculate average?

And what i can see pipsolar ac_output_active_power

its not total power only for power what comes from power line, this dont add power usage from solar panel i think the name should be pipsolar ac_input_active_power

and there is a way to make this rs232 reading faster? there is a time interval?

unknown1818 commented 3 months ago

My config fix:

sensor:
  - platform: template
    sensors:

      falownik_ac_in_moc:
        device_class: energy
        unit_of_measurement: W
        value_template: >
          {% if states('sensor.pipsolar_ac_output_active_power') | int <= 1 %}
           {{ states('sensor.falownik_ac_in_moc') }}
          {% else %}
           {{ states('sensor.pipsolar_ac_output_active_power') | int }}
          {% endif %}

  - platform: statistics
    name: falownik_ac_in_moc_average
    entity_id: sensor.falownik_ac_in_moc
    state_characteristic: median
    sampling_size: 5