This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Huawei solar inverter
#13
(09.10.2023, 20:32)KoBra Wrote:
(28.06.2023, 15:55)fleeceable Wrote:
(25.06.2023, 12:42)123einerlei Wrote:
(28.03.2023, 18:32)fleeceable Wrote: You need dongle to communicate with Modbus TCP.
I have integrated two SUN2000. First unit communication is not the best (sometimes it gonna show wrong values or zero but controlling commands work). Haven't diagnosed that if problem is in the network, dongle or inverter. With other one all works like a charm. Make sure that dongle FW is latest.
Here is register list for SUN2000.
https://javierin.com/wp-content/uploads/...itions.pdf

Hello fleeceable,
Can you please share your modbus.json for the Huawei Sun2000 and battery system?
I will receive my PV system in a few weeks and would like to integrate it into my Schneider Homeylink.
Unfortunately I have never worked with Modbus.

Hi!

First I tried to use modbus template but it didn't worked out. I moved to scripting with special delays for reading and writing. On second project delays was not needed (maybe dongle firmware update has solved these problems) so you can try to use that template what I created. 
I add two files template and esf file (please change "Huawei Sun2000 Group Addresses.json" to "Huawei Sun2000 Group Addresses.esf" - can't upload esf file in here) so you can import file in Utilities -> import ESF file. Then variables is created automatically. Change group address as you need...
Also you can try to edit/remove "read_delay": 1 in json file so maybe it's not needed now.

If you have any problems, let me know.

Hi Fleecable, 

i think there is something wrong in your profile as you did not specify the bus_datatype, just the datatype

further i see you mis also some datapoints of the list from Huawei, i would add all and just map the ones you need

further you get for example grid voltage in as 5000 but this must be devided to 50.00 Hz

If i have some more time i will tweak it.
Code:
    {
  "manufacturer": "Huawei",
  "description": "HuaweiSun2000",
  "mapping": [
    {
      "name": "Inverter Model ID",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 30070,
      "read_delay": 1
    },
    {
      "name": "Inverter State",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32000,
      "read_delay": 1
    },
    {
      "name": "Alarm 1",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32008,
      "read_delay": 1
    },
    {
      "name": "Alarm 2",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32009,
      "read_delay": 1
    },
    {
      "name": "Alarm 3",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32010,
      "read_delay": 1
    },
    {
      "name": "Inverter Phase A voltage",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32069,
      "read_delay": 1
    },
    {
      "name": "Inverter Phase B voltage",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32070,
      "read_delay": 1
    },
    {
      "name": "Inverter Phase C voltage",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32071,
      "read_delay": 1
    },
    {
      "name": "Inverter Active Power",
      "bus_datatype": "int32",
      "type": "register",
      "address": 32080,
      "read_delay": 1
    },
    {
      "name": "Inverter Grid Freaquency",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32085,
      "read_delay": 1
    },
    {
      "name": "Inverter Status",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32089,
      "read_delay": 1
    },
    {
      "name": "Inverter Fault Code",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 32090,
      "read_delay": 1
    },
    {
      "name": "Power Meter Collection - Active Power",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37113,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Running Status",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37000,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Charge And Discharge Power",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37001,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Bus Voltage",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37003,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - State Of Capacity",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37004,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Working Mode",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37006,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Rated Charge Power",
      "bus_datatype": "uint32",
      "type": "register",
      "address": 37007,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Rated Discharge Power",
      "bus_datatype": "uint32",
      "type": "register",
      "address": 37009,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Fault ID",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37014,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Current Day Charge Capacity",
      "bus_datatype": "uint32",
      "type": "register",
      "address": 37015,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Current Day Discharge Capacity",
      "bus_datatype": "uint32",
      "type": "register",
      "address": 37017,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Bus Current",
      "bus_datatype": "int16",
      "type": "register",
      "address": 37021,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Battery Temperature",
      "bus_datatype": "int16",
      "type": "register",
      "address": 37022,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit - Remaining charge/discharge time",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37025,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit 2 - State Of Capacity",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37738,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit 2 - Running Status",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37741,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit 2 - Charge And Discharge Power",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37743,
      "read_delay": 1
    },
    {
      "name": "Energy Storage Unit 2 - Battery Temperature",
      "bus_datatype": "int16",
      "type": "register",
      "address": 37752,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - State Of Capacity",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37760,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Running Status",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37762,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Charge Or Discharge power",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37765,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Current Day Charge Capacity",
      "bus_datatype": "uint32",
      "type": "register",
      "address": 37784,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Current Day Discharge Capacity",
      "bus_datatype": "uint32",
      "type": "register",
      "address": 37786,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Maximum Charging Power",
      "bus_datatype": "uint32",
      "type": "register",
      "address": 47075,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Maximum Discharging Power",
      "bus_datatype": "uint32",
      "type": "register",
      "address": 47077,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Working Setting Mode SETTINGS",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 47086,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Charge From Grid Function SETTINGS",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 47087,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Grid Charge Cutoff SOC SETTINGS",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 47088,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Power Of Charge From Grid SETTINGS",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 47242,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Maximum Power Of Charge From Grid SETTINGS",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 47244,
      "read_delay": 1
    },
    {
      "name": "Energy Storage - Time Of Use Chargin And Discharging Periods SETTINGS",
      "bus_datatype": "uint16",
      "type": "register",
      "read_count:": 43,
      "address": 47255,
      "read_delay": 1
    },
    {
      "name": "Electricity Meter Status",
      "bus_datatype": "uint16",
      "type": "register",
      "address": 37100,
      "read_delay": 1
    },
    {
      "name": "Electricity Meter Grid Voltage A Phase",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37101
    },
    {
      "name": "Electricity Meter Grid Voltage B Phase",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37103
    },
    {
      "name": "Electricity Meter Grid Voltage C Phase",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37105
    },
    {
      "name": "Electricity Meter Active Power",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37113
    },
    {
      "name": "Electricity Meter Frequency",
      "bus_datatype": "int16",
      "type": "register",
      "address": 37118,
      "value_multiplier": 0.01,
      "units": "Hz"
    },
    {
      "name": "Electricity Meter Positive Active Electricity",
      "bus_datatype": "int32",
      "type": "register",
      "address": 37119
    },
    {
      "name": "Electricity Meter Reverse Active Power",
      "bus_datatype": "int16",
      "type": "register",
      "address": 37121
    }
  ]
}
Hi,
May I ask you how have you read the modbus? RTU or TCP? Which is the dongle or inverter firmaware version?
So I can help you to write a correct json.
Best regards Cristian
Reply


Messages In This Thread
Huawei solar inverter - by CristianAgata - 08.02.2022, 18:30
RE: Huawei solar inverter - by admin - 16.02.2022, 12:43
RE: Huawei solar inverter - by CristianAgata - 16.02.2022, 12:48
RE: Huawei solar inverter - by KoBra - 26.03.2023, 14:50
RE: Huawei solar inverter - by CristianAgata - 27.03.2023, 17:04
RE: Huawei solar inverter - by fleeceable - 28.03.2023, 18:32
RE: Huawei solar inverter - by CristianAgata - 28.03.2023, 18:57
RE: Huawei solar inverter - by 123einerlei - 25.06.2023, 12:42
RE: Huawei solar inverter - by fleeceable - 28.06.2023, 15:55
RE: Huawei solar inverter - by KoBra - 09.10.2023, 20:32
RE: Huawei solar inverter - by CristianAgata - 09.10.2023, 20:44
RE: Huawei solar inverter - by fleeceable - 28.03.2023, 19:19
RE: Huawei solar inverter - by CristianAgata - 28.03.2023, 19:24
RE: Huawei solar inverter - by KoBra - 09.10.2023, 21:06
RE: Huawei solar inverter - by CristianAgata - 10.10.2023, 04:02
RE: Huawei solar inverter - by domotiqa - 21.03.2024, 15:46

Forum Jump: