[APP][Pro] SolarEdge + Growatt TCP modbus

Yes you can do it separate, but then you have to make a second request in between.

I think you will need a different nodejs modbus. This one crashes when it tries to read an undefined modbus register, that’s the ‘difficult’ part

As info, i have à solaredge inverter and now for a week this app doesn’t work. My connection is via Wi-Fi. After contacting the support from solaredge today they told me that the modbus tcp doesn’t work over Wi-Fi anymore after the latest firmware update…

really, also got some update 2 weeks back, all is still ok. Do they ship release notes on the firmware ?

don’t see it here https://www.solaredge.com/setapp-inverters-firmware
https://www.solaredge.com/service/firmware

maybe you need to enable it again.

Try to ping it with another modbus app, modbus tcp on ios works

Is the name of the app you use “tcp modbus” for iOS?

Yes

Hey, can you try this on node https://gist.github.com/biemond/87403d5c9a28ef89a6ec3e5142ec4c85

it should not care about wrong modbus entries and detect all the meters and batteries.
if this works for you I can continue plus I don’t keep the connection open because it is fast and it blocks other tests/ modbus programs.

my output

edwinbiemond@Edwins-MBP com.solaredge % node read.js
-------------------
Connected ...
Manufacturer: SolarEdge 
Model: SE4000H-RWS00BNO4
Version: 0004.0014.0109
Serial: 7---
Modbus ID: 1
SunSpec DID: 101
Current: 196
L1 Current: 196
L2 Current: 65535
L3 Current: 65535
Current Scale Factor: -2
L1 Voltage: 2324
L2 Voltage: 65535
L3 Voltage: 65535
L1-N Voltage: 65535
L2-N Voltage: 65535
L3-N Voltage: 65535
Voltage Scale Factor: -1
Power: 4337
Power Scale Factor: -1
Frequency: 49995
Frequency Scale Factor: -3
Power [Apparent]: 4558
Power [Apparent] Scale Factor: -1
Power [Reactive]: 14000
Power [Reactive] Scale Factor: -2
Power Factor: 9516
Power Factor Scale Factor: -2
Total Energy: 4145716
Total Energy Scale Factor: 0
DC Current: 10744
DC Current Scale Factor: -4
DC Voltage: 4098
DC Voltage Scale Factor: -1
DC Power: 4403
DC Power Scale Factor: -1
Temperature: 2975
Temperature Scale Factor: -2
Status: 4
Vendor Status: 0
RRCR State: 0
Active Power Limit: 100
cosphi: type not found FLOAT32
meter1 Modbus ID: 203
batt1 Modbus ID: 15
meter1 Modbus ID-Manufacturer: SolarEdge
meter1 Modbus ID-Model: SE-MTR-3Y-400V-A
meter1 Modbus ID-Mode: Export+Import
meter1 Modbus ID-Version: 74
meter1 Modbus ID-Serial: ----
meter1 Modbus ID-Modbus ID: 2
meter1 Modbus ID-SunSpec DID: 203
meter1 Modbus ID-Current: 19
meter1 Modbus ID-L1 Current: 0
meter1 Modbus ID-L2 Current: 3
meter1 Modbus ID-L3 Current: 15
meter1 Modbus ID-Current Scale Factor: -1
meter1 Modbus ID-L-N Voltage: 22972
meter1 Modbus ID-L1-N Voltage: 22972
meter1 Modbus ID-L2-N Voltage: 23206
meter1 Modbus ID-L3-N Voltage: 23198
meter1 Modbus ID-L-L Voltage: 0
meter1 Modbus ID-L1-l2 Voltage: 0
meter1 Modbus ID-L2-l3 Voltage: 0
meter1 Modbus ID-L3-l1 Voltage: 0
meter1 Modbus ID-Voltage Scale Factor: -2
meter1 Modbus ID-Frequency: 4999
meter1 Modbus ID-Frequency Scale Factor: -2
meter1 Modbus ID-Power: -25
meter1 Modbus ID-L1 Power: 0
meter1 Modbus ID-L2 Power: -41
meter1 Modbus ID-L3 Power: 16
meter1 Modbus ID-Power Scale Factor: 0
meter1 Modbus ID-Power (Apparent): 375
meter1 Modbus ID-L1 Power (Apparent): 5
meter1 Modbus ID-L2 Power (Apparent): 88
meter1 Modbus ID-L3 Power (Apparent): 290
meter1 Modbus ID-Power (Apparent) Scale Factor: 0
meter1 Modbus ID-Power (Reactive): -374
meter1 Modbus ID-L1 Power (Reactive): -5
meter1 Modbus ID-L2 Power (Reactive): -79
meter1 Modbus ID-L3 Power (Reactive): -289
meter1 Modbus ID-Power (Reactive) Scale Factor: 0
meter1 Modbus ID-Power Factor: 1573
meter1 Modbus ID-L1 Power Factor: 1630
meter1 Modbus ID-L2 Power Factor: 4259
meter1 Modbus ID-L3 Power Factor: -1169
meter1 Modbus ID-Power Factor Scale Factor: -2
meter1 Modbus ID-Total Exported Energy (Active): 14908
meter1 Modbus ID-L1 Exported Energy (Active): 0
meter1 Modbus ID-L2 Exported Energy (Active): 0
meter1 Modbus ID-L3 Exported Energy (Active): 24611
meter1 Modbus ID-Total Imported Energy (Active): 736132
meter1 Modbus ID-L1 Imported Energy (Active): 1648
meter1 Modbus ID-L2 Imported Energy (Active): 308850
meter1 Modbus ID-L3 Imported Energy (Active): 435335
meter1 Modbus ID-Energy (Active) Scale Factor: 0
meter1 Modbus ID-Total Exported Energy (Apparent): 0
meter1 Modbus ID-L1 Exported Energy (Apparent): 0
meter1 Modbus ID-L2 Exported Energy (Apparent): 0
meter1 Modbus ID-L3 Exported Energy (Apparent): 0
meter1 Modbus ID-Total Imported Energy (Apparent): 0
meter1 Modbus ID-L1 Imported Energy (Apparent): 0
meter1 Modbus ID-L2 Imported Energy (Apparent): 0
meter1 Modbus ID-L3 Imported Energy (Apparent): 0
meter1 Modbus ID-Energy (Apparent) Scale Factor: -32768
meter1 Modbus ID-Total Imported Energy (Reactive) Quadrant 1: 0
meter1 Modbus ID-L1 Imported Energy (Reactive) Quadrant 1: 0
meter1 Modbus ID-L2 Imported Energy (Reactive) Quadrant 1: 0
meter1 Modbus ID-L3 Imported Energy (Reactive) Quadrant 1: 0
meter1 Modbus ID-Total Imported Energy (Reactive) Quadrant 2: 0
meter1 Modbus ID-L1 Imported Energy (Reactive) Quadrant 2: 0
meter1 Modbus ID-L2 Imported Energy (Reactive) Quadrant 2: 0
meter1 Modbus ID-L3 Imported Energy (Reactive) Quadrant 2: 0
meter1 Modbus ID-Total Exported Energy (Reactive) Quadrant 3: 0
meter1 Modbus ID-L1 Exported Energy (Reactive) Quadrant 3: 0
meter1 Modbus ID-L2 Exported Energy (Reactive) Quadrant 3: 0
meter1 Modbus ID-L3 Exported Energy (Reactive) Quadrant 3: 0
meter1 Modbus ID-Total Exported Energy (Reactive) Quadrant 4: 0
meter1 Modbus ID-L1 Exported Energy (Reactive) Quadrant 4: 0
meter1 Modbus ID-L2 Exported Energy (Reactive) Quadrant 4: 0
meter1 Modbus ID-L3 Exported Energy (Reactive) Quadrant 4: 0
meter1 Modbus ID-Energy (Reactive) Scale Factor: -32768
batt1 Modbus ID-Manufacturer: LG
batt1 Modbus ID-Model: R15563P3SSEG12107161013
batt1 Modbus ID-Version: DCDC 7.4.8 BMS 1.7.0.1
batt1 Modbus ID-Serial: -----
batt1 Modbus ID-Modbus ID: 3840
batt1 Modbus ID-SunSpec DID: 0
batt1 Modbus ID-Rated Energy: 9800
batt1 Modbus ID-Maximum Charge Continuous Power: 5000
batt1 Modbus ID-Maximum Discharge Continuous Power: 5000
batt1 Modbus ID-Maximum Charge Peak Power: 5000
batt1 Modbus ID-Maximum Discharge Peak Power: 5000
batt1 Modbus ID-Average Temperature: 15.899999618530273
batt1 Modbus ID-Maximum Temperature: 0
batt1 Modbus ID-Instantaneous Voltage: 411.29998779296875
batt1 Modbus ID-Instantaneous Current: -0.5470459461212158
batt1 Modbus ID-Instantaneous Power: -225
batt1 Modbus ID-Total Exported Energy: 57366
batt1 Modbus ID-Total Imported Energy: 32512
batt1 Modbus ID-Maximum Energy: 9800
batt1 Modbus ID-Available Energy: 9310
batt1 Modbus ID-State of Health [SOH): 100
batt1 Modbus ID-State of Energy [SOE): 68.9903335571289
batt1 Modbus ID-Status: 1024
batt1 Modbus ID-Internal Status: 768
batt1 Modbus ID-Event Log: 0
batt1 Modbus ID-Internal Event Log: 0
edwinbiemond@Edwins-MBP com.solaredge % 

