torbennehmer / hacs-e3dc

Homeassistant E3DC Integration
GNU Affero General Public License v3.0
68 stars 8 forks source link

Additional consumption shows negative values increasing #172

Closed einmannlan closed 2 months ago

einmannlan commented 2 months ago

System Health details

System Information

version core-2024.8.0
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 5.10.60-qnap
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 4987 Installed Version | 2.0.0 Stage | running Available Repositories | 1389 Downloaded Repositories | 16
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 1 -- | -- resources | 10 views | 1 mode | storage
Recorder oldest_recorder_run | 4. August 2024 um 17:46 -- | -- current_recorder_run | 31. August 2024 um 10:03 estimated_db_size | 800.50 MiB database_engine | sqlite database_version | 3.45.3

Checklist

Describe the issue

I've using the integration to monitor a S10E with the following config:

Using this configuration and even newest 3.8.0-beta.5 branch the s10e_additional_consumption_total value is negative but it's increasing. image

I've check it using RSCPGUI and it seems it has the same problem: I guess its a bug in the calculation, because L1 is positive and L2+L3 is negative. RSCPGUI

Expected total value of the additional power meter according to E3DC Portal is ~5.256 kWh.

Reproduction steps

Should be clear from above issue description, if same configuration is set I guess additional consumption will be wrong in any similar setup.

Debug logs

{
  "home_assistant": {
    "installation_type": "Home Assistant Container",
    "version": "2024.8.0",
    "dev": false,
    "hassio": false,
    "virtualenv": false,
    "python_version": "3.12.4",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "5.10.60-qnap",
    "run_as_root": true
  },
  "custom_components": {
    "webrtc": {
      "documentation": "https://github.com/AlexxIT/WebRTC",
      "version": "v3.5.2",
      "requirements": []
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/configuration/start",
      "version": "2.0.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "hikvision_next": {
      "documentation": "https://github.com/maciej-or/hikvision_next",
      "version": "1.0.17",
      "requirements": [
        "xmltodict==0.13.0",
        "hikvisionapi==0.3.2",
        "requests-toolbelt==1.0.0"
      ]
    },
    "stiebel_eltron_isg": {
      "documentation": "https://github.com/pail23/stiebel_eltron_isg_component",
      "version": "2024.6",
      "requirements": [
        "pymodbus>=3.6.0"
      ]
    },
    "e3dc_rscp": {
      "documentation": "https://github.com/torbennehmer/hacs-e3dc",
      "version": "3.8.0-beta.5",
      "requirements": [
        "pye3dc==0.9.2"
      ]
    },
    "browser_mod": {
      "documentation": "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md",
      "version": "2.3.1",
      "requirements": []
    },
    "waste_collection_schedule": {
      "documentation": "https://github.com/mampfes/hacs_waste_collection_schedule#readme",
      "version": "2.1.0",
      "requirements": [
        "icalendar",
        "recurring_ical_events",
        "icalevents",
        "beautifulsoup4",
        "lxml"
      ]
    },
    "dwd_weather": {
      "documentation": "https://github.com/FL550/dwd_weather",
      "version": "v2.1.4",
      "requirements": [
        "simple_dwd_weatherforecast==2.0.31",
        "markdownify==0.6.5",
        "suntimes==1.1.2"
      ]
    }
  },
  "integration_manifest": {
    "domain": "e3dc_rscp",
    "name": "E3DC Remote Storage Control Protocol (Git)",
    "codeowners": [
      "torbennehmer"
    ],
    "config_flow": true,
    "dependencies": [],
    "documentation": "https://github.com/torbennehmer/hacs-e3dc",
    "homekit": {},
    "integration_type": "device",
    "iot_class": "cloud_polling",
    "issue_tracker": "https://github.com/torbennehmer/hacs-e3dc/issues",
    "requirements": [
      "pye3dc==0.9.2"
    ],
    "ssdp": [],
    "version": "3.8.0-beta.5",
    "zeroconf": [],
    "is_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 4.459591582417488e-05
    },
    "01J2FBXWVGEHQM4QDJXFE3DBNE": {
      "wait_import_platforms": -0.0235048639588058,
      "config_entry_setup": 0.6499189760070294
    }
  },
  "data": {
    "current_data": {
      "system-derate-percent": 100.0,
      "system-derate-power": 5670.0,
      "system-additional-source-available": false,
      "system-battery-installed-capacity": 13107,
      "system-battery-installed-peak": 5670,
      "system-ac-maxpower": 12000,
      "system-battery-charge-max": 4500,
      "system-battery-discharge-max": 4500,
      "system-mac": "24:<redacted>",
      "model": "S10E",
      "system-battery-discharge-minimum-default": 65,
      "e3dc_timezone": "Europe/Berlin",
      "additional-production": 0,
      "autarky": 99.64241027832031,
      "battery-charge": 1767,
      "battery-discharge": 0,
      "battery-netchange": 1767,
      "grid-consumption": 10,
      "grid-netchange": 10,
      "grid-production": 0,
      "house-consumption": 1054,
      "selfconsumption": 99.65695190429688,
      "soc": 15,
      "solar-production": 2811,
      "wallbox-consumption": 0,
      "pset-limit-charge": 4500,
      "pset-limit-discharge": 4500,
      "pset-limit-discharge-minimum": 65,
      "pset-limit-enabled": false,
      "pset-powersaving-enabled": true,
      "pset-weatherregulationenabled": false,
      "manual-charge-active": false,
      "manual-charge-energy": 0,
      "additional-consumption-1": 124.0,
      "additional-consumption-1-total": -4785885.63,
      "db-day-autarky": 74.08157348632812,
      "db-day-battery-charge": 1099.0,
      "db-day-battery-discharge": 3256.0,
      "db-day-grid-consumption": 1792.0,
      "db-day-grid-production": 40.0,
      "db-day-house-consumption": 6914.0,
      "db-day-selfconsumption": 99.22510528564453,
      "db-day-solar-production": 3758.0,
      "db-day-startts": 1725062400
    },
    "get_system_info": {
      "deratePercent": 100.0,
      "deratePower": 5670.0,
      "externalSourceAvailable": 0,
      "installedBatteryCapacity": 13107,
      "installedPeakPower": 5670,
      "maxAcPower": 12000,
      "macAddress": "24:<redacted>",
      "maxBatChargePower": 4500,
      "maxBatDischargePower": 4500,
      "model": "S10E",
      "release": "S10_2024_024",
      "serial": "722<redacted>"
    },
    "get_system_status": {
      "dcdcAlive": true,
      "powerMeterAlive": true,
      "batteryModuleAlive": true,
      "pvModuleAlive": true,
      "pvInverterInited": true,
      "serverConnectionAlive": true,
      "pvDerated": false,
      "emsAlive": true,
      "acModeBlocked": false,
      "sysConfChecked": false,
      "emergencyPowerStarted": false,
      "emergencyPowerOverride": false,
      "wallBoxAlive": false,
      "powerSaveEnabled": false,
      "chargeIdlePeriodActive": false,
      "dischargeIdlePeriodActive": false,
      "waitForWeatherBreakthrough": false,
      "rescueBatteryEnabled": false,
      "emergencyReserveReached": false,
      "socSyncRequested": false
    },
    "get_powermeters": [
      {
        "index": 0,
        "type": 1,
        "typeName": "PM_TYPE_ROOT"
      },
      {
        "index": 1,
        "type": 4,
        "typeName": "PM_TYPE_ADDITIONAL_CONSUMPTION"
      }
    ],
    "e3dc_config": {
      "powermeters": [
        {
          "index": 0,
          "type": 1,
          "typeName": "PM_TYPE_ROOT",
          "name": "Root PM",
          "key": "root-pm",
          "total-state-class": "total",
          "negate-measure": false
        },
        {
          "index": 1,
          "type": 4,
          "typeName": "PM_TYPE_ADDITIONAL_CONSUMPTION",
          "name": "Additional consumption",
          "key": "additional-consumption-1",
          "total-state-class": "total_increasing",
          "negate-measure": false
        }
      ]
    },
    "poll": {
      "autarky": 99.64241027832031,
      "consumption": {
        "battery": 1767,
        "house": 1054,
        "wallbox": 0
      },
      "production": {
        "solar": 2811,
        "add": 0,
        "grid": 10
      },
      "selfConsumption": 99.65695190429688,
      "stateOfCharge": 15,
      "time": "2024-08-31T08:43:51.000716+00:00"
    },
    "switches": [],
    "get_pvis_data": [
      {
        "acMaxApparentPower": 4000.0,
        "cosPhi": {
          "active": null,
          "value": null,
          "excited": null
        },
        "deviceState": {
          "connected": true,
          "working": true,
          "inService": false
        },
        "frequency": {
          "under": null,
          "over": null
        },
        "index": 0,
        "lastError": "3 0x0",
        "maxPhaseCount": 3,
        "maxStringCount": 2,
        "onGrid": true,
        "phases": {
          "0": {
            "power": 261.0,
            "voltage": 234.89999389648438,
            "current": 1.2300000190734863,
            "apparentPower": 290.0,
            "reactivePower": 0.0,
            "energyAll": 11295157.0,
            "energyGridConsumption": 180934.0
          },
          "1": {
            "power": 256.0,
            "voltage": 235.39999389648438,
            "current": 1.2200000286102295,
            "apparentPower": 287.0,
            "reactivePower": 0.0,
            "energyAll": 4554541.0,
            "energyGridConsumption": 174277.0
          },
          "2": {
            "power": 322.0,
            "voltage": 234.60000610351562,
            "current": 1.4600000381469727,
            "apparentPower": 343.0,
            "reactivePower": 0.0,
            "energyAll": 4972180.0,
            "energyGridConsumption": 181962.0
          }
        },
        "powerMode": 1,
        "serialNumber": "E3E<redacted>",
        "state": "0xbf231d",
        "strings": {
          "0": {
            "power": 1884.0,
            "voltage": 288.0,
            "current": 6.539999961853027,
            "energyAll": 12442665.0
          },
          "1": {
            "power": 931.0,
            "voltage": 289.0,
            "current": 3.2200000286102295,
            "energyAll": 10883722.0
          }
        },
        "systemMode": 2,
        "temperature": {
          "max": 130.0,
          "min": -30.0,
          "values": [
            42.29999923706055,
            43.599998474121094,
            52.29999923706055,
            43.70000076293945
          ]
        },
        "type": 3,
        "version": " MAIN HW06 2.060",
        "voltageMonitoring": {
          "thresholdTop": null,
          "thresholdBottom": null,
          "slopeUp": null,
          "slopeDown": null
        }
      }
    ],
    "get_powermeters_data": [
      {
        "activePhases": "111",
        "energy": {
          "L1": 75711.48,
          "L2": 3616129.05,
          "L3": 1256574.29
        },
        "index": 0,
        "maxPhasePower": 24000.0,
        "mode": 1,
        "power": {
          "L1": -88.0,
          "L2": 166.0,
          "L3": -74.0
        },
        "type": 1,
        "voltage": {
          "L1": 235.63999938964844,
          "L2": 234.6999969482422,
          "L3": 235.57000732421875
        }
      },
      {
        "activePhases": "111",
        "energy": {
          "L1": 339264.41,
          "L2": -3052140.86,
          "L3": -2073009.18
        },
        "index": 1,
        "maxPhasePower": 24000.0,
        "mode": 1,
        "power": {
          "L1": 4.0,
          "L2": 3.0,
          "L3": 115.0
        },
        "type": 4,
        "voltage": {
          "L1": 235.64999389648438,
          "L2": 234.49000549316406,
          "L3": 235.16000366210938
        }
      }
    ],
    "get_wallbox_data": {
      "appSoftware": null,
      "batteryToCar": 0,
      "index": 0
    },
    "get_batteries_data": [
      {
        "asoc": 94.5,
        "chargeCycles": 857,
        "current": 33.29999923706055,
        "dcbCount": 4,
        "dcbs": {
          "0": {
            "current": 8.0,
            "currentAvg30s": 7.995599746704102,
            "cycleCount": 857,
            "designCapacity": 64.0,
            "designVoltage": 51.20000076293945,
            "deviceName": "ATL3_3",
            "endOfDischarge": 47.0,
            "error": 0,
            "fullChargeCapacity": 54.599998474121094,
            "fwVersion": 17891328,
            "manufactureDate": 14740,
            "manufactureName": "ATL",
            "maxChargeCurrent": 32.0,
            "maxChargeTemperature": 45.0,
            "maxChargeVoltage": 56.79999923706055,
            "maxDischargeCurrent": 42.0,
            "minChargeTemperature": -10.0,
            "parallelCellCount": 0,
            "sensorCount": 2,
            "seriesCellCount": 0,
            "pcbVersion": 514,
            "protocolVersion": 0,
            "remainingCapacity": 11.0,
            "serialCode": "202<redacted>",
            "serialNo": 1031,
            "soc": 20.299999237060547,
            "soh": 92.9000015258789,
            "status": 224,
            "temperatures": [
              27.100000381469727,
              27.700000762939453
            ],
            "voltage": 53.099998474121094,
            "voltageAvg30s": 53.099998474121094,
            "voltages": [],
            "warning": 0
          },
          "1": {
            "current": 8.0,
            "currentAvg30s": 7.967297077178955,
            "cycleCount": 848,
            "designCapacity": 64.0,
            "designVoltage": 51.20000076293945,
            "deviceName": "ATL3_3",
            "endOfDischarge": 47.0,
            "error": 0,
            "fullChargeCapacity": 55.5,
            "fwVersion": 17891328,
            "manufactureDate": 14740,
            "manufactureName": "ATL",
            "maxChargeCurrent": 32.0,
            "maxChargeTemperature": 45.0,
            "maxChargeVoltage": 56.79999923706055,
            "maxDischargeCurrent": 42.0,
            "minChargeTemperature": -10.0,
            "parallelCellCount": 0,
            "sensorCount": 2,
            "seriesCellCount": 0,
            "pcbVersion": 514,
            "protocolVersion": 0,
            "remainingCapacity": 11.600000381469727,
            "serialCode": "202<redacted>",
            "serialNo": 898,
            "soc": 20.899999618530273,
            "soh": 93.0,
            "status": 224,
            "temperatures": [
              26.600000381469727,
              27.299999237060547
            ],
            "voltage": 53.20000076293945,
            "voltageAvg30s": 53.107425689697266,
            "voltages": [],
            "warning": 0
          },
          "2": {
            "current": 8.600000381469727,
            "currentAvg30s": 8.550445556640625,
            "cycleCount": 364,
            "designCapacity": 64.0,
            "designVoltage": 51.20000076293945,
            "deviceName": "ATL3_3",
            "endOfDischarge": 47.0,
            "error": 0,
            "fullChargeCapacity": 57.400001525878906,
            "fwVersion": 17891328,
            "manufactureDate": 29974,
            "manufactureName": "ATL",
            "maxChargeCurrent": 32.0,
            "maxChargeTemperature": 45.0,
            "maxChargeVoltage": 56.79999923706055,
            "maxDischargeCurrent": 42.0,
            "minChargeTemperature": -10.0,
            "parallelCellCount": 0,
            "sensorCount": 2,
            "seriesCellCount": 0,
            "pcbVersion": 772,
            "protocolVersion": 0,
            "remainingCapacity": 12.399999618530273,
            "serialCode": "202<redacted>",
            "serialNo": 99,
            "soc": 21.700000762939453,
            "soh": 96.30000305175781,
            "status": 224,
            "temperatures": [
              31.700000762939453,
              31.899999618530273
            ],
            "voltage": 53.099998474121094,
            "voltageAvg30s": 53.09999465942383,
            "voltages": [],
            "warning": 0
          },
          "3": {
            "current": 8.600000381469727,
            "currentAvg30s": 8.599844932556152,
            "cycleCount": 364,
            "designCapacity": 64.0,
            "designVoltage": 51.20000076293945,
            "deviceName": "ATL3_3",
            "endOfDischarge": 47.0,
            "error": 0,
            "fullChargeCapacity": 57.099998474121094,
            "fwVersion": 17891328,
            "manufactureDate": 29974,
            "manufactureName": "ATL",
            "maxChargeCurrent": 32.0,
            "maxChargeTemperature": 45.0,
            "maxChargeVoltage": 56.79999923706055,
            "maxDischargeCurrent": 42.0,
            "minChargeTemperature": -10.0,
            "parallelCellCount": 0,
            "sensorCount": 2,
            "seriesCellCount": 0,
            "pcbVersion": 772,
            "protocolVersion": 0,
            "remainingCapacity": 12.199999809265137,
            "serialCode": "202<redacted>",
            "serialNo": 96,
            "soc": 21.5,
            "soh": 95.9000015258789,
            "status": 224,
            "temperatures": [
              32.0,
              31.799999237060547
            ],
            "voltage": 53.099998474121094,
            "voltageAvg30s": 53.099998474121094,
            "voltages": [],
            "warning": 0
          }
        },
        "designCapacity": 256.0,
        "deviceConnected": true,
        "deviceInService": false,
        "deviceName": "ATL_BAT",
        "deviceWorking": true,
        "eodVoltage": 47.0,
        "errorCode": 0,
        "fcc": 224.60000610351562,
        "index": 0,
        "maxBatVoltage": 56.79999923706055,
        "maxChargeCurrent": 128.0,
        "maxDischargeCurrent": 170.0,
        "maxDcbCellTemp": 32.0,
        "minDcbCellTemp": 26.600000381469727,
        "moduleVoltage": 53.20000076293945,
        "rc": 47.20000076293945,
        "readyForShutdown": true,
        "rsoc": 15.973549842834473,
        "rsocReal": 21.100000381469727,
        "statusCode": 0,
        "terminalVoltage": 53.20000076293945,
        "totalUseTime": 0,
        "totalDischargeTime": 0,
        "trainingMode": 0,
        "usuableCapacity": 211.12400817871094,
        "usuableRemainingCapacity": 33.7239990234375
      }
    ],
    "get_idle_periods": null,
    "get_power_settings": {
      "dischargeStartPower": 65,
      "maxChargePower": 4500,
      "maxDischargePower": 4500,
      "powerLimitsUsed": false,
      "powerSaveEnabled": true,
      "weatherForecastMode": 0,
      "weatherRegulatedChargeEnabled": false
    },
    "EMS_REQ_GET_MANUAL_CHARGE": {
      "exception": [
        "Traceback (most recent call last):\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_e3dc_rscp_local.py\", line 102, in sendRequest\n    receive = self._receive()\n              ^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_e3dc_rscp_local.py\", line 76, in _receive\n    decData = rscpDecode(self.encdec.decrypt(data))[0]\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_rscpLib.py\", line 263, in rscpDecode\n    return rscpDecode(rscpFrameDecode(data)[0])\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_rscpLib.py\", line 279, in rscpDecode\n    innerData, usedLength = rscpDecode(data[curByte:])\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_rscpLib.py\", line 270, in rscpDecode\n    strTag = getStrRscpTag(hexTag)\n             ^^^^^^^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_rscpTags.py\", line 3692, in getStrRscpTag\n    tag = RscpTag(tag)\n          ^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/enum.py\", line 757, in __call__\n    return cls.__new__(cls, value)\n           ^^^^^^^^^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/enum.py\", line 1171, in __new__\n    raise ve_exc\n",
        "ValueError: 16777278 is not a valid RscpTag\n",
        "\nDuring handling of the above exception, another exception occurred:\n\n",
        "Traceback (most recent call last):\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_e3dc.py\", line 227, in sendRequest\n    result = self.rscp.sendRequest(request)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_e3dc_rscp_local.py\", line 108, in sendRequest\n    raise CommunicationError\n",
        "e3dc._e3dc_rscp_local.CommunicationError\n",
        "\nDuring handling of the above exception, another exception occurred:\n\n",
        "Traceback (most recent call last):\n",
        "  File \"/config/custom_components/e3dc_rscp/diagnostics.py\", line 111, in _query_data_for_dump\n    tmp = call()\n          ^^^^^^\n",
        "  File \"/config/custom_components/e3dc_rscp/diagnostics.py\", line 80, in <lambda>\n    lambda: self.e3dc.sendRequestTag(\n            ^^^^^^^^^^^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_e3dc.py\", line 264, in sendRequestTag\n    return self.sendRequest(\n           ^^^^^^^^^^^^^^^^^\n",
        "  File \"/usr/local/lib/python3.12/site-packages/e3dc/_e3dc.py\", line 238, in sendRequest\n    raise SendError(\"Max retries reached\")\n",
        "e3dc._e3dc.SendError: Max retries reached\n"
      ]
    },
    "DB_REQ_HISTORY_DATA_DAY": [
      "DB_HISTORY_DATA_DAY",
      "Container",
      [
        [
          "DB_SUM_CONTAINER",
          "Container",
          [
            [
              "DB_GRAPH_INDEX",
              "Float32",
              -1.0
            ],
            [
              "DB_BAT_POWER_IN",
              "Float32",
              1099.0
            ],
            [
              "DB_BAT_POWER_OUT",
              "Float32",
              3256.0
            ],
            [
              "DB_DC_POWER",
              "Float32",
              3758.0
            ],
            [
              "DB_GRID_POWER_IN",
              "Float32",
              40.0
            ],
            [
              "DB_GRID_POWER_OUT",
              "Float32",
              1792.0
            ],
            [
              "DB_CONSUMPTION",
              "Float32",
              6914.0
            ],
            [
              "DB_PM_0_POWER",
              "Float32",
              0.0
            ],
            [
              "DB_PM_1_POWER",
              "Float32",
              0.0
            ],
            [
              "DB_BAT_CHARGE_LEVEL",
              "Float32",
              18.38800048828125
            ],
            [
              "DB_BAT_CYCLE_COUNT",
              "Int32",
              0
            ],
            [
              "DB_CONSUMED_PRODUCTION",
              "Float32",
              99.22510528564453
            ],
            [
              "DB_AUTARKY",
              "Float32",
              74.08157348632812
            ]
          ]
        ],
        [
          "DB_VALUE_CONTAINER",
          "Container",
          [
            [
              "DB_GRAPH_INDEX",
              "Float32",
              0.4374999403953552
            ],
            [
              "DB_BAT_POWER_IN",
              "Float32",
              104.66666412353516
            ],
            [
              "DB_BAT_POWER_OUT",
              "Float32",
              310.0952453613281
            ],
            [
              "DB_DC_POWER",
              "Float32",
              357.9047546386719
            ],
            [
              "DB_GRID_POWER_IN",
              "Float32",
              3.809523820877075
            ],
            [
              "DB_GRID_POWER_OUT",
              "Float32",
              170.6666717529297
            ],
            [
              "DB_CONSUMPTION",
              "Float32",
              658.4761962890625
            ],
            [
              "DB_PM_0_POWER",
              "Float32",
              0.0
            ],
            [
              "DB_PM_1_POWER",
              "Float32",
              0.0
            ],
            [
              "DB_BAT_CHARGE_LEVEL",
              "Float32",
              18.38800048828125
            ],
            [
              "DB_BAT_CYCLE_COUNT",
              "Int32",
              0
            ],
            [
              "DB_CONSUMED_PRODUCTION",
              "Float32",
              99.22510528564453
            ],
            [
              "DB_AUTARKY",
              "Float32",
              74.08157348632812
            ]
          ]
        ]
      ]
    ]
  }
}

Diagnostics dump

No response

torbennehmer commented 2 months ago

Hi @einmannlan, I fear that this is nothing I can really fix, the values seem just wrong, they don't even match the current Portal values if you take them as absolute values. Thus I can't even see a heuristic approach here to fix this, unfortunately. What you could do is run a template sensor above the one the integration delivers and build add a fixed offset to compensate. Additionally, you can open a support ticket at E3DC, in my eyes, that has to be fixed by them, whatever's wrong here. Cheers, Torben