Giter Site home page Giter Site logo

nmakel / solaredge_meterproxy Goto Github PK

View Code? Open in Web Editor NEW
29.0 10.0 20.0 614 KB

Modbus proxy for SolarEdge inverters and unsupported kWh meters

License: MIT License

Python 99.92% Makefile 0.08%
solaredge modbus modbus-tcp modbus-rtu wattnode solaredge-api p1 smartmeter

solaredge_meterproxy's People

Contributors

ksjoberg avatar marcelrv avatar nmakel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solaredge_meterproxy's Issues

ModuleNotFoundError: No module named 'pymodbus.server.sync'

Hi all,

I installed all requirements, but I still get the following error:

openhabian@rpizero:~/shared/solaredge_meterproxy $ python3 semp-rtu.py
Traceback (most recent call last):
File "/home/openhabian/shared/solaredge_meterproxy/semp-rtu.py", line 11, in
from pymodbus.server.sync import StartSerialServer
ModuleNotFoundError: No module named 'pymodbus.server.sync'

Anybody knows where to look for?

Many thanks for your support!!

Troublesome Own Usage (Eigen Verbruik)and Export/Bought (Exporteren/Gekocht) reporting

Hello SE geeks,

I'm having trouble reporting my Own Usage (Eigen Verbruik) and Export/Bought (Exporteren/Gekocht) on the SE Monitoring platform. Using the Solaredge_meter with MQTT connected to SE5000H via modbus RS485-1 (termination on).

The solar panel, home, and export power seem to work well, both online monitoring platform and SolarEdge App are showing the correct kW values and green/orange arrows during the day.
I can't get the reporting working correctly (blue/green and blue/red bars) because the Exporteren and Gekocht values are incorrect for unknow reason.

IMG_5122