hi, works for me.
My output:

Connected ...
Manufacturer: SolarEdge 
Model: ------
Version: 0003.2724
Serial: 731E3F25
Modbus ID: 1
SunSpec DID: 101
Current: 93
L1 Current: 93
L2 Current: 65535
L3 Current: 65535
Current Scale Factor: -2
L1 Voltage: 2388
L2 Voltage: 65535
L3 Voltage: 65535
L1-N Voltage: 65535
L2-N Voltage: 65535
L3-N Voltage: 65535
Voltage Scale Factor: -1
Power: 14221
Power Scale Factor: -2
Frequency: 50011
Frequency Scale Factor: -3
Power [Apparent]: 22402
Power [Apparent] Scale Factor: -2
Power [Reactive]: 17310
Power [Reactive] Scale Factor: -2
Power Factor: 6348
Power Factor Scale Factor: -2
Total Energy: 4222849
Total Energy Scale Factor: 0
DC Current: 3670
DC Current Scale Factor: -4
DC Voltage: 3850
DC Voltage Scale Factor: -1
DC Power: 14133
DC Power Scale Factor: -2
Temperature: 3060
Temperature Scale Factor: -2
Status: 4
Vendor Status: 0
RRCR State: 0
Active Power Limit: 100
cosphi: type not found FLOAT32
meter1 Modbus ID: 203
batt1 Modbus ID: 15
batt2 Modbus ID: 15
meter1 Modbus ID-Manufacturer: WattNode
meter1 Modbus ID-Model: WND-3Y-400-MB
meter1 Modbus ID-Mode: Export+Import
meter1 Modbus ID-Version: 31
meter1 Modbus ID-Serial: 5029833
meter1 Modbus ID-Modbus ID: 2
meter1 Modbus ID-SunSpec DID: 203
meter1 Modbus ID-Current: 22
meter1 Modbus ID-L1 Current: 22
meter1 Modbus ID-L2 Current: 0
meter1 Modbus ID-L3 Current: 0
meter1 Modbus ID-Current Scale Factor: -1
meter1 Modbus ID-L-N Voltage: 23855
meter1 Modbus ID-L1-N Voltage: 23855
meter1 Modbus ID-L2-N Voltage: 0
meter1 Modbus ID-L3-N Voltage: 0
meter1 Modbus ID-L-L Voltage: 23650
meter1 Modbus ID-L1-l2 Voltage: 23637
meter1 Modbus ID-L2-l3 Voltage: 0
meter1 Modbus ID-L3-l1 Voltage: 23664
meter1 Modbus ID-Voltage Scale Factor: -2
meter1 Modbus ID-Frequency: 5000
meter1 Modbus ID-Frequency Scale Factor: -2
meter1 Modbus ID-Power: -447
meter1 Modbus ID-L1 Power: -447
meter1 Modbus ID-L2 Power: 0
meter1 Modbus ID-L3 Power: 0
meter1 Modbus ID-Power Scale Factor: 0
meter1 Modbus ID-Power (Apparent): 490
meter1 Modbus ID-L1 Power (Apparent): 490
meter1 Modbus ID-L2 Power (Apparent): 0
meter1 Modbus ID-L3 Power (Apparent): 0
meter1 Modbus ID-Power (Apparent) Scale Factor: 0
meter1 Modbus ID-Power (Reactive): -199
meter1 Modbus ID-L1 Power (Reactive): -199
meter1 Modbus ID-L2 Power (Reactive): 0
meter1 Modbus ID-L3 Power (Reactive): 0
meter1 Modbus ID-Power (Reactive) Scale Factor: 0
meter1 Modbus ID-Power Factor: 8047
meter1 Modbus ID-L1 Power Factor: 8047
meter1 Modbus ID-L2 Power Factor: 0
meter1 Modbus ID-L3 Power Factor: 0
meter1 Modbus ID-Power Factor Scale Factor: -2
meter1 Modbus ID-Total Exported Energy (Active): 7920313
meter1 Modbus ID-L1 Exported Energy (Active): 7920313
meter1 Modbus ID-L2 Exported Energy (Active): 0
meter1 Modbus ID-L3 Exported Energy (Active): 0
meter1 Modbus ID-Total Imported Energy (Active): 8724708
meter1 Modbus ID-L1 Imported Energy (Active): 8724709
meter1 Modbus ID-L2 Imported Energy (Active): 0
meter1 Modbus ID-L3 Imported Energy (Active): 0
meter1 Modbus ID-Energy (Active) Scale Factor: 0
meter1 Modbus ID-Total Exported Energy (Apparent): 0
meter1 Modbus ID-L1 Exported Energy (Apparent): 0
meter1 Modbus ID-L2 Exported Energy (Apparent): 0
meter1 Modbus ID-L3 Exported Energy (Apparent): 0
meter1 Modbus ID-Total Imported Energy (Apparent): 0
meter1 Modbus ID-L1 Imported Energy (Apparent): 0
meter1 Modbus ID-L2 Imported Energy (Apparent): 0
meter1 Modbus ID-L3 Imported Energy (Apparent): 0
meter1 Modbus ID-Energy (Apparent) Scale Factor: -32768
meter1 Modbus ID-Total Imported Energy (Reactive) Quadrant 1: 0
meter1 Modbus ID-L1 Imported Energy (Reactive) Quadrant 1: 0
meter1 Modbus ID-L2 Imported Energy (Reactive) Quadrant 1: 0
meter1 Modbus ID-L3 Imported Energy (Reactive) Quadrant 1: 0
meter1 Modbus ID-Total Imported Energy (Reactive) Quadrant 2: 0
meter1 Modbus ID-L1 Imported Energy (Reactive) Quadrant 2: 0
meter1 Modbus ID-L2 Imported Energy (Reactive) Quadrant 2: 0
meter1 Modbus ID-L3 Imported Energy (Reactive) Quadrant 2: 0
meter1 Modbus ID-Total Exported Energy (Reactive) Quadrant 3: 0
meter1 Modbus ID-L1 Exported Energy (Reactive) Quadrant 3: 0
meter1 Modbus ID-L2 Exported Energy (Reactive) Quadrant 3: 0
meter1 Modbus ID-L3 Exported Energy (Reactive) Quadrant 3: 0
meter1 Modbus ID-Total Exported Energy (Reactive) Quadrant 4: 0
meter1 Modbus ID-L1 Exported Energy (Reactive) Quadrant 4: 0
meter1 Modbus ID-L2 Exported Energy (Reactive) Quadrant 4: 0
meter1 Modbus ID-L3 Exported Energy (Reactive) Quadrant 4: 0
meter1 Modbus ID-Energy (Reactive) Scale Factor: -32768
batt1 Modbus ID-Manufacturer: LG2005291107
batt1 Modbus ID-Model: R15563P3SSEG12005291107
batt1 Modbus ID-Version: DCDC 7.5.6 BMS 1.9.6.0
batt1 Modbus ID-Serial: 2005291107
batt1 Modbus ID-Modbus ID: 3840
batt1 Modbus ID-SunSpec DID: 0
batt1 Modbus ID-Rated Energy: 9800
batt1 Modbus ID-Maximum Charge Continuous Power: 5000
batt1 Modbus ID-Maximum Discharge Continuous Power: 5000
batt1 Modbus ID-Maximum Charge Peak Power: 5000
batt1 Modbus ID-Maximum Discharge Peak Power: 4525
batt1 Modbus ID-Average Temperature: 14.399999618530273
batt1 Modbus ID-Maximum Temperature: 0
batt1 Modbus ID-Instantaneous Voltage: 382.70001220703125
batt1 Modbus ID-Instantaneous Current: 0
batt1 Modbus ID-Instantaneous Power: 0
batt1 Modbus ID-Total Exported Energy: 0
batt1 Modbus ID-Total Imported Energy: 0
batt1 Modbus ID-Maximum Energy: 9800
batt1 Modbus ID-Available Energy: 9263
batt1 Modbus ID-State of Health [SOH): 99.5
batt1 Modbus ID-State of Energy [SOE): 8.992766380310059
batt1 Modbus ID-Status: 1536
batt1 Modbus ID-Internal Status: 768
batt1 Modbus ID-Event Log: 0
batt1 Modbus ID-Internal Event Log: 0
batt2 Modbus ID-Manufacturer: ����
batt2 Modbus ID-Model: 
batt2 Modbus ID-Version: 
batt2 Modbus ID-Serial: 
batt2 Modbus ID-Modbus ID: 3840
batt2 Modbus ID-SunSpec DID: 0
batt2 Modbus ID-Rated Energy: -3.4028234663852886e+38
batt2 Modbus ID-Maximum Charge Continuous Power: -3.4028234663852886e+38
batt2 Modbus ID-Maximum Discharge Continuous Power: -3.4028234663852886e+38
batt2 Modbus ID-Maximum Charge Peak Power: -3.4028234663852886e+38
batt2 Modbus ID-Maximum Discharge Peak Power: -3.4028234663852886e+38
batt2 Modbus ID-Average Temperature: -3.4028234663852886e+38
batt2 Modbus ID-Maximum Temperature: 0
batt2 Modbus ID-Instantaneous Voltage: -3.4028234663852886e+38
batt2 Modbus ID-Instantaneous Current: -3.4028234663852886e+38
batt2 Modbus ID-Instantaneous Power: 0
batt2 Modbus ID-Total Exported Energy: 0
batt2 Modbus ID-Total Imported Energy: 0
batt2 Modbus ID-Maximum Energy: -3.4028234663852886e+38
batt2 Modbus ID-Available Energy: -3.4028234663852886e+38
batt2 Modbus ID-State of Health [SOH): -3.4028234663852886e+38
batt2 Modbus ID-State of Energy [SOE): -3.4028234663852886e+38
batt2 Modbus ID-Status: 1792
batt2 Modbus ID-Internal Status: 0
batt2 Modbus ID-Event Log: 0
batt2 Modbus ID-Internal Event Log: 0

