syssi / esphome-pipsolar

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

PIP 8048 support (Aka Axpert max) #8

Open SeByDocKy opened 2 years ago

SeByDocKy commented 2 years ago

Hello,

Amazing job you did .... Is-il possible to extend your work to support as well the PIP8048 (axpert max I & II). Protocol changed just a bit...... In general in your amazing work, will be fantastic to have an option to choose a particular PIP model even if I understood it's a huge work to be compatible with all PIP models

Here is the link for the PIP8048 protocol : https://www.transfernow.net/dl/202112112SpO2rcW I did a custom sensor for it... but you work is even better.... Kind regards,

SeByDocKy commented 1 year ago

There is not direct information from any command to know if it's in grid-tied or not but you can do a basic binary_sensor testing for exemple with the frequency information

- platform: template
    name: ${name}_${inverter}_grid_input_on
    id: ${name}_${inverter}_grid_input_on
    lambda: |-
      if (id(${name}_${inverter}_grid_voltage).state > 0) {
        // Grid is connected
        return true;
      } else {
        // Grid is disconnected.
        return false;
      }
dr3amr commented 1 year ago

There is not direct information from any command to know if it's in grid-tied or not but you can do a basic binary_sensor testing for exemple with the frequency information

- platform: template
    name: ${name}_${inverter}_grid_input_on
    id: ${name}_${inverter}_grid_input_on
    lambda: |-
      if (id(${name}_${inverter}_grid_voltage).state > 0) {
        // Grid is connected
        return true;
      } else {
        // Grid is disconnected.
        return false;
      }

@SeByDocKy Hi, I do not mean when GRID is connected or not. I want to know when Inverter consumes / takes energy from GRID (connected is almost all the time) and how much. There are sensors for AC Output, could there also be an AC Input Power for example ? Should be 0w when power is taken from Battery or Solar, but should have >0w when for example "Charger_source_priority" is set to Solar and utility, and not Solar only, and battery level is low (cloudy day, low production from solar).

SeByDocKy commented 1 year ago

Neither sensor as well :( .to know how much from Grid the inverter takes...

dr3amr commented 1 year ago

Neither sensor as well :( .to know how much from Grid the inverter takes...

At least we have Device_mode which matches with the LED strip. Values: "B" (Battery - turquoise), "L" (Grid-line/Bypass - magenta), and I think also "S" (Solar - white). Will check the solar part tomorrow when there is some sun (light). Depending on the mode and both battery and pv output w, you can figure from which source the ac_output_active_power W are from. In "L" mode power is 100% from ac / grid (as we are in Bypass mode). LE: wrong. it seems to only show the source priority, not current mode ... :( so no way to know how much inverter draws from Grid.