odya / esphome-powmr-hybrid-inverter

ESPHome config for various PowMr Hybrid Inverter models.
MIT License
112 stars 17 forks source link

Incorrect mode of sensor Charger Source Priority #53

Open VitalyIak opened 3 months ago

VitalyIak commented 3 months ago

I have original PorMr POW-HVM6.2M-48V-N And ESPhome shows Incorrect mode of sensor Charger Source Priority: Current incorrect mapping: CSO - utility first (should be solar first) OSO - solar and utility(should be solar only) SNU - solar first (should be solar and utility)

Correct mapping (but should be): CSO - solar first OSO - solar only SNU - solar and utility

please fix! as I understand it's need to fix inverter.yaml

to

  switch (sensorIndex) {
    case 0: return std::string("Solar first");
    case 1: return std::string("Solar and Utility");
    case 2: return std::string("Only solar");
    default: return std::string(x);
  }

And

should be

    optionsmap:
      "Solar first": 0
      "Solar and Utility": 1
      "Only Solar": 2``
davidebeatrici commented 2 months ago

Related: #48