Questions

  1. Is the modbus communication working as expected?
  2. DEBUG information looks different compared to what I've found online. Why the "Frame advanced, resetting header!!" message.
  3. What are the necessary MQTT fields and value dimensions?
  4. Am I correct that latest pymodbus version supported is 2.5.3? (with latest 3.6.3 solardedge_meterproxy didn't start)

Communication between solaredge_meterproxy and SE5000H is via Elfin EW11A, 9600_8,_N,_1 as shown.

Jan 19 00:15:38 hab systemd[1]: Started SolarEdge Meter daemon simulating meter device.
Jan 19 00:15:39 hab python3[21371]: 2024-01-19 00:15:39 DEBUG: [1234, 0, 5, 5, 5, 5, 0, 0, 0, 15, 1, 10000, 10000, 10000, 64536, 64536, 64536, 1500, 120, 0, 0, 20000, 0]
Jan 19 00:15:39 hab python3[21371]: 2024-01-19 00:15:39 DEBUG: setValues[3] 1601:23
Jan 19 00:15:39 hab python3[21371]: 2024-01-19 00:15:39 DEBUG: [0, 2, 4, 0, 0, 5]
Jan 19 00:15:39 hab python3[21371]: 2024-01-19 00:15:39 DEBUG: setValues[3] 1651:6
Jan 19 00:15:39 hab python3[21371]: 2024-01-19 00:15:39 DEBUG: [4614, 15, 0, 0, 0, 0, 202, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Jan 19 00:15:39 hab python3[21371]: 2024-01-19 00:15:39 DEBUG: setValues[3] 1701:23
Jan 19 00:15:39 hab python3[21371]: 2024-01-19 00:15:39 INFO: Created <Thread(t_update_2, initial)>: meter1 mqtt {'client': <paho.mqtt.client.Client object at 0x760f3058>, 'host': '192.168.254.13', 'port': 1883, 'keepalive': 60, 'meterValuesTopic': 'energy/meter', 'willTopic': 'energy/will', 'willMsg': 'MeterProxy Disconnected'}
Jan 19 00:15:39 hab python3[21371]: 2024-01-19 00:15:39 INFO: Connected to MQTT: 192.168.254.13:1883/energy/meter
Jan 19 00:15:40 hab python3[21371]: 2024-01-19 00:15:40 DEBUG: MQTT message received: {
Jan 19 00:15:40 hab python3[21371]: "import_energy_active": 0.372,
Jan 19 00:15:40 hab python3[21371]: "l1_power_active": 16.000,
Jan 19 00:15:40 hab python3[21371]: "l2_power_active": 198.000,
Jan 19 00:15:40 hab python3[21371]: "l3_power_active": 158.000,
Jan 19 00:15:40 hab python3[21371]: "voltage_ln": 235.7,
Jan 19 00:15:40 hab python3[21371]: "l1n_voltage": 235.7,
Jan 19 00:15:40 hab python3[21371]: "l2n_voltage": 235,
Jan 19 00:15:40 hab python3[21371]: "l3n_voltage": 233.5,
Jan 19 00:15:40 hab python3[21371]: "frequency": 50,
Jan 19 00:15:40 hab python3[21371]: "l1_energy_active": 0.016,
Jan 19 00:15:40 hab python3[21371]: "l2_energy_active": 0.198,
Jan 19 00:15:40 hab python3[21371]: "l3_energy_active": 0.158,
Jan 19 00:15:40 hab python3[21371]: "l1_import_energy_active": 0.016,
Jan 19 00:15:40 hab python3[21371]: "l2_import_energy_active": 0.198,
Jan 19 00:15:40 hab python3[21371]: "l3_import_energy_active": 0.158,
Jan 19 00:15:40 hab python3[21371]: "export_energy_active": 0,
Jan 19 00:15:40 hab python3[21371]: "l1_export_energy_active": 0,
Jan 19 00:15:40 hab python3[21371]: "l2_export_energy_active": 0,
Jan 19 00:15:40 hab python3[21371]: "l3_export_energy_active": 0,
Jan 19 00:15:40 hab python3[21371]: "l1_current": 0.06788290,
Jan 19 00:15:40 hab python3[21371]: "l2_current": 0.84255319,
Jan 19 00:15:40 hab python3[21371]: "l3_current": 0.67665953
Jan 19 00:15:40 hab python3[21371]: }
Jan 19 00:15:40 hab python3[21371]: 2024-01-19 00:15:40 DEBUG: [0, 0, 30409, 16062, 0, 0, 30409, 16062, 0, 0, 0, 16768, 0, 17222, 0, 17182, 45875, 17259, 45875, 17259, 0, 17259, 32768, 17257, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16968]
Jan 19 00:15:40 hab python3[21371]: 2024-01-19 00:15:40 INFO: Starting <Thread(t_update_2, started 1965028416)>
Jan 19 00:15:40 hab python3[21371]: 2024-01-19 00:15:40 DEBUG: setValues[3] 1001:34
Jan 19 00:15:40 hab python3[21371]: 2024-01-19 00:15:40 DEBUG: [4719, 15491, 49283, 15946, 51905, 15905, 4719, 15491, 49283, 15946, 51905, 15905, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1585, 15755, 45457, 16215, 14735, 16173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Jan 19 00:15:40 hab python3[21371]: 2024-01-19 00:15:40 DEBUG: setValues[3] 1101:82
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Started thread to serve client at ('192.168.254.109', 9999)
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Client Connected [192.168.254.109:9999]
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Handling data: 0x2 0x3 0x0 0x1 0x0 0x1 0xd5 0xf9
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Getting Frame - 0x3 0x0 0x1 0x0 0x1
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: validate: fc-[3] address-2: count-1
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: getValues fc-[3] address-2: count-1
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: send: [ReadHoldingRegistersResponse (1)]- b'0203020000fc44'
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: validate: fc-[3] address-1601: count-23
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: getValues fc-[3] address-1601: count-23
Jan 19 00:15:42 hab python3[21371]: 2024-01-19 00:15:42 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e04d200000005000500050005000000000000000f0001271027102710fc18fc18fc1805dc0078000000004e2000007700'
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Handling data: 0x2 0x3 0x6 0xa4 0x0 0x17 0x44 0x9c
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Getting Frame - 0x3 0x6 0xa4 0x0 0x17
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: validate: fc-[3] address-1701: count-23
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: getValues fc-[3] address-1701: count-23
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e1206000f000000000000000000ca001f00000000000000000000000000000000000000000000000000000000000092cd'
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Handling data: 0x2 0x3 0x6 0xc8 0x0 0x2 0x45 0x4e
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Getting Frame - 0x3 0x6 0xc8 0x0 0x2
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: validate: fc-[3] address-1737: count-2
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: getValues fc-[3] address-1737: count-2
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: send: [ReadHoldingRegistersResponse (2)]- b'02030400000000c933'
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: validate: fc-[3] address-1601: count-23
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: getValues fc-[3] address-1601: count-23
Jan 19 00:15:43 hab python3[21371]: 2024-01-19 00:15:43 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e04d200000005000500050005000000000000000f0001271027102710fc18fc18fc1805dc0078000000004e2000007700'
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Handling data: 0x2 0x3 0x6 0x72 0x0 0x6 0x65 0x68
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Getting Frame - 0x3 0x6 0x72 0x0 0x6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: validate: fc-[3] address-1651: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: getValues fc-[3] address-1651: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c0000000200040000000000054cd2'
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Handling data: 0x2 0x3 0x6 0xa4 0x0 0x17 0x44 0x9c
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Getting Frame - 0x3 0x6 0xa4 0x0 0x17
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: validate: fc-[3] address-1701: count-23
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: getValues fc-[3] address-1701: count-23
Jan 19 00:15:44 hab python3[21371]: 2024-01-19 00:15:44 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e1206000f000000000000000000ca001f00000000000000000000000000000000000000000000000000000000000092cd'
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Handling data: 0x2 0x3 0x3 0xe8 0x0 0x22 0x45 0x90
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Getting Frame - 0x3 0x3 0xe8 0x0 0x22
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: validate: fc-[3] address-1001: count-34
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: getValues fc-[3] address-1001: count-34
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: send: [ReadHoldingRegistersResponse (34)]- b'0203440000000076c93ebe0000000076c93ebe0000000000004180000043460000431eb333436bb333436b0000436b8000436900000000000000000000000000000000000042487aff'
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Handling data: 0x2 0x3 0x8 0x4f 0x0 0x1 0xb7 0x8e
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Getting Frame - 0x3 0x8 0x4f 0x0 0x1
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: validate: fc-[3] address-2128: count-1
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: getValues fc-[3] address-2128: count-1
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: send: [ReadHoldingRegistersResponse (1)]- b'0203020000fc44'
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: MQTT message received: {
Jan 19 00:15:45 hab python3[21371]: "import_energy_active": 0.372,
Jan 19 00:15:45 hab python3[21371]: "l1_power_active": 16.000,
Jan 19 00:15:45 hab python3[21371]: "l2_power_active": 198.000,
Jan 19 00:15:45 hab python3[21371]: "l3_power_active": 158.000,
Jan 19 00:15:45 hab python3[21371]: "voltage_ln": 235.7,
Jan 19 00:15:45 hab python3[21371]: "l1n_voltage": 235.7,
Jan 19 00:15:45 hab python3[21371]: "l2n_voltage": 235,
Jan 19 00:15:45 hab python3[21371]: "l3n_voltage": 233.5,
Jan 19 00:15:45 hab python3[21371]: "frequency": 50,
Jan 19 00:15:45 hab python3[21371]: "l1_energy_active": 0.016,
Jan 19 00:15:45 hab python3[21371]: "l2_energy_active": 0.198,
Jan 19 00:15:45 hab python3[21371]: "l3_energy_active": 0.158,
Jan 19 00:15:45 hab python3[21371]: "l1_import_energy_active": 0.016,
Jan 19 00:15:45 hab python3[21371]: "l2_import_energy_active": 0.198,
Jan 19 00:15:45 hab python3[21371]: "l3_import_energy_active": 0.158,
Jan 19 00:15:45 hab python3[21371]: "export_energy_active": 0,
Jan 19 00:15:45 hab python3[21371]: "l1_export_energy_active": 0,
Jan 19 00:15:45 hab python3[21371]: "l2_export_energy_active": 0,
Jan 19 00:15:45 hab python3[21371]: "l3_export_energy_active": 0,
Jan 19 00:15:45 hab python3[21371]: "l1_current": 0.06788290,
Jan 19 00:15:45 hab python3[21371]: "l2_current": 0.84255319,
Jan 19 00:15:45 hab python3[21371]: "l3_current": 0.67665953
Jan 19 00:15:45 hab python3[21371]: }
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: [0, 0, 30409, 16062, 0, 0, 30409, 16062, 0, 0, 0, 16768, 0, 17222, 0, 17182, 45875, 17259, 45875, 17259, 0, 17259, 32768, 17257, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16968]
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: setValues[3] 1001:34
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: [4719, 15491, 49283, 15946, 51905, 15905, 4719, 15491, 49283, 15946, 51905, 15905, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1585, 15755, 45457, 16215, 14735, 16173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: setValues[3] 1101:82
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Handling data: 0x2 0x3 0x4 0x4c 0x0 0x52 0x4 0xe3
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Getting Frame - 0x3 0x4 0x4c 0x0 0x52
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: validate: fc-[3] address-1101: count-82
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: getValues fc-[3] address-1101: count-82
Jan 19 00:15:45 hab python3[21371]: 2024-01-19 00:15:45 DEBUG: send: [ReadHoldingRegistersResponse (82)]- b'0203a4126f3c83c0833e4acac13e21126f3c83c0833e4acac13e210000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006313d8bb1913f57398f3f2d000000000000000000000000000000000000000000000000000000007f33'
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:46 hab python3[21371]: 2024-01-19 00:15:46 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:47 hab python3[21371]: 2024-01-19 00:15:47 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:48 hab python3[21371]: 2024-01-19 00:15:48 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:49 hab python3[21371]: 2024-01-19 00:15:49 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: MQTT message received: {
Jan 19 00:15:50 hab python3[21371]: "import_energy_active": 0.369,
Jan 19 00:15:50 hab python3[21371]: "l1_power_active": 16.000,
Jan 19 00:15:50 hab python3[21371]: "l2_power_active": 199.000,
Jan 19 00:15:50 hab python3[21371]: "l3_power_active": 154.000,
Jan 19 00:15:50 hab python3[21371]: "voltage_ln": 235.8,
Jan 19 00:15:50 hab python3[21371]: "l1n_voltage": 235.8,
Jan 19 00:15:50 hab python3[21371]: "l2n_voltage": 235.2,
Jan 19 00:15:50 hab python3[21371]: "l3n_voltage": 233.7,
Jan 19 00:15:50 hab python3[21371]: "frequency": 50,
Jan 19 00:15:50 hab python3[21371]: "l1_energy_active": 0.016,
Jan 19 00:15:50 hab python3[21371]: "l2_energy_active": 0.199,
Jan 19 00:15:50 hab python3[21371]: "l3_energy_active": 0.154,
Jan 19 00:15:50 hab python3[21371]: "l1_import_energy_active": 0.016,
Jan 19 00:15:50 hab python3[21371]: "l2_import_energy_active": 0.199,
Jan 19 00:15:50 hab python3[21371]: "l3_import_energy_active": 0.154,
Jan 19 00:15:50 hab python3[21371]: "export_energy_active": 0,
Jan 19 00:15:50 hab python3[21371]: "l1_export_energy_active": 0,
Jan 19 00:15:50 hab python3[21371]: "l2_export_energy_active": 0,
Jan 19 00:15:50 hab python3[21371]: "l3_export_energy_active": 0,
Jan 19 00:15:50 hab python3[21371]: "l1_current": 0.06785411,
Jan 19 00:15:50 hab python3[21371]: "l2_current": 0.84608844,
Jan 19 00:15:50 hab python3[21371]: "l3_current": 0.65896448
Jan 19 00:15:50 hab python3[21371]: }
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043460000431ed4a2'
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: [0, 0, 60817, 16060, 0, 0, 60817, 16060, 0, 0, 0, 16768, 0, 17223, 0, 17178, 52429, 17259, 52429, 17259, 13107, 17259, 45875, 17257, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16968]
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: setValues[3] 1001:34
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: [4719, 15491, 50856, 15947, 45613, 15901, 4719, 15491, 50856, 15947, 45613, 15901, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63256, 15754, 39233, 16216, 45541, 16168, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: setValues[3] 1101:82
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:50 hab python3[21371]: 2024-01-19 00:15:50 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Handling data: 0x2 0x3 0x6 0xa4 0x0 0x17 0x44 0x9c
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Getting Frame - 0x3 0x6 0xa4 0x0 0x17
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: validate: fc-[3] address-1701: count-23
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: getValues fc-[3] address-1701: count-23
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e1206000f000000000000000000ca001f00000000000000000000000000000000000000000000000000000000000092cd'
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:51 hab python3[21371]: 2024-01-19 00:15:51 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Handling data: 0x2 0x3 0x3 0xe8 0x0 0x22 0x45 0x90
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Getting Frame - 0x3 0x3 0xe8 0x0 0x22
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: validate: fc-[3] address-1001: count-34
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: getValues fc-[3] address-1001: count-34
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: send: [ReadHoldingRegistersResponse (34)]- b'02034400000000ed913ebc00000000ed913ebc0000000000004180000043470000431acccd436bcccd436b3333436bb333436900000000000000000000000000000000000042487137'
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Handling data: 0x2 0x3 0x8 0x4f 0x0 0x1 0xb7 0x8e
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Getting Frame - 0x3 0x8 0x4f 0x0 0x1
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: validate: fc-[3] address-2128: count-1
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: getValues fc-[3] address-2128: count-1
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: send: [ReadHoldingRegistersResponse (1)]- b'0203020000fc44'
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Handling data: 0x2 0x3 0x4 0x4c 0x0 0x52 0x4 0xe3
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Getting Frame - 0x3 0x4 0x4c 0x0 0x52
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: validate: fc-[3] address-1101: count-82
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: getValues fc-[3] address-1101: count-82
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: send: [ReadHoldingRegistersResponse (82)]- b'0203a4126f3c83c6a83e4bb22d3e1d126f3c83c6a83e4bb22d3e1d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f7183d8a99413f58b1e53f2800000000000000000000000000000000000000000000000000000000f991'
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Handling data: 0x2 0x3 0x3 0xf2 0x0 0x6 0x64 0x4c
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Getting Frame - 0x3 0x3 0xf2 0x0 0x6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: Frame advanced, resetting header!!
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: validate: fc-[3] address-1011: count-6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: getValues fc-[3] address-1011: count-6
Jan 19 00:15:52 hab python3[21371]: 2024-01-19 00:15:52 DEBUG: send: [ReadHoldingRegistersResponse (6)]- b'02030c00004180000043470000431ae8a1'

My environment and configuration details can be found in the drawing

SolarEdge-Monitoring

Thanks in advance for any guidance to get this last step working........in preparation for adding a SE battery to the environment.

Struggling to get values from mqtt

Hi!
First thank you for this great piece of software. I was so annoyed when I realized SE does only work with that limited set of meters after I installed it...
However, I managed to provide all values from my meter to an mqtt topic (mapped to the specific values required by the program), but it seems these values are not really read? I see new values are pushed to mqtt all the time but nothing shows up in the debug log.
Will I need to map the mqtt values again in the values procedure of the mqtt.py?

I'm not that deep into programming, but maybe someone can support me on that?

Thanks
Malte

Bildschirmยญfoto1

Bildschirmยญfoto2

how to setup

hello
am running this on a raspberry pi and something is not okay
can someone please explain in detail how to setup this

in my scenario, i have SDM320 over USB rs485 and solaredge se3000
the logging levels show nothing useful (debug)
is there a way to know if the transferred data are correct
the goal is to achieve 0 export at the inverter

2023-01-18 03:03:08 DEBUG: Frame check failed, ignoring!! 2023-01-18 03:03:08 DEBUG: Resetting frame - Current Frame in buffer - 0x1 0x4 0x10 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x3d 0x7d 0x33 0x23 0x9d 0xb1 2023-01-18 03:03:08 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:08 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:08 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:08 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:08 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:08 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:08 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:08 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:09 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:09 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:09 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:09 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:09 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:09 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:09 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:09 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:10 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:10 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:10 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:10 DEBUG: Transaction failed. (device reports readiness to read but returned no data (device disconnected or multiple access on port?)) 2023-01-18 03:03:10 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:10 DEBUG: Frame - [b''] not ready 2023-01-18 03:03:10 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:10 DEBUG: Getting transaction 1 2023-01-18 03:03:10 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:10 DEBUG: Changing transaction state from "PROCESSING REPLY" to "TRANSACTION_COMPLETE" 2023-01-18 03:03:10 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:10 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:10 DEBUG: Current transaction state - TRANSACTION_COMPLETE 2023-01-18 03:03:10 DEBUG: Running transaction 102 2023-01-18 03:03:10 DEBUG: SEND: 0x1 0x4 0x1 0x56 0x0 0x4 0x10 0x25 2023-01-18 03:03:10 DEBUG: Changing state to IDLE - Last Frame End - None, Current Time stamp - 1674010990.561256 2023-01-18 03:03:10 DEBUG: New Transaction state "SENDING" 2023-01-18 03:03:10 DEBUG: Changing transaction state from "SENDING" to "WAITING FOR REPLY" 2023-01-18 03:03:10 DEBUG: Handling data: 0x1 0x4 0x8 0x43 0x58 0x25 0xe3 0x43 0x7 0x42 0x4e 0x6f 0xdf 2023-01-18 03:03:10 DEBUG: Frame check failed, ignoring!! 2023-01-18 03:03:10 DEBUG: Resetting frame - Current Frame in buffer - 0x1 0x4 0x8 0x43 0x58 0x25 0xe3 0x43 0x7 0x42 0x4e 0x6f 0xdf 2023-01-18 03:03:10 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:10 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:10 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:10 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:10 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:10 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:10 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:10 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:11 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:11 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:11 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:11 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:11 DEBUG: validate: fc-[3] address-1601: count-23 2023-01-18 03:03:11 DEBUG: getValues: fc-[3] address-1601: count-23 2023-01-18 03:03:11 DEBUG: send: [ReadHoldingRegistersResponse (23)]- b'02032e000000000005000500050005000000010000000f0001271027102710fc18fc18fc1805dc0078000000004e2000000a36' 2023-01-18 03:03:11 DEBUG: Frame - [b'\x02\x03\x06@\x00\x17\x04\xab'] not ready 2023-01-18 03:03:12 DEBUG: Handling data: 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 2023-01-18 03:03:12 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17 2023-01-18 03:03:12 DEBUG: Factory Request[ReadHoldingRegistersRequest': 3] 2023-01-18 03:03:12 DEBUG: Transaction failed. (device reports readiness to read but returned no data (device disconnected or multiple access on port?)) 2023-01-18 03:03:12 DEBUG: Frame advanced, resetting header!! 2023-01-18 03:03:12 DEBUG: Frame - [b''] not ready

QUESTION: MQTT integration

Hi Niels,

Its me again... hope you don't mind.

Would it be possible to send all the data of the SDM to MQTT too?
The gateway im using can accept 5 connections but I don't want the one script to get in the way of the other script.

As we are already recieving info from the SDM and pushing it to the inverter would it also be possible to push the data to MQTT in the same go?

Question: run the script on RPI in background

Hi Niels,

How do you run your script?
I tried running it via cron on my RPI but it fails for some reason.
I also tried to make a service of it but also this fails with a key error.

Any quick hints? Otherwise I will try and investigate some more.

Maikel

PS: thanks again for all your work! I love it thus far!

What / where to feed the kWh imported and exported

Hi @nmakel thanks for your solaredge proxy.
I'm feeding info from my Dutch P1 meter to Solaredge. This output provides separate fields for import & export
The current import/export W for solaredge is working fine with calculating export-import.

I'm struggling to understand what the solarEdge expects as values for the export & import KwH
I was feeding the meterposition (electricityDeliveredT1 + electricityDeliveredT2 & electricitySuppliedT1 + electricitySuppliedT2) to it by supplying the meter in export_energy_active and import_energy_active but that gives very odd bar in the solaredge app as it seems my total import and export in a single day.

Do you know what SolarEdge expects for this, is it a value that resets every day, or every hour, never (as I was expecting)?

Note this is what I get from my meter (using https://github.com/mcrapts/p1-reader to convert to MQTT)

{
  "versionInformation": 50,
  "timestamp": 1648374916,
  "equipmentIdentifier": "E0069000717977322",
  "electricityDeliveredT1": 1593648,
  "electricityDeliveredT2": 1337601,
  "electricitySuppliedT1": 148511,
  "electricitySuppliedT2": 297506,
  "tariffIndicator": 1,
  "electricityDeliveredActual": 0,
  "electricitySuppliedActual": 2608,
  "powerFailures": 41,
  "powerFailuresLong": 28,
  "powerFailureEventLog": "10|0-0:96.7.19|220326050040W|0004303445|220326050040W|0004303446|220326050039W|0004303448|220301082909W|0002155955|220301082909W|0002155955|220301082909W|0002155957|220204115736W|0000008462|220204115736W|0000008462|220204115736W|0000008464|220129113651W|0004300285",
  "voltageSagsL1": 11,
  "voltageSagsL2": 10,
  "voltageSagsL3": 6,
  "voltageSwellsL1": 15,
  "voltageSwellsL2": 15,
  "voltageSwellsL3": 16,
  "textMessage": "",
  "instantaneousVoltageL1": 233,
  "instantaneousVoltageL2": 231,
  "instantaneousVoltageL3": 231,
  "instantaneousCurrentL1": 4,
  "instantaneousCurrentL2": 3,
  "instantaneousCurrentL3": 3,
  "instantaneousActivePowerL1Plus": 0,
  "instantaneousActivePowerL2Plus": 0,
  "instantaneousActivePowerL3Plus": 0,
  "instantaneousActivePowerL1Min": 948,
  "instantaneousActivePowerL2Min": 883,
  "instantaneousActivePowerL3Min": 775,
  "deviceType1": "003",
  "equipmentIdentifier1": "G0073004116253431",
  "deviceValue1": 1037.661
}

semp-tcp.py integer error for port number

Hi Niels,

I know you made this semp-tcp version for my request and couldnt test it yourself.
I recieved the gateways and am testing it now.

The Meter is working via ModbusTCP, i have run the script with semp.rtu.py fine for the last couple of days.

I get this error with the script:

pi@raspberrypi4:~/eastronsolaredgetcp $ python3 semp-tcp.py
2020-12-14 14:43:59 INFO: Created <Thread(t_update_2, initial)>: meter1 sdm630 SDM630(192.168.1.108:8899, connectionType.TCP: timeout=1, retries=3, unit=0x1)
2020-12-14 14:44:00 INFO: Starting <Thread(t_update_2, started 3053270112)>
Traceback (most recent call last):
File "semp-tcp.py", line 251, in
confparser["server"].get("port", fallback=default_config["server"]["port"])
File "/home/pi/.local/lib/python3.7/site-packages/pymodbus/server/sync.py", line 616, in StartTcpServer
server = ModbusTcpServer(context, framer, identity, address, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/pymodbus/server/sync.py", line 339, in init
self.handler)
File "/usr/lib/python3.7/socketserver.py", line 452, in init
self.server_bind()
File "/usr/lib/python3.7/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
TypeError: an integer is required (got type str)

No success with StorEdge SE7K-RWS48BNN4 and SDM630MCT-RC + 3pcsESCT-RC100

I'm setting up a new StorEdge inverter and already had a SDM630 so this code would fit perfect!

The setup might be a bit different since I don't have normal CT:s, but rogowski coils.
https://www.aliexpress.com/item/32994844856.html

Therefore i'm not 100% sure what CT value I should set and how it affects. Since the meter is reporting correct values I don't understand what exactly this setting does.

I have tried this config:
`
[server]
device = /dev/serial/by-id/usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_0106F08D-if00-port0
meters = import_export

[import_export]
type=sdm630
device=/dev/serial/by-id/usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_010D5A07-if00-port0
baud=9600
src_address=1
dst_address=2
refresh_rate = 5
ct_current = 5
`

Unfortunately I don't really manage to get it to work. My inverter says communication error 3x6e.

Getting data from the meter seems to work. But also getting some strange errors in the log.

2021-04-29 09:26:01 DEBUG: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-04-29 09:26:01 DEBUG: [0, 0, 0, 0, 0, 0, 0, 0, 17873, 31295, 17623, 35063]
2021-04-29 09:26:01 DEBUG: [b'\x00\x00', b'\x00\x00']
2021-04-29 09:26:01 DEBUG: [b'\x00\x00', b'\x00\x00']
2021-04-29 09:26:01 DEBUG: [b'\x00\x00', b'\x00\x00']
2021-04-29 09:26:01 DEBUG: [b'\x00\x00', b'\x00\x00']
2021-04-29 09:26:01 DEBUG: [b'E\xd1', b'z?']
2021-04-29 09:26:02 DEBUG: [b'D\xd7', b'\x88\xf7']
2021-04-29 09:26:02 DEBUG: values: {'p1_voltage': 235.8428955078125, 'p2_voltage': 236.7672119140625, 'p3_voltage': 235.03369140625, 'p1_current': 2.44598388671875, 'p2_current': 3.5552978515625, 'p3_current': 8.40301513671875, 'p1_power_active': 218.265625, 'p2_power_active': 578.5353393554688, 'p3_power_active': 1906.537109375, 'p1_power_apparent': 228.78443908691406, 'p2_power_apparent': 727.11376953125, 'p3_power_apparent': 1909.166748046875, 'p1_power_reactive': 0.0, 'p2_power_reactive': -443.1054992675781, 'p3_power_reactive': 0.0, 'p1_power_factor': 0.9540228843688965, 'p2_power_factor': 0.7956600189208984, 'p3_power_factor': 0.9986225366592407, 'p1_phase_angle': -90.02694702148438, 'p2_phase_angle': -66.26799011230469, 'p3_phase_angle': -14.631210327148438, 'voltage_ln': 235.8812255859375, 'current_ln': 4.8004150390625, 'total_line_current': 14.404296875, 'total_power_active': 2703.338134765625, 'total_power_apparent': 2739.412353515625, 'total_power_reactive': -443.1054992675781, 'total_power_factor': 0.9744075536727905, 'total_phase_angle': -56.97538375854492, 'frequency': 50.039306640625, 'import_energy_active': 6013.00048828125, 'export_energy_active': 690.280029296875, 'import_energy_reactive': 24.600004196166992, 'export_energy_reactive': 1699.68017578125, 'total_energy_apparent': 6921.49609375, 'total_current': 33146.83203125, 'total_import_demand_power_active': 1966.701416015625, 'maximum_import_demand_power_apparent': 10556.521484375, 'import_demand_power_active': 0.0, 'maximum_import_demand_power_active': 0.0, 'export_demand_power_active': 0.0, 'maximum_export_demand_power_active': 0.0, 'total_demand_power_apparent': 2019.813720703125, 'maximum_demand_power_apparent': 10579.6533203125, 'neutral_demand_current': 5.019970893859863, 'maximum_neutral_demand_current': 31.911027908325195, 'p12_voltage': 408.58251953125, 'p23_voltage': 407.6905517578125, 'p31_voltage': 410.0390625, 'voltage_ll': 408.7706298828125, 'neutral_current': 5.25665283203125, 'p1n_voltage_thd': 1.7799999713897705, 'p2n_voltage_thd': 1.7200000286102295, 'p3n_voltage_thd': 1.6100000143051147, 'p1_current_thd': 75.54000091552734, 'p2_current_thd': 26.600000381469727, 'p3_current_thd': 6.900000095367432, 'voltage_ln_thd': 1.7033332586288452, 'current_thd': 36.3466682434082, 'p1_demand_current': 0.9893087148666382, 'p2_demand_current': 3.1454174518585205, 'p3_demand_current': 6.683976650238037, 'maximum_p1_demand_current': 33.19852066040039, 'maximum_p2_demand_current': 21.051992416381836, 'maximum_p3_demand_current': 22.1422176361084, 'p12_voltage_thd': 0.0, 'p23_voltage_thd': 0.0, 'p31_voltage_thd': 0.0, 'voltage_ll_thd': 0.0, 'total_energy_active': 6703.28076171875, 'total_energy_reactive': 1724.2801513671875}
2021-04-29 09:26:02 DEBUG: [31295, 17873, 59393, 17851, 31295, 17873, 59393, 17851, 62825, 17704, 17408, 17242, 41539, 17424, 20784, 17646, 57752, 17259, 55240, 17259, 50280, 17260, 2208, 17259, 25252, 17356, 19088, 17356, 55396, 17355, 1280, 17357, 10304, 16968]
2021-04-29 09:26:02 DEBUG: setValues[3] 1001:34
2021-04-29 09:26:02 DEBUG: [31295, 17873, 0, 0, 0, 0, 59393, 17851, 0, 0, 0, 0, 37356, 17452, 37356, 17452, 37356, 17452, 0, 0, 0, 0, 35063, 17623, 35063, 17623, 0, 0, 0, 0, 19448, 17880, 19448, 17880, 0, 0, 0, 0, 29382, 16249, 15064, 16244, 45152, 16203, 42426, 16255, 36225, 50141, 0, 0, 36225, 50141, 0, 0, 13977, 17707, 51409, 17252, 51016, 17461, 42326, 17646, 35584, 16412, 35328, 16483, 29376, 16646, 54898, 17653, 0, 0, 0, 0, 31242, 17660, 21065, 17257, 11989, 17466, 24246, 17604]
2021-04-29 09:26:02 DEBUG: setValues[3] 1101:82
2021-04-29 09:26:02 DEBUG: CRC invalid, discarding header!!
2021-04-29 09:26:02 DEBUG: Resetting frame - Current Frame in buffer - 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x85 0xcc 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 0x70 0x17 0x10 0x0 0x0 0x4b 0x20 0x0 0x0 0xb 0x16 0x12 0x34 0x56 0x79 0x0 0x0 0xff 0xff 0x89 0x4d 0xb3 0x3f 0x4 0x7e 0xb3 0x3f 0x44 0x7e 0x3 0x1d 0x4d 0x81 0xd5 0xed 0x70 0x17 0x96 0x12 0x34 0x56 0x79 0x50 0x0 0xaf 0xff 0x89 0x4d 0xb3 0x3f 0x44 0x7e 0xb3 0x3f 0x4 0x7e 0x83 0x1d 0x1 0x0 0x1 0x0 0x36 0x59 0xa9 0xbe 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x3e 0x3c 0x55 0x42 0x0 0x0 0x0 0x0 0x3e 0x3c 0x55 0x42 0x0 0x0 0x0 0x0 0x10 0x6d 0xe8 0x41 0x41 0x0 0x64 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x80 0xc 0x80 0xc 0x0 0x0 0x0 0x0 0x1a 0x34 0x0 0x0 0x3 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x5 0x20 0x56 0x43 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x6c 0x1c 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab
2021-04-29 09:26:02 DEBUG: Frame check failed, ignoring!!
2021-04-29 09:26:02 DEBUG: Resetting frame - Current Frame in buffer -
2021-04-29 09:26:03 DEBUG: Not a valid unit id - 112, ignoring!!
2021-04-29 09:26:03 DEBUG: Resetting frame - Current Frame in buffer - 0x70 0x17 0x10 0x0 0x0 0x4b 0x20 0x0 0x0 0x1d 0x3a 0x12 0x34 0x56 0x79 0x24 0x0 0xdb 0xff 0x8a 0x4d 0xb3 0x3f 0x4 0x7e 0xb3 0x3f 0x44 0x7e 0x8 0x1d 0x9a 0x6d 0x8a 0x60 0x60 0xea 0x0 0x0 0x2f 0x3 0x39 0x3 0x1b 0x3 0x48 0x3 0x78 0xec 0xff 0xff 0x88 0x13 0x88 0x13 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x16 0xb6 0xb6 0xc0 0x70 0x17 0x96 0x12 0x34 0x56 0x79 0x0 0x0 0xff 0xff 0x8a 0x4d 0xb3 0x3f 0x44 0x7e 0xb3 0x3f 0x4 0x7e 0x88 0x1d 0x32 0xae 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x87 0x54 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab
2021-04-29 09:26:04 DEBUG: Not a valid unit id - 112, ignoring!!
2021-04-29 09:26:04 DEBUG: Resetting frame - Current Frame in buffer - 0x70 0x17 0x10 0x0 0x0 0x4b 0x20 0x0 0x0 0xb 0x16 0x12 0x34 0x56 0x79 0x0 0x0 0xff 0xff 0x8b 0x4d 0xb3 0x3f 0x4 0x7e 0xb3 0x3f 0x44 0x7e 0x3 0x1d 0x46 0x39 0xd1 0x6d 0x70 0x17 0x96 0x12 0x34 0x56 0x79 0x50 0x0 0xaf 0xff 0x8b 0x4d 0xb3 0x3f 0x44 0x7e 0xb3 0x3f 0x4 0x7e 0x83 0x1d 0x1 0x0 0x1 0x0 0xb 0x17 0xb3 0xbe 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x83 0x3a 0x55 0x42 0x0 0x0 0x0 0x0 0x83 0x3a 0x55 0x42 0x0 0x0 0x0 0x0 0x10 0x6d 0xe8 0x41 0x41 0x0 0x64 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x80 0xc 0x80 0xc 0x0 0x0 0x0 0x0 0x1c 0x34 0x0 0x0 0x3 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x5 0x20 0xde 0x5 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x6e 0x84 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 0x70 0x17 0x10 0x0 0x0 0x4b 0x20 0x0 0x0 0xb 0x16 0x12 0x34 0x56 0x79 0x0 0x0 0xff 0xff 0x8c 0x4d 0xb3 0x3f 0x4 0x7e 0xb3 0x3f 0x44 0x7e 0xd 0x1d 0xdd 0x89 0xbf 0xc6 0x70 0x17 0x96 0x12 0x34 0x56 0x79 0x2c 0x0 0xd3 0xff 0x8c
2021-04-29 09:26:05 DEBUG: CRC invalid, discarding header!!
2021-04-29 09:26:05 DEBUG: Resetting frame - Current Frame in buffer - 0x4d 0xb3 0x3f 0x44 0x7e 0xb3 0x3f 0x4 0x7e 0x8d 0x1d 0xcc 0xcc 0x54 0x42 0x0 0x0 0x0 0x0 0x0 0x0 0xc0 0x41 0x9a 0x99 0x69 0x42 0x0 0x49 0xc5 0x47 0x0 0x0 0x70 0x42 0x0 0x0 0x70 0x42 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x1 0x0 0x0 0x0 0x41 0x0 0x64 0x0 0xec 0xf2 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x47 0xda 0x2 0x3 0x6 0x40 0x0 0x17 0x4 0xab 0x70 0x17 0x10 0x0 0x0 0x4b 0x20 0x0 0x0 0x1d 0x3a 0x12 0x34 0x56 0x79 0x24 0x0 0xdb 0xff 0x8d 0x4d 0xb3 0x3f 0x4 0x7e 0xb3 0x3f 0x44 0x7e 0x8 0x1d 0x9c 0x6d 0x8a 0x60 0x60 0xea 0x0 0x0 0x2f 0x3 0x39 0x3 0x1b 0x3 0x48 0x3 0x78 0xec 0xff 0xff 0x88 0x13 0x88 0x13 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x90 0x7f 0xf6 0x52 0x70 0x17 0x96 0x12 0x34 0x56 0x79 0x0 0x0 0xff 0xff 0x8d 0x4d 0xb3 0x3f 0x44 0x7e 0xb3 0x3f 0x4 0x7e 0x88 0x1d 0x28 0xda 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x83 0xf0
2021-04-29 09:26:05 DEBUG: Frame check failed, ignoring!!
2021-04-29 09:26:05 DEBUG: Resetting frame - Current Frame in buffer -
2021-04-29 09:26:06 DEBUG: Getting Frame - 0x3 0x6 0x40 0x0 0x17
2021-04-29 09:26:06 DEBUG: Factory Request[ReadHoldingRegistersRequest: 3]
2021-04-29 09:26:06 DEBUG: Frame advanced, resetting header!!
2021-04-29 09:26:06 DEBUG: validate: fc-[3] address-1601: count-23
2021-04-29 09:26:06 DEBUG: getValues fc-[3] address-1601: count-23
2021-04-29 09:26:06 DEBUG: send: [ReadRegisterResponse (23)]- b'02032e04d200000005000500050005000000000000000f0001271027102710fc18fc18fc1805dc0078000000004e2000007700'

KeyError 'meter1'

Hi,

Tried to run your script and setup meters = meter1 in de conf file.

Get the following error:
Traceback (most recent call last): File "semp-rtu.py", line 158, in <module> address = confparser[meter].getint("dst_address", fallback=default_config["meter"]["dst_address"]) File "/usr/lib/python3.7/configparser.py", line 958, in __getitem__ raise KeyError(key) KeyError: 'meter1'

Starting script as a service

Hi all,

I have an issue with starting this script semp-rtu.py as a service. See below steps I have taken.

Anybody knows what step(s) are missing?

openhabian@rpizero:~ $ cd /lib/systemd/system/
openhabian@rpizero:/lib/systemd/system $ sudo nano solaredge_meterproxy.service

**[Unit]
Description=solaredge_meterproxy
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/python3 /home/openhabian/shared/solaredge_meterproxy/semp-rtu.py
Restart=on-abort

[Install]
WantedBy=multi-user.target**

openhabian@rpizero:/lib/systemd/system $ sudo chmod 644 /lib/systemd/system/solaredge_meterproxy.service
openhabian@rpizero:/lib/systemd/system $ chmod +x /home/openhabian/shared/solaredge_meterproxy/semp-rtu.py
openhabian@rpizero:/lib/systemd/system $ sudo nano solaredge_meterproxy.service
openhabian@rpizero:/lib/systemd/system $ sudo systemctl daemon-reload
openhabian@rpizero:/lib/systemd/system $ sudo systemctl enable solaredge_meterproxy.service

chmod +x /home/openhabian/shared/solaredge_meterproxy/.

When starting the service the log gives the error below

sudo journalctl -f -u solaredge_meterproxy.service

Nov 18 15:53:10 rpizero systemd[1]: Started solaredge_meterproxy.
Nov 18 15:53:15 rpizero python3[31057]: Traceback (most recent call last):
Nov 18 15:53:15 rpizero python3[31057]: File "/home/openhabian/shared/solaredge_meterproxy/semp-rtu.py", line 153, in
Nov 18 15:53:15 rpizero python3[31057]: address = confparser[meter].getint("dst_address", fallback=default_config["meters"]["dst_address"])
Nov 18 15:53:15 rpizero python3[31057]: File "/usr/lib/python3.9/configparser.py", line 960, in getitem
Nov 18 15:53:15 rpizero python3[31057]: raise KeyError(key)
Nov 18 15:53:15 rpizero python3[31057]: KeyError: ''
Nov 18 15:53:15 rpizero systemd[1]: solaredge_meterproxy.service: Main process exited, code=exited, status=1/FAILURE
Nov 18 15:53:15 rpizero systemd[1]: solaredge_meterproxy.service: Failed with result 'exit-code'.
Nov 18 15:53:15 rpizero systemd[1]: solaredge_meterproxy.service: Consumed 2.287s CPU time.

semp-tcp.py issue

When I run semp-tcp.py i get this error:

root@SEmeterproxy:/solaredge_meterproxy# python3 semp-tcp.py -v
2023-05-13 10:56:28 WARNING: No meters defined in semp-tcp.conf
Traceback (most recent call last):
File "semp-tcp.py", line 256, in
server = StartTcpServer(
TypeError: StartTcpServer() got an unexpected keyword argument 'framer'
root@SEmeterproxy:/solaredge_meterproxy#

this is my configuration file (semp-tcp.conf)
server]

Serving IP address.

optional, default: all interfaces

address = "192.168.40.70"

Serving port.

optional, default: 5502

#port = 4196

Modbus frame type, set to rtu for Modbus RTU over TCP

optional, default: socket

#framer = socket
framer = "rtu"

Logging level, CRITICAL, ERROR, WARNING, INFO, DEBUG

optional, default: INFO

log_level = DEBUG

Masqueraded meters, comma separated.

optional, default: ''

#meters = meter1, meter2

Meters defined in [server] need a config section, one per meter.

Depending on the type of meter that is to be masqueraded, you can

define a number of generic and type specific variables.

Modbus address of the meter as defined in the SolarEdge inverter.

This value needs to be unique.

optional, default: 2

#dst_address = 2

Source meter type, which corresponds to a script in /devices.

The generic.py device returns null values.

optional, default: generic

#type = generic

Masqueraded serial number.

Need not be correct, must be unique, must be an integer.

optional, default: 987654

#serial_number = 987654

Current transformer amperage rating.

optional, default: 5

ct_current = 10

Current transformer direction inversion, set to 1 if required.

optional, default: 0

#ct_inverted = 0

Offset between phases, set to 0, 90, 120 or 180.

optional, default: 0

#phase_offset = 120

Number of seconds between value refreshes.

It also mentions "no meters defined" while on default ... but when I set meters = meter1 in semp-tcp.conf I get this...

root@SEmeterproxy:/solaredge_meterproxy# python3 semp-tcp.py -v
Traceback (most recent call last):
File "semp-tcp.py", line 153, in
address = confparser[meter].getint("dst_address", fallback=default_config["meters"]["dst_address"])
File "/usr/lib/python3.8/configparser.py", line 960, in getitem
raise KeyError(key)
KeyError: 'meter1'
root@SEmeterproxy:/solaredge_meterproxy#

Then it hangs on line 153 ...

Support Iammeter WEM3080T

Hello.

Is it possible to support Iammeter WEM3080T ? I have one and I have everything (solaredge inverter, rs485 adapter etc) to test it.

Thanks

Timeout error

Hi Niels,

So with your solaredge_modbus script and SDM_modbus script i checked that these RS485 connection work.
I have run semp-rtu.py and get the following error first:

Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/serial/serialutil.py", line 361, in timeout
timeout + 1 # test if it's a number, will throw a TypeError if not...
TypeError: can only concatenate str (not "int") to str

In semp.conf:

//# Serving serial timeout, depends on line speed.
//# optional, default: 0.1
timeout = 1.0

The next error it raises in the same go:

Traceback (most recent call last):
File "semp-rtu.py", line 268, in
timeout=confparser["server"].get("timeout", fallback=default_config["server"]["timeout"])
File "/home/pi/.local/lib/python3.7/site-packages/pymodbus/server/sync.py", line 686, in StartSerialServer
server = ModbusSerialServer(context, framer, identity, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/pymodbus/server/sync.py", line 541, in init
if self._connect():
File "/home/pi/.local/lib/python3.7/site-packages/pymodbus/server/sync.py", line 557, in _connect
parity=self.parity)
File "/usr/local/lib/python3.7/dist-packages/serial/serialutil.py", line 223, in init
self.timeout = timeout
File "/usr/local/lib/python3.7/dist-packages/serial/serialutil.py", line 363, in timeout
raise ValueError("Not a valid timeout: {!r}".format(timeout))
ValueError: Not a valid timeout: '1.0'

What could this be?

"DEBUG: Frame check failed, ignoring!!" on SE6K and SDM630 V2

Hi,
Im trying to run tool but I've got error message likethis:

2022-02-24 07:11:38 DEBUG: setValues[3] 1101:82
2022-02-24 07:11:38 DEBUG: Frame check failed, ignoring!!
2022-02-24 07:11:38 DEBUG: Resetting frame - Current Frame in buffer - 0x80 0x0 0xf8 0x0 0x80 0x0 0x0 0xf8 0x0 0xf8 0x78 0x0 0x0 0x0 0xf8 0x78 0xf 0x80 0x0 0xf8 0x0 0x80 0x0 0x0 0xf8 0x0 0xf8 0x78 0x0 0x0 0x0 0xf8 0x78 0xf

My config (kemp-rtu.conf):

[server]
device = /dev/ttySC0
baud = 38400
parity = E
#timeout = 1
log_level = INFO
meters = sdm

[sdm]
baud = 38400
device = /dev/ttySC1
dst_address = 2
src_address = 5
type = sdm630
serial_number = 123321
ct_current = 5
ct_inverted = 0
phase_offset = 120
refresh_rate = 5

I'm using semp-rtu.py

I can confirm that connection with SDM meter is working correctly.
What am I doing wrong?

Difference in exported power

Hi Niels,

Script is running fine now with RTU, thanks again!

Im seeing difference in what Solaredge is saying I exported and my grid meter.

I have compared the actual power import/export and those seem to match with the actual power the grid meter is showing.

Any clues what could cause this?

Question: feed values from API to inverter?

Nice project @nmakel!

I got two questions:

  1. Is it possible to add an "api-device", where you can point to a data source providing measurements similar to the devices you support. And with this I am thinking to parse my providers load-monitor (Tibber Pulse (Swedish page)) and return that data back to this application in a giant JSON file or so. This could of course also be adapted to other providers, if there is some data available, as long as it's correct formatted.
    What you think?

  2. Is it possible to both read modbus over tcp from the inverter (to collect metrics) and feed the inverter with information over tcp (add measurements at the mainfuses) at the same time?

Kind regards,
Tobias

No values reported

Hi Niels,
I'm trying to masquerade my ESMR5 smart meter as a Import/Export meter. SetApp shows a working connection ('OK') but no values are indicated, and I can't read them back through the TCP_MODBUS interface as well (which I also use to read out the production).

My implementation is as follows: I receive an MQTT message from the smart meter (actually via Beeclear), this is parsed by a Node-Red flow to an MQTT message (the flow was largely already there):

{"Vmains":233,"Imains":2.1,"Pin":404.7,"Pin_min":401,"Pin_max":411,"Pout":0,"Pout_min":0,"Pout_max":0,"Ein":0.0011298999,"Eout":0,"sumEin":4785344,"sumEout":3958941,"Po":404.7,"En":0.0011298999,"timestamp":"1614979040701"}

Some of these values are used in the return DICT from the 'values' call. I don't get any errors running the scripts.
All this is running on a Raspberry with an RS485 connection to the SolarEdge inverter.

What I am doing wrong?

jonesPD_metering_proxy_0305.zip

SDM630 and missing values

Hi,

May I ask why values like "l1_energy_active", "l2_energy_active", "l3_energy_active", "l1_import_energy_active", "l2_import_energy_active", "l3_import_energy_active", "l1_export_energy_active", "l2_export_energy_active", "l3_export_energy_active", "l1_energy_reactive", "l2_energy_reactive", "l3_energy_reactive", "l1_energy_apparent", "l2_energy_apparent", "l3_energy_apparent" are not taken from meter - it looks like those values are available in data from this meter?
Is there some cose why it is not passed to SE?

Regards,
Sebu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.