softwarecrash / Solar2MQTT

ESP8266 based WiFi and MQTT interface for MPPT Inverters that use watchpower
Other
133 stars 31 forks source link

[Bug]: PV2 not monitored on Daxtromn AGH-10.2KW (analog VICTOR NM-MAX-10.2KWs) #116

Open fastvd opened 1 week ago

fastvd commented 1 week ago

Is there an existing issue for this?

Used Hardware?

Wemos D1 Mini

What happened?

Greetings. thanks for the great program…. I have a VICTOR NM-MAX-10.2KWs inverter, it works based on the PI30 protocol. this inverter has 2 PV...the problem is that Solar2Mqtt reads only PV1...it also has a wifi dongle that shows data in the smartESS application, there is data from PV1 and PV2...so the question is how to read or OVERALL solar generation , or separately PV1 and PV2

Screenshots / Fotos

изображение_viber_2024-09-11_13-03-15-742 изображение_viber_2024-09-11_13-03-15-780 image

Steps To Reproduce

No response

Version

1.x.x and above

Relevant livejson output

{"EspData":{"Device_name":"Solar2MQTT","ESP_VCC":3.074,"Wifi_RSSI":-38,"sw_version":"1.1.7","Free_Heap":23704,"HEAP_Fragmentation":8,"json_memory_usage":942,"json_capacity":2048,"runtime":73,"ws_clients":0,"detect_protocol":2},"DeviceData":{"Device_Model":"VMII-NXPW5KW","Protocol_ID":"PI30"},"LiveData":{"AC_in_Voltage":244.2,"AC_in_Frequenz":49.9,"AC_out_Voltage":220.3,"AC_out_Frequenz":49.9,"AC_out_VA":4280,"AC_out_Watt":4265,"AC_out_percent":46,"Inverter_Bus_Voltage":465,"Battery_Voltage":55.4,"Battery_Charge_Current":27,"Battery_Percent":72,"Inverter_Bus_Temperature":42,"PV_Input_Current":8.2,"PV_Input_Voltage":414.7,"Battery_SCC_Volt":0,"Battery_Discharge_Current":0,"Status_Flag":10110,"Battery_voltage_offset_fans_on":0,"EEPROM_Version":0,"PV_Charging_Power":3336,"Device_Status":110,"Battery_Load":27,"PV_Input_Power":3312,"Inverter_Operation_Mode":"Battery","Time_until_absorb_charge":1,"Time_until_float_charge":0,"Tracker_temperature":0,"Inverter_temperature":32,"Battery_temperature":17,"Transformer_temperature":42,"Fan_speed":100,"Inverter_charge_state":"Float"}}

What browsers are you seeing the problem on?

Chrome

fastvd commented 1 week ago

???

softwarecrash commented 6 days ago

hello, without the communication protocol its not possible to implement more than one pv string

fastvd commented 6 days ago

hello, without the communication protocol its not possible to implement more than one pv string

366374997-a11ff0c4-6d74-49fe-b353-d42ec909f3ef

fastvd commented 6 days ago

!!! PI30 !!! it was visible even on the 1st screen

softwarecrash commented 6 days ago

Stop using hordening Symbols, its Like angry...

So the PI30 Protocol is Not one single Protocol, it includes so i know more than 10 subversions, and much more variants, so for that what you need, i need a complete Protocol Snipet and Datasheet for it.

That all is Not easy as sound

fastvd commented 6 days ago

I'm sorry if you thought I was angry and wanted to offend someone) in fact, I just want to understand how my inverter works and read all the data I need. now to the point...then how do I find out which protocol I have? maybe there are some sniffers or just firmware that polls different protocols or take Wireshark and scan my existing wifi dongle?

softwarecrash commented 5 days ago

have the device a USB port? when yes, you can connect it with a PC, it will emulate a serial port, so you can use watchpower or solarpower software for monitoring and settings of the device, when this will work, you can enable the debug function of this software, this will write a bunch of log files, that what i need to see what the device talks.

for explaining, take a look at the documents here: https://github.com/softwarecrash/Solar2MQTT/tree/master/Protocol

there are more than one protocol of the PI30, and many different versions of command and answer strings, so we need to find out how to ask your device for the second PV string data. in some protocols are a second string implemented, and in my firmware a function try to get this data, so its possible that your device need another request or send a different answer.

fastvd commented 5 days ago

have the device a USB port? when yes, you can connect it with a PC, it will emulate a serial port, so you can use watchpower or solarpower software for monitoring and settings of the device, when this will work, you can enable the debug function of this software, this will write a bunch of log files, that what i need to see what the device talks.

