Skip to content

[Bug]: Wrong solar amp / power calculation after upgtrate from esp8266 to esp32 (D1 Mini) #6

@Poerk

Description

@Poerk

Checks

  • I searched existing issues and did not find the same bug report.
  • I can reproduce the problem with a current release or current development build.

Firmware Version

2.0.1

Build Variant

esp32 d1 mini

Device Model

EDECOA EM-402A

Detected Protocol

PI30

Problem Summary

After upgrading i noteced the solar power is way to high for my 2 panel setup. (total 900Wp) Somtimes more than 2kW.

I think the power calculation is using the wroing current parameter. It is using the solar charge curren to battery in stead of the current from the solar panels. Please cee attached screenshot

Image

in this example the power into the battery is aprox. (26.8V*13A) 348Watt. I expect a current around 6 Amps by a voltage of 62V (at least 350W)

solar2mqtt-debug (1).txt

Steps to Reproduce

just open the url.

Expected Behavior

solar voltage * solar current

Actual Behavior

solar volatage * battery charge current (from solar) (no net connected)

Relevant Logs or Debug Report

Solar2MQTT Debug Report

[RawData]
QPI="PI30"
QSVFW2=""
QPIRI="230.0 18.2 230.0 50.0 18.2 4200 3500 24.0 23.0 23.0 29.2 29.1 2 10 110 1 0 2 2 01 0 0 27.0 0 1"
QMD=""
QPIBI=""
QMN="NOA"
QFLAG="EkxDabjuvyz"
Q1="07280 00001 01 01 10 000 021 023 000 00 00 000 0030 0413 0000 00.00 12"
QPIGS="246.5 50.0 246.5 50.0 0049 0000 001 442 26.80 026 074 0026 0017 063.6 00.00 00000 00010111 00 00 00417 010"
QPIGS2="NOA"
QMOD="L"
QT=""
QET="NOA"
QEY=""
QEM=""
QED=""
QLT=""
QLY=""
QLM=""
QLD=""
QALL="NOA"
QPIWS="00000000000000000000000000000000"
CommandAnswer=""

[EspData]
detect_raw_qpi="PI30"
Device_name="Solar2MQTT"
Wifi_RSSI=-63
sw_version="2.0.1"
Free_Heap=151500
HEAP_Fragmentation=46
runtime=160842
detect_protocol=2
detect_protocol_name="PI30"
detect_protocol_raw_only=false
detect_protocol_unknown=false
IP="192.168.68.194"
WiFiStatus=true
MQTTStatus=true
Ethernet_Active=false
Network_Type="WiFi"
AP_Mode=false
Inverter_Connected=true
Simulation_Active=false
Simulation_Mode=""

[DeviceData]
Protocol_ID="PI30"
Buzzer_Enabled=false
Overload_Bypass_Enabled=false
Power_Saving_Enabled=false
LCD_Reset_To_Default_Enabled=true
Solar_Feed_To_Grid_Enabled=false
Overload_Restart_Enabled=false
Over_Temperature_Restart_Enabled=false
LCD_Backlight_Enabled=true
Primary_Source_Interrupt_Alarm_Enabled=false
Record_Fault_Code_Enabled=false
AC_In_Rating_Voltage=230
AC_In_Rating_Current=18.2
AC_Out_Rating_Voltage=230
AC_Out_Rating_Frequency=50
AC_Out_Rating_Current=18.2
AC_Out_Rating_Apparent_Power=4200
AC_Out_Rating_Active_Power=3500
Battery_Rating_Voltage=24
Battery_Recharge_Voltage=23
Battery_Under_Voltage=23
Battery_Bulk_Voltage=29.2
Battery_Float_Voltage=29.1
Battery_Type="User"
Current_Max_AC_Charging_Current=10
Current_Max_Charging_Current=110
Input_Voltage_Range="UPS"
Output_Source_Priority="Utility first"
Charger_Source_Priority="Solar + Utility"
Parallel_Max_Num=2
Machine_Type="Off Grid"
Topology="Transformerless"
Output_Mode="Single module"
Battery_Redischarge_Voltage=27
PV_OK_Condition_For_Parallel=0
PV_Power_Balance=1

[LiveData]
Time_Until_Absorb_Charge=7280
Time_Until_Float_Charge=1
Tracker_Temperature=0
Inverter_Temperature=21
Battery_Temperature=23
Transformer_Temperature=0
Fan_Lock_Status=0
Fan_Speed=30
Inverter_Charge_State="Absorb"
Inverter_Operation_Mode="Line"
AC_In_Voltage=247.1
AC_In_Frequency=50
AC_Out_Voltage=247.1
AC_Out_Frequency=50
AC_Out_VA=24
AC_Out_Watt=0
AC_Out_Percent=0
Inverter_Bus_Voltage=441
Battery_Voltage=26.8
Battery_Charge_Current=26
Battery_Percent=74
Inverter_Bus_Temperature=26
PV_Input_Current=17
PV_Input_Voltage=62.5
Battery_SCC_Volt=0
Battery_Discharge_Current=0
Status_Flag=10111
Battery_Load=26
PV_Input_Power=1063

[Status]
wifiConnected=true
mqttConnected=true
inverterConnected=true
ethActive=false
apMode=false
networkType="WiFi"
protocol="PI30"
protocolRawOnly=false
protocolUnknown=false
ip="192.168.68.194"
loopbackRunning=false
loopbackDone=false
loopbackOk=false
loopbackMessage=""
simulationEnabled=false
simulationProtocol=""

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions