uni-meter icon indicating copy to clipboard operation
uni-meter copied to clipboard

Feature Request: Solaredge meter / Modbus

Open tmb80c opened this issue 1 year ago • 35 comments

Would be great if the uni-meter can also read from solaredge meter in the near future.

Solaredge implemented the SunSpec Protocol.

Codes are published here, please search "SolarEdge Inverters - SunSpec Logging - Technical Note"

tmb80c avatar Mar 18 '25 11:03 tmb80c

Hi, as reading the feature request and having a solaredge system also: I read solaredge meter via modbus into my iobroker system and also a smartmeter/volkszähler via smartmeter. Then I feed the smartmeter readings via http and iobroker api into this shelly emulator as documented in the examples. This is working quite nice, but:

  • there is an time intervall reading smartmeter (and solaredge)
  • the value is instable/moving (flipping plus/minus with some larger spikes, e.g. switching on coffee machine) So I did a small blockly script on my ioborker to flatten the spikes a bit an write the new value to a variable. This variable is then fed into shelly emu via iobroker api request as written in documentation. This seems to work FOR ME ! Just my experience.

PS: possibly the smoothing of the value could also be done in shelly enu .... with variable tau ... cu Harvey

harvey637 avatar Mar 18 '25 12:03 harvey637

There is now a SNAPSHOT version uni-meter-1.1.3-SNAPSHOT which provides initial support for Solaredge (just the power value). There is also a docker container available sdeigm/uni-meter:1.1.3-SNAPSHOT

To configure the device use the following uni-meter.conf:

uni-meter {
  output = "uni-meter.output-devices.shelly-pro3em"

  input = "uni-meter.input-devices.solaredge"
  
  input-devices {   
	solaredge {
	  address = "192.168.178.125"
	  port = 1502
	  unit-id = 0
	  power-register = 40083
	}  
  }  
}

The id of the power register is configurable. 40083 is most likely, but also 40084 might be a value depending on the configuration.

Initializing DEBUG output in the logback.xml file should give you hopefully debug output like

25-03-20 05:28:24.291 DEBUG uni-meter.input          - power 172.59 W (value=17259, scale=-2)

Everything is totaly untested, since I don't have a Solaredge device :-)

sdeigm avatar Mar 20 '25 04:03 sdeigm

Ok I tested the initial version. My Modbus is on port 502, that's just a config thing not an issue.

uni-meter connects to my modbus but can't read the power register if I understand the log correctly.

I tested both registers: 400083 and 40084 and see the same error.

-03-20 15:14:29.886 INFO uni-meter - ########################################################################### 2025-03-20 15:14:29.887898+00:0025-03-20 15:14:29.887 INFO uni-meter - # Universal electric meter converter 1.1.3-SNAPSHOT (2025-03-20 05:10:50) # 2025-03-20 15:14:29.887910+00:0025-03-20 15:14:29.887 INFO uni-meter - ########################################################################### 2025-03-20 15:14:29.887921+00:0025-03-20 15:14:29.887 INFO uni-meter - initializing actor system 2025-03-20 15:14:30.174326+00:0025-03-20 15:14:30.174 INFO org.apache.pekko.event.slf4j.Slf4jLogger - Slf4jLogger started 2025-03-20 15:14:30.298288+00:0025-03-20 15:14:30.298 INFO uni-meter.controller - creating ShellyPro3EM output device 2025-03-20 15:14:30.309193+00:0025-03-20 15:14:30.307 INFO uni-meter.controller - creating Solaredge input device 2025-03-20 15:14:30.623952+00:0025-03-20 15:14:30.623 INFO uni-meter.output - UDP server is listening on /[0:0:0:0:0:0:0:0]:1010 2025-03-20 15:14:30.874804+00:0025-03-20 15:14:30.874 INFO uni-meter.http.port-80 - HTTP server is listening on /[0:0:0:0:0:0:0:0]:80 2025-03-20 15:14:35.487381+00:0025-03-20 15:14:35.482 ERROR uni-meter.input - failed to read input registers at address 40083, quantity 2 2025-03-20 15:14:35.487484+00:00java.util.concurrent.CompletionException: java.util.concurrent.TimeoutException: request timed out after 5000ms 2025-03-20 15:14:35.487514+00:00at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) 2025-03-20 15:14:35.487568+00:00at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347) 2025-03-20 15:14:35.487594+00:00at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:636) 2025-03-20 15:14:35.487617+00:00at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) 2025-03-20 15:14:35.487650+00:00at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) 2025-03-20 15:14:35.487674+00:00at com.digitalpetri.modbus.client.ModbusTcpClient.lambda$sendBufferAsync$3(ModbusTcpClient.java:126) 2025-03-20 15:14:35.487696+00:00at com.digitalpetri.modbus.TimeoutScheduler.lambda$fromScheduledExecutor$0(TimeoutScheduler.java:47) 2025-03-20 15:14:35.487728+00:00at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 2025-03-20 15:14:35.487752+00:00at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 2025-03-20 15:14:35.487774+00:00at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 2025-03-20 15:14:35.487806+00:00at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 2025-03-20 15:14:35.487828+00:00at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 2025-03-20 15:14:35.487850+00:00at java.base/java.lang.Thread.run(Thread.java:840) 2025-03-20 15:14:35.487884+00:00Caused by: java.util.concurrent.TimeoutException: request timed out after 5000ms 2025-03-20 15:14:35.487908+00:00at com.digitalpetri.modbus.client.ModbusTcpClient.lambda$sendBufferAsync$3(ModbusTcpClient.java:127) 2025-03-20 15:14:35.487931+00:00... 7 common frames omitted

tmb80c avatar Mar 20 '25 15:03 tmb80c

Ok, I am getting exactly the same error when I am accessing a Modbus register that does not exist on my SMD120 modbus device. Interestingly in the documentation of that device SDM120 the register also have numbers like 30013 for Power, but in the program code I have to use the documented number - 30001 (for whatever reason).

Can you also please check the number 83, 84 and 82?

sdeigm avatar Mar 20 '25 15:03 sdeigm

https://control.com/forums/threads/modbus-register-addressing-variations.11682/

sdeigm avatar Mar 20 '25 15:03 sdeigm

Can you also please check the number 83, 84 and 82?

I got the same error messages as tmb80c. I tried the registers 40082-40084.

jfraf avatar Mar 20 '25 16:03 jfraf

In my Homeassistant instance I'm using the Solaredge Modbus Integration:

WillCodeForCats solaredge-modbus-multi

May be this is helpful.

tmb80c avatar Mar 20 '25 18:03 tmb80c

I really meant the plain registers 82, 83 and 84 without the 40000. Can you please check them?

sdeigm avatar Mar 20 '25 19:03 sdeigm

I really meant the plain registers 82, 83 and 84 without the 40000. Can you please check them?

same error messages as with the ones in the 40000 range.

jfraf avatar Mar 20 '25 19:03 jfraf

Ok, can you please do another test? We can change the unit-id which is currently 0 to 1 and 2.

For every unit id please test the registers 82, 83, 84 and 40082, 40083 and 40084

uni-meter {
  output = "uni-meter.output-devices.shelly-pro3em"

  input = "uni-meter.input-devices.solaredge"
  
  input-devices {   
	solaredge {
	  address = "192.168.178.125"
	  port = 502
	  unit-id = 0
	  power-register = 40083
	}  
  }  
}

If that is not successful, I have to prepare another version which reads Holding registers instead of Input registers

sdeigm avatar Mar 20 '25 19:03 sdeigm

It is a bit hard to test since the inverter seems to block requests after a couple of unsuccessful requests. Here is a log from "tcp-multiplexer" which I use to enable multiple devices (openWB wallbox and the HomeAssistant plugin tmb80c mentioned) to query the SolarEdge inverter / meter via ModbusTCP (only one TCP connection is allowed by SE):

* tcp-multiplexer.service - TCP-multiplexer
     Loaded: loaded (/etc/systemd/system/tcp-multiplexer.service; enabled; preset: enabled)
     Active: active (running) since Thu 2025-03-20 16:52:35 UTC; 2h 59min ago
   Main PID: 583 (tcp-multiplexer)
      Tasks: 8 (limit: 16610)
     Memory: 2.7M (peak: 5.5M)
        CPU: 13.731s
     CGroup: /system.slice/tcp-multiplexer.service
             `-583 /root/tcp-multiplexer/tcp-multiplexer server -p modbus -l 502 -t solaredge.fritz.box:502

Mar 20 19:51:14 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:51:14 ERROR write tcp 192.168.178.88:502->192.168.178.35:57377: write: broken pipe
Mar 20 19:51:14 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:51:14 ERROR write tcp 192.168.178.88:502->192.168.178.110:54798: write: broken pipe
Mar 20 19:51:14 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:51:14 ERROR write tcp 192.168.178.88:502->192.168.178.35:52041: write: broken pipe
Mar 20 19:51:14 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:51:14 ERROR write tcp 192.168.178.88:502->192.168.178.110:50330: write: broken pipe
Mar 20 19:51:14 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:51:14 ERROR write tcp 192.168.178.88:502->192.168.178.35:45235: write: broken pipe
Mar 20 19:52:15 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:52:15 ERROR target connection: read tcp 192.168.178.88:50152->192.168.178.81:502: i/o tim
eout
Mar 20 19:52:15 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:52:15 ERROR failed to forward message, read tcp 192.168.178.88:50152->192.168.178.81:502:
 i/o timeout
Mar 20 19:52:15 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:52:15 ERROR failed to connect to target server solaredge.fritz.box:502, dial tcp 192.168.
178.81:502: connect: connection refused
Mar 20 19:52:16 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:52:16 ERROR write tcp 192.168.178.88:502->192.168.178.110:34860: write: broken pipe
Mar 20 19:52:17 tcp-multiplexer tcp-multiplexer[583]: 2025/03/20 19:52:17 ERROR read tcp 192.168.178.88:502->192.168.178.35:51017: read: connection reset by
peer

Anyway, when I use unit-id = 1, I get a different error message than before, albeit the same for each register you proposed:

% docker compose up  
[+] Running 1/0
 ⠿ Container uni-meter  Created                                                                                                                               0.0s
Attaching to uni-meter
uni-meter  | Process 9 died: No such process; trying to remove PID file. (/run/avahi-daemon//pid)
uni-meter  | 25-03-20 20:00:07.051 INFO  uni-meter                - ###########################################################################
uni-meter  | 25-03-20 20:00:07.053 INFO  uni-meter                - # Universal electric meter converter 1.1.3-SNAPSHOT (2025-03-20 05:10:50) #
uni-meter  | 25-03-20 20:00:07.053 INFO  uni-meter                - ###########################################################################
uni-meter  | 25-03-20 20:00:07.053 INFO  uni-meter                - initializing actor system
uni-meter  | 25-03-20 20:00:07.344 INFO  org.apache.pekko.event.slf4j.Slf4jLogger - Slf4jLogger started
uni-meter  | 25-03-20 20:00:07.465 INFO  uni-meter.controller     - creating ShellyPro3EM output device
uni-meter  | 25-03-20 20:00:07.472 INFO  uni-meter.controller     - creating Solaredge input device
uni-meter  | 25-03-20 20:00:07.749 ERROR uni-meter.input          - failed to read input registers at address 84, quantity 2
uni-meter  | java.util.concurrent.CompletionException: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x04 [READ_INPUT_REGISTERS] generated exception response 0x01 [ILLEGAL_FUNCTION]
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:636)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162)
uni-meter  | 	at com.digitalpetri.modbus.client.ModbusTcpClient.onFrameReceived(ModbusTcpClient.java:171)
uni-meter  | 	at com.digitalpetri.modbus.tcp.client.NettyTcpClientTransport$ModbusTcpFrameHandler.lambda$channelRead0$0(NettyTcpClientTransport.java:163)
uni-meter  | 	at com.digitalpetri.modbus.internal.util.ExecutionQueue$Task.run(ExecutionQueue.java:110)
uni-meter  | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
uni-meter  | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
uni-meter  | 	at java.base/java.lang.Thread.run(Thread.java:840)
uni-meter  | Caused by: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x04 [READ_INPUT_REGISTERS] generated exception response 0x01 [ILLEGAL_FUNCTION]
uni-meter  | 	... 6 common frames omitted
uni-meter  | 25-03-20 20:00:08.059 INFO  uni-meter.http.port-80   - HTTP server is listening on /[0:0:0:0:0:0:0:0]:80
uni-meter  | 25-03-20 20:00:08.826 ERROR uni-meter.input          - failed to read input registers at address 84, quantity 2
uni-meter  | java.util.concurrent.CompletionException: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x04 [READ_INPUT_REGISTERS] generated exception response 0x01 [ILLEGAL_FUNCTION]
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:636)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162)
uni-meter  | 	at com.digitalpetri.modbus.client.ModbusTcpClient.onFrameReceived(ModbusTcpClient.java:171)
uni-meter  | 	at com.digitalpetri.modbus.tcp.client.NettyTcpClientTransport$ModbusTcpFrameHandler.lambda$channelRead0$0(NettyTcpClientTransport.java:163)
uni-meter  | 	at com.digitalpetri.modbus.internal.util.ExecutionQueue$Task.run(ExecutionQueue.java:110)
uni-meter  | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
uni-meter  | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
uni-meter  | 	at java.base/java.lang.Thread.run(Thread.java:840)
uni-meter  | Caused by: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x04 [READ_INPUT_REGISTERS] generated exception response 0x01 [ILLEGAL_FUNCTION]
uni-meter  | 	... 6 common frames omitted
uni-meter  | 25-03-20 20:00:09.885 ERROR uni-meter.input          - failed to read input registers at address 84, quantity 2
uni-meter  | java.util.concurrent.CompletionException: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x04 [READ_INPUT_REGISTERS] generated exception response 0x01 [ILLEGAL_FUNCTION]
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:636)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
uni-meter  | 	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162)
uni-meter  | 	at com.digitalpetri.modbus.client.ModbusTcpClient.onFrameReceived(ModbusTcpClient.java:171)
uni-meter  | 	at com.digitalpetri.modbus.tcp.client.NettyTcpClientTransport$ModbusTcpFrameHandler.lambda$channelRead0$0(NettyTcpClientTransport.java:163)
uni-meter  | 	at com.digitalpetri.modbus.internal.util.ExecutionQueue$Task.run(ExecutionQueue.java:110)
uni-meter  | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
uni-meter  | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
uni-meter  | 	at java.base/java.lang.Thread.run(Thread.java:840)
uni-meter  | Caused by: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x04 [READ_INPUT_REGISTERS] generated exception response 0x01 [ILLEGAL_FUNCTION]
uni-meter  | 	... 6 common frames omitted
^CGracefully stopping... (press Ctrl+C again to force)
[+] Running 1/1
 ⠿ Container uni-meter  Stopped                

jfraf avatar Mar 20 '25 20:03 jfraf

In my Homeassistant instance I'm using the Solaredge Modbus Integration:

WillCodeForCats solaredge-modbus-multi

May be this is helpful.

The SolarEdge implementation of openWB might also be helpful: https://github.com/snaptec/openWB/tree/master/packages/modules/devices/solaredge (especially inverter.py and meter.py).

Also, I think that one of the meter-specific registers would be better suited (e.g., 40206) than the ones for the inverter which only give information about the solar power and do not consider the imported/exported power (if I got it right).

jfraf avatar Mar 20 '25 20:03 jfraf

I think unit-id=1 is the correct choice. I think the problem now is that I am reading an InputRegister while it should be a HoldingRegister.

I had a look to the Python code, but the exact registers are coming somewhere from the configuration and as that before its not clear if my library needs the registers as 400xx or just xx.

Regarding the exact register I think you are right, 40206/206 is the better choice. I was not aware that the document also describes inverter data. I just saw AC power for 40083 and took that.

So I prepared a new version which now read HoldingRegisters. There are now two registers to configure, the power-register and the power-scale-register:

uni-meter {
  output = "uni-meter.output-devices.shelly-pro3em"

  input = "uni-meter.input-devices.solaredge"
  
  input-devices {   
    solaredge {
      address = "192.168.178.125"
      port = 502
      unit-id = 1
      power-register = 40206   # 206
      power-scale-register = 40210   # 210
    }  
  }  
}

Please ensure that really the new docker image is pulled from docker hub. The build timestamp of that version should be rougly 22:00 today ...

sdeigm avatar Mar 20 '25 21:03 sdeigm

This is the output of the new version above:

2025-03-20 21:40:27.929007+00:0025-03-20 21:40:27.927 INFO uni-meter - ########################################################################### 2025-03-20 21:40:27.929089+00:0025-03-20 21:40:27.928 INFO uni-meter - # Universal electric meter converter 1.1.3-SNAPSHOT (2025-03-20 21:57:37) # 2025-03-20 21:40:27.929136+00:0025-03-20 21:40:27.929 INFO uni-meter - ########################################################################### 2025-03-20 21:40:27.929187+00:0025-03-20 21:40:27.929 INFO uni-meter - initializing actor system 2025-03-20 21:40:28.224396+00:0025-03-20 21:40:28.224 INFO org.apache.pekko.event.slf4j.Slf4jLogger - Slf4jLogger started 2025-03-20 21:40:28.351919+00:0025-03-20 21:40:28.351 INFO uni-meter.controller - creating ShellyPro3EM output device 2025-03-20 21:40:28.359167+00:0025-03-20 21:40:28.358 INFO uni-meter.controller - creating Solaredge input device 2025-03-20 21:40:28.709175+00:0025-03-20 21:40:28.708 INFO uni-meter.output - UDP server is listening on /[0:0:0:0:0:0:0:0]:1010 2025-03-20 21:40:28.934595+00:0025-03-20 21:40:28.934 INFO uni-meter.http.port-80 - HTTP server is listening on /[0:0:0:0:0:0:0:0]:80 2025-03-20 21:40:37.242059+00:0025-03-20 21:40:37.208 WARN com.digitalpetri.modbus.client.ModbusTcpClient - No pending request for response frame: ModbusTcpFrame[header=MbapHeader[transactionId=331, protocolId=0, length=19, unitId=2], pdu=0310303030332e3235333700000000000000] 2025-03-20 21:40:40.526218+00:0025-03-20 21:40:40.524 WARN com.digitalpetri.modbus.client.ModbusTcpClient - No pending request for response frame: ModbusTcpFrame[header=MbapHeader[transactionId=332, protocolId=0, length=83, unitId=2], pdu=0350006700320000000000000000fffe000000000000091009140909ffff000000001386fffe000000000000000000000000037b7eb80000ffff80000000ffff000000008000000080008000fffe00020000] 2025-03-20 21:40:43.246149+00:0025-03-20 21:40:43.241 WARN com.digitalpetri.modbus.client.ModbusTcpClient - No pending request for response frame: ModbusTcpFrame[header=MbapHeader[transactionId=332, protocolId=0, length=83, unitId=2], pdu=0350006700320000000000000000fffe000000000000090d09140909ffff000000001386fffe000000000000000000000000037b7eb80000ffff80000000ffff000000008000000080008000fffe00020000] 2025-03-20 21:40:46.446768+00:0025-03-20 21:40:46.445 WARN com.digitalpetri.modbus.client.ModbusTcpClient - No pending request for response frame: ModbusTcpFrame[header=MbapHeader[transactionId=332, protocolId=0, length=83, unitId=2], pdu=0350006700320000000000000000fffe00000000000009110918090cffff000000001386fffe000000000000000000000000037b7eb80000ffff80000000ffff000000008000000080008000fffe00020000] 2025-03-20 21:40:49.775908+00:0025-03-20 21:40:49.769 WARN com.digitalpetri.modbus.client.ModbusTcpClient - No pending request for response frame: ModbusTcpFrame[header=MbapHeader[transactionId=334, protocolId=0, length=175, unitId=2], pdu=03ac00000000000100000003000000c800000001000000003f8000000000000000000000000000004248000042c8000042c8000042c800003f8000003f8000003f803336bf733336bf733336bf73fffe41ef000042b4000042beffff42d1000042dcfffe42effffec26f0000c22c00000000000000000000422cfffe426f00004000000042c80001000000000000333342480000423e0000437d800043430000436681db4139cccd4248cccd424

tmb80c avatar Mar 20 '25 21:03 tmb80c

what does unit-id mean?

I have a Master inverter and a slave inverter and the slave inverted is connected to the meter.

When I increase unit-id to 2 then the log looks different:

2025-03-20 21:56:25.394593+00:0025-03-20 21:56:25.392 INFO uni-meter - ########################################################################### 2025-03-20 21:56:25.394733+00:0025-03-20 21:56:25.394 INFO uni-meter - # Universal electric meter converter 1.1.3-SNAPSHOT (2025-03-20 21:57:37) # 2025-03-20 21:56:25.394816+00:0025-03-20 21:56:25.394 INFO uni-meter - ########################################################################### 2025-03-20 21:56:25.394929+00:0025-03-20 21:56:25.394 INFO uni-meter - initializing actor system 2025-03-20 21:56:25.681619+00:0025-03-20 21:56:25.681 INFO org.apache.pekko.event.slf4j.Slf4jLogger - Slf4jLogger started 2025-03-20 21:56:25.803308+00:0025-03-20 21:56:25.803 INFO uni-meter.controller - creating ShellyPro3EM output device 2025-03-20 21:56:25.810551+00:0025-03-20 21:56:25.809 INFO uni-meter.controller - creating Solaredge input device 2025-03-20 21:56:26.128182+00:0025-03-20 21:56:26.127 INFO uni-meter.output - UDP server is listening on /[0:0:0:0:0:0:0:0]:1010 2025-03-20 21:56:26.373602+00:0025-03-20 21:56:26.373 INFO uni-meter.http.port-80 - HTTP server is listening on /[0:0:0:0:0:0:0:0]:80 2025-03-20 21:56:30.969207+00:0025-03-20 21:56:30.967 ERROR uni-meter.input - failed to read input registers at address 40210, quantity 1 2025-03-20 21:56:30.969259+00:00java.util.concurrent.CompletionException: java.util.concurrent.TimeoutException: request timed out after 5000ms 2025-03-20 21:56:30.969270+00:00at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) 2025-03-20 21:56:30.969292+00:00at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347) 2025-03-20 21:56:30.969300+00:00at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:636) 2025-03-20 21:56:30.969307+00:00at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) 2025-03-20 21:56:30.969319+00:00at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) 2025-03-20 21:56:30.969327+00:00at com.digitalpetri.modbus.client.ModbusTcpClient.lambda$sendBufferAsync$3(ModbusTcpClient.java:126) 2025-03-20 21:56:30.969334+00:00at com.digitalpetri.modbus.TimeoutScheduler.lambda$fromScheduledExecutor$0(TimeoutScheduler.java:47) 2025-03-20 21:56:30.969345+00:00at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 2025-03-20 21:56:30.969352+00:00at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 2025-03-20 21:56:30.969360+00:00at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) 2025-03-20 21:56:30.969371+00:00at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 2025-03-20 21:56:30.969379+00:00at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 2025-03-20 21:56:30.969386+00:00at java.base/java.lang.Thread.run(Thread.java:840) 2025-03-20 21:56:30.969398+00:00Caused by: java.util.concurrent.TimeoutException: request timed out after 5000ms 2025-03-20 21:56:30.969406+00:00at com.digitalpetri.modbus.client.ModbusTcpClient.lambda$sendBufferAsync$3(ModbusTcpClient.java:127) 2025-03-20 21:56:30.969413+00:00... 7 common frames omitted 2025-03-20 21:56:32.125351+00:0025-03-20 21:56:32.124 ERROR uni-meter.input - failed to read input registers at address 40210, quantity 1 2025-03-20 21:56:32.125456+00:00java.util.concurrent.CompletionException: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x03 [READ_HOLDING_REGISTERS] generated exception response 0x02 [ILLEGAL_DATA_ADDRESS] 2025-03-20 21:56:32.125487+00:00at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332) 2025-03-20 21:56:32.125524+00:00at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:347) 2025-03-20 21:56:32.125549+00:00at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:636) 2025-03-20 21:56:32.125570+00:00at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) 2025-03-20 21:56:32.125604+00:00at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162) 2025-03-20 21:56:32.125627+00:00at com.digitalpetri.modbus.client.ModbusTcpClient.onFrameReceived(ModbusTcpClient.java:171) 2025-03-20 21:56:32.125649+00:00at com.digitalpetri.modbus.tcp.client.NettyTcpClientTransport$ModbusTcpFrameHandler.lambda$channelRead0$0(NettyTcpClientTransport.java:163) 2025-03-20 21:56:32.125683+00:00at com.digitalpetri.modbus.internal.util.ExecutionQueue$Task.run(ExecutionQueue.java:110) 2025-03-20 21:56:32.125706+00:00at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 2025-03-20 21:56:32.125729+00:00at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 2025-03-20 21:56:32.125761+00:00at java.base/java.lang.Thread.run(Thread.java:840) 2025-03-20 21:56:32.125785+00:00Caused by: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x03 [READ_HOLDING_REGISTERS] generated exception response 0x02 [ILLEGAL_DATA_ADDRESS] 2025-03-20 21:56:32.125807+00:00... 6 common frames omitted 2025-03-20 21:56:33.317247+00:0025-03-20 21:56:33.316 ERROR uni-meter.input - failed to read input registers at address 40210, quantity 1 2025-03-20 21:56:33.317314+00:00java.util.concurrent.CompletionException: com.digitalpetri.modbus.exceptions.ModbusResponseException: 0x03 [READ_HOLDING_REGISTERS] generated exception response 0x02 [ILLEGAL_DATA_ADDRESS]

tmb80c avatar Mar 20 '25 21:03 tmb80c

what does unit-id mean?

On the modbus each device has a unit-id. A register value on the modbus is addressed by the unit-id of the device and the address of the register. I think unit-id 1 is correct in your setup. In the second trace when you used unit-id 2 we are just getting timeout exceptions. There is no device with the unit-id 2 that sends an answer.

Regarding the first test run you did with the new version: I can only see these

2025-03-20 21:40:46.446768+00:0025-03-20 21:40:46.445 WARN com.digitalpetri.modbus.client.ModbusTcpClient - No pending request for response frame: ModbusTcpFrame[header=MbapHeader[transactionId=332, protocolId=0, length=83, unitId=2], pdu=0350006700320000000000000000fffe00000000000009110918090cffff000000001386fffe000000000000000000000000037b7eb80000ffff80000000ffff000000008000000080008000fffe00020000]

warnings. This warning is printed out by the underlying modbus library, when it is not able to correlate a received answer to a send request. The correlation is done by the transaction id of the request.

But I don't see any error messages in your trace. So I am wondering if it perhaps already running with these settings. How does your logback configuration for that test looked like? Did you enable the DEBUG logging for the input device? If not can you please do another run with the following logback.xml settings:

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%d{yy-MM-dd HH:mm:ss.SSS} %-5level %-24logger - %msg%n</pattern>
        </encoder>
    </appender>

    <root level="INFO">
        <appender-ref ref="STDOUT" />
    </root>

    <logger name="uni-meter.input"  level="DEBUG" additivity="false">
        <appender-ref ref="STDOUT" />
    </logger>
</Configuration>

From the testing until now I would say, that unit-it 1 and power-register 40206 or 206 and power-scale-register 40210 or 210 are the settings to use.

sdeigm avatar Mar 21 '25 05:03 sdeigm

So I prepared a new version which now read HoldingRegisters. There are now two registers to configure, the power-register and the power-scale-register:

Looks promising so far! I will check if the values are consistant with the other apps that use the meter's data.

 ⠿ Container uni-meter  Created                                                                                                                               0.0s
Attaching to uni-meter
uni-meter  | Process 9 died: No such process; trying to remove PID file. (/run/avahi-daemon//pid)
uni-meter  | 25-03-21 05:50:36.411 INFO  uni-meter                - ###########################################################################
uni-meter  | 25-03-21 05:50:36.412 INFO  uni-meter                - # Universal electric meter converter 1.1.3-SNAPSHOT (2025-03-20 21:57:37) #
uni-meter  | 25-03-21 05:50:36.412 INFO  uni-meter                - ###########################################################################
uni-meter  | 25-03-21 05:50:36.412 INFO  uni-meter                - initializing actor system
uni-meter  | 25-03-21 05:50:36.700 INFO  org.apache.pekko.event.slf4j.Slf4jLogger - Slf4jLogger started
uni-meter  | 25-03-21 05:50:36.826 INFO  uni-meter.controller     - creating ShellyPro3EM output device
uni-meter  | 25-03-21 05:50:36.833 INFO  uni-meter.controller     - creating Solaredge input device
uni-meter  | 25-03-21 05:50:36.845 DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
uni-meter  | 25-03-21 05:50:36.846 DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8
uni-meter  | 25-03-21 05:50:36.852 DEBUG io.netty.util.concurrent.GlobalEventExecutor - -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1
uni-meter  | 25-03-21 05:50:36.856 DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
uni-meter  | 25-03-21 05:50:36.856 DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
uni-meter  | 25-03-21 05:50:36.891 DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
uni-meter  | 25-03-21 05:50:36.891 DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 17
uni-meter  | 25-03-21 05:50:36.892 DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
uni-meter  | 25-03-21 05:50:36.892 DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe base methods: all available
uni-meter  | 25-03-21 05:50:36.892 DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
uni-meter  | 25-03-21 05:50:36.892 DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
uni-meter  | 25-03-21 05:50:36.893 DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
uni-meter  | 25-03-21 05:50:36.893 DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
uni-meter  | 25-03-21 05:50:36.894 DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @1e96a13e
uni-meter  | 25-03-21 05:50:36.895 DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, {int,long}): unavailable
uni-meter  | 25-03-21 05:50:36.895 DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
uni-meter  | 25-03-21 05:50:36.895 DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
uni-meter  | 25-03-21 05:50:36.895 DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
uni-meter  | 25-03-21 05:50:36.895 DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes
uni-meter  | 25-03-21 05:50:36.895 DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
uni-meter  | 25-03-21 05:50:36.896 DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available
uni-meter  | 25-03-21 05:50:36.896 DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
uni-meter  | 25-03-21 05:50:36.897 DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
uni-meter  | 25-03-21 05:50:36.897 DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
uni-meter  | 25-03-21 05:50:36.901 DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
uni-meter  | 25-03-21 05:50:36.929 DEBUG com.digitalpetri.modbus.client.ChannelFsm - S(NotConnected)          x E(Connect)               = S'(Connecting)          
uni-meter  | 25-03-21 05:50:36.938 DEBUG com.digitalpetri.modbus.tcp.client.NettyTcpClientTransport - onStateTransition: NotConnected -> Connecting via Connect
uni-meter  | 25-03-21 05:50:36.951 DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 11 (auto-detected)
uni-meter  | 25-03-21 05:50:36.959 DEBUG io.netty.util.NetUtil    - -Djava.net.preferIPv4Stack: false
uni-meter  | 25-03-21 05:50:36.959 DEBUG io.netty.util.NetUtil    - -Djava.net.preferIPv6Addresses: false
uni-meter  | 25-03-21 05:50:36.960 DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
uni-meter  | 25-03-21 05:50:36.961 DEBUG io.netty.util.NetUtil    - /proc/sys/net/core/somaxconn: 1024
uni-meter  | 25-03-21 05:50:36.962 DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:42:8a:ff:fe:82:72:19 (auto-detected)
uni-meter  | 25-03-21 05:50:36.968 DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
uni-meter  | 25-03-21 05:50:36.968 DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
uni-meter  | 25-03-21 05:50:36.983 DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.disableCacheFinalizersForFastThreadLocalThreads: false
uni-meter  | 25-03-21 05:50:36.988 DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
uni-meter  | 25-03-21 05:50:36.989 DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
uni-meter  | 25-03-21 05:50:36.989 DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
uni-meter  | 25-03-21 05:50:36.992 DEBUG io.netty.bootstrap.ChannelInitializerExtensions - -Dio.netty.bootstrap.extensions: null
uni-meter  | 25-03-21 05:50:37.028 DEBUG com.digitalpetri.modbus.client.ChannelFsm - S(Connecting)            x E(ConnectSuccess)        = S'(Connected)           
uni-meter  | 25-03-21 05:50:37.030 DEBUG com.digitalpetri.modbus.tcp.client.NettyTcpClientTransport - onStateTransition: Connecting -> Connected via ConnectSuccess
uni-meter  | 25-03-21 05:50:37.041 DEBUG io.netty.util.Recycler   - -Dio.netty.recycler.maxCapacityPerThread: 4096
uni-meter  | 25-03-21 05:50:37.041 DEBUG io.netty.util.Recycler   - -Dio.netty.recycler.ratio: 8
uni-meter  | 25-03-21 05:50:37.041 DEBUG io.netty.util.Recycler   - -Dio.netty.recycler.chunkSize: 32
uni-meter  | 25-03-21 05:50:37.041 DEBUG io.netty.util.Recycler   - -Dio.netty.recycler.blocking: false
uni-meter  | 25-03-21 05:50:37.041 DEBUG io.netty.util.Recycler   - -Dio.netty.recycler.batchFastThreadLocalOnly: true
uni-meter  | 25-03-21 05:50:37.048 DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
uni-meter  | 25-03-21 05:50:37.049 DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
uni-meter  | 25-03-21 05:50:37.049 DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@35cdf191
uni-meter  | 25-03-21 05:50:37.095 DEBUG uni-meter.input          - power scale 0.0
uni-meter  | 25-03-21 05:50:37.142 DEBUG uni-meter.input          - power 150.0 W (value=150, scale=0.0)
uni-meter  | 25-03-21 05:50:37.150 DEBUG uni-meter.output         - power phase 0: PowerData[power=50.0, apparentPower=50.0, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:37.160 DEBUG uni-meter.output         - power phase 1: PowerData[power=50.0, apparentPower=50.0, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:37.160 DEBUG uni-meter.output         - power phase 2: PowerData[power=50.0, apparentPower=50.0, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:37.483 INFO  uni-meter.http.port-80   - HTTP server is listening on /[0:0:0:0:0:0:0:0]:80
uni-meter  | 25-03-21 05:50:38.199 DEBUG uni-meter.input          - power scale 0.0
uni-meter  | 25-03-21 05:50:38.244 DEBUG uni-meter.input          - power 153.0 W (value=153, scale=0.0)
uni-meter  | 25-03-21 05:50:38.245 DEBUG uni-meter.output         - power phase 0: PowerData[power=51.0, apparentPower=51.0, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:38.246 DEBUG uni-meter.output         - power phase 1: PowerData[power=51.0, apparentPower=51.0, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:38.246 DEBUG uni-meter.output         - power phase 2: PowerData[power=51.0, apparentPower=51.0, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:39.307 DEBUG uni-meter.input          - power scale 0.0
uni-meter  | 25-03-21 05:50:39.356 DEBUG uni-meter.input          - power 151.0 W (value=151, scale=0.0)
uni-meter  | 25-03-21 05:50:39.357 DEBUG uni-meter.output         - power phase 0: PowerData[power=50.33, apparentPower=50.33, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:39.358 DEBUG uni-meter.output         - power phase 1: PowerData[power=50.33, apparentPower=50.33, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:39.358 DEBUG uni-meter.output         - power phase 2: PowerData[power=50.33, apparentPower=50.33, powerFactor=1.0, current=0.22, voltage=230.0, frequency=50.0]
uni-meter  | 25-03-21 05:50:40.448 DEBUG uni-meter.input          - power scale 0.0

jfraf avatar Mar 21 '25 05:03 jfraf

Ok, that looks good! Which settings did you use? uni-id = 1, 40206 and 40210?

If the values are ok, I will try to figure out the other registers so that we also get the voltage, frequency, data per phase etc.

sdeigm avatar Mar 21 '25 05:03 sdeigm

This is my config:

uni-meter {
  output = "uni-meter.output-devices.shelly-pro3em"

  input = "uni-meter.input-devices.solaredge"
  
  input-devices {   
	solaredge {
	  address = "192.168.178.88"
	  port = 502
	  unit-id = 1
          power-register = 40206   # 206
          power-scale-register = 40210   # 210
	}  
  }  
}

And here, for comparison, the GUI of my wallbox. The values do not match exactly since the values displayed are only updated every 10s.

Image

jfraf avatar Mar 21 '25 05:03 jfraf

If the values are ok, I will try to figure out the other registers so that we also get the voltage, frequency, data per phase etc.

Thank you for your great work! I will gladly do some more testing if you have any updates in the code.

As a side note, just in case it is not already obvious: positive values mean that power is fed into the grid while negative numbers mean an import of power.

jfraf avatar Mar 21 '25 06:03 jfraf