But as you can see, there are different modbus registers I guess.
My firmware of battery and BMS are newer

thanks so you have only 1 batt or not, for me it gives me 255 on the 2nd also a different meter .

but nice now I can compare it.

not much difference. this is doable.

1 HD Wave 4000 with display
1 meter
1 battery LG 9.8

nice, also got the storage flows working, will go for

  • Maximize self-consumption
  • Time of Use
  • Charge from PV+AC
  • Maximize export

in 1 flow actions will handle the above.

I think will start over with homey sdk3, use typescript and re-use your code.

so currently you cannot use homey app and something else. homey app will lock modbus. I am making some changes so will do a poll every x seconds and close the connection.

but I see 1502 port so this is tcp and it should work over ethernet.

I’ve been testing everything, restart inverter, disable modbus tcp and enable again in inverter. Remove device, reinstall app… worked like a charm before installing my load balancer and new software was downloaded to the inverter according to my electrician. I’m not an programming expert unfortunately, out of ideas…
The inverter is connected via Wi-Fi
You don’t see anything strange in my setup?

looks ok, but remove homey devices and restart app, remove load balancer , check ip of invertor and can it be on your wifi you did something that other devices cannot do something on others . some firewall rule.

I see modbus on 1502 port so this is networking and only used by networking. so I guess this is some routing or firewall router issue.

I am using the cable , not wifi and made sure firewall is ok.

I have google wifi mesh. But no change there compared to when it worked before… Strange…
Can it be any protocol for communication in the meter setup in the inverter that has changed?

maybe they changed the device ID.

In the test version of the Homey Solaredge App you can change the device ID if you add your inverter as ‘multiple inverter’
default is 1