for explaining, take a look at the documents here: https://github.com/softwarecrash/Solar2MQTT/tree/master/Protocol

there are more than one protocol of the PI30, and many different versions of command and answer strings, so we need to find out how to ask your device for the second PV string data. in some protocols are a second string implemented, and in my firmware a function try to get this data, so its possible that your device need another request or send a different answer.

зображення_viber_2024-09-18_19-25-56-835 yes, I have usb-rs232 and I can read and change data... but there is no info on the protocol... and I don't see where in the menu you can enable debugging...

fastvd commented 5 days ago

according to the link you gave, there are simply descriptions of various protocols, but there are no instructions on how to separate it... maybe I'm not looking there?

softwarecrash commented 5 days ago

The debug is Hidden, right click on the Icon in the taskbar and select enable debug

all-solutions commented 5 days ago

yes, I have usb-rs232 and I can read and change data... but there is no info on the protocol... and I don't see where in the menu you can enable debugging...

You can enable it just in the tray icon (near the clock on your taskbar). image

fastvd commented 5 days ago

I found a program similar to watchpower.. this one http://www.multisibcontrol.net/ it looks like a lot more debug functions image image

fastvd commented 5 days ago

yes, I have usb-rs232 and I can read and change data... but there is no info on the protocol... and I don't see where in the menu you can enable debugging...

You can enable it just in the tray icon (near the clock on your taskbar). image

image I don't have debug mode ((((

fastvd commented 5 days ago

but with MultiSIBcontrol I can directly run different commands... image

all-solutions commented 5 days ago

But QPIGS2 -> NAK means, this command is unkown by your Inverter... hm....

fastvd commented 5 days ago

this app also doesn't see PV2(((

I started QPIGS2 a few days ago directly from mqtt...but I didn't get a response then...the only thing I see is PV2 - smartESS via wifi dongle зображення_viber_2024-09-18_19-58-44-979

fastvd commented 5 days ago

give links to watchpower where there is a debug mode

all-solutions commented 5 days ago

You are in the app in the console. What you enter there is sent directly to the inverter. If the QPIGS2 does not understand, then the data must come from somewhere else. And without having such a device here, this will be difficult or even impossible to find out.

all-solutions commented 5 days ago

give links to watchpower where there is a debug mode

https://www.mppsolar.com/v3/download/ under Monitoring Software

fastvd commented 5 days ago

give links to watchpower where there is a debug mode

https://www.mppsolar.com/v3/download/ under Monitoring Software

image

I downloaded a newer version, a floating window appeared, where the debug mode is checked immediately, the folder where the logs should be created opens immediately, but the logs themselves do not appear (((maybe it takes some time?

all-solutions commented 5 days ago

maybe it takes some time?

yes

fastvd commented 5 days ago

25 minutes = 0 in debug(((

softwarecrash commented 5 days ago

Disconnect and reconnext the device

fastvd commented 5 days ago

Screenshot_20240919_092518_Home Assistant

fastvd commented 5 days ago

https://github.com/odya/esphome-powmr-hybrid-inverter

fastvd commented 5 days ago
softwarecrash commented 4 days ago
  • you need this

  • platform: modbus_controller modbus_controller_id: smg_inverter name: "PV Voltage2" id: pv_voltage2 address: 4563 register_type: holding value_type: U_WORD unit_of_measurement: "V" device_class: voltage state_class: measurement accuracy_decimals: 1 lambda: |- return swapBytes(x); filters:

    • multiply: 0.1
  • platform: modbus_controller modbus_controller_id: smg_inverter name: "PV Power2" id: pv_power2 address: 4564 register_type: holding value_type: U_WORD unit_of_measurement: "W" device_class: power state_class: measurement accuracy_decimals: 1 lambda: |- return swapBytes(x);

thats complete wrong.... this is modbus with registers! my software read rs232 serial with qpigs commands, modbus not supprted atm

fastvd commented 4 days ago

I understand that you read the data in a different way...I just showed how I solved my problem and maybe you will take something useful for yourself to expand the functionality of your wonderful product!

fastvd commented 4 days ago

image this piece of code I pasted into the author's project to read PV2

fastvd commented 4 days ago

the data I see in HA matches what I see physically on the inverter display! this is what i needed!

softwarecrash commented 4 days ago

modbus register support are planed, but need a lot of time that i dont have yet

fastvd commented 4 days ago

anyway, thanks for your help and your time!