So, habe einen weiteren Pi aufgesetzt (aktuelles Nightly) und deine zwei Dateien in bezug_solaredge Verzeichnis kopiert.
Anbei der Log-Auszug. Sieht schon sehr gut aus!!!
EVU Watt: -569.0
EVU Bezug: 6452266
EVU Einspeisung: 1398578
passen vom Betrag, wobei ich aktuell nicht einspeise, sondern beziehe. d.h. das Vorzeichen bei EVU Watt pastt nicht.
Auch gleiche unten eine weitere Fehlermeldung, ob die aber was mit unserem Thread zu tun ist, bin ich mir nicht sicher.
Code: Alles auswählen
2021-12-24 09:15:13: PID: 20856: SolarEdge EVU: Beginning update
2021-12-24 09:15:13: PID: 20856: pymodbus.client.sync: Connection to Modbus server established. Socket ('192.168.178.48', 35035)
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Current transaction state - IDLE
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Running transaction 1
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x3 0x9d 0xe 0x0 0x5
2021-12-24 09:15:13: PID: 20856: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: RECV: 0x0 0x1 0x0 0x0 0x0 0xd 0x1 0x3 0xa 0xfd 0xc7 0xff 0x80 0xff 0x11 0xff 0x38 0x0 0x0
2021-12-24 09:15:13: PID: 20856: pymodbus.framer.socket_framer: Processing: 0x0 0x1 0x0 0x0 0x0 0xd 0x1 0x3 0xa 0xfd 0xc7 0xff 0x80 0xff 0x11 0xff 0x38 0x0 0x0
2021-12-24 09:15:13: PID: 20856: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Adding transaction 1
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Getting transaction 1
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-24 09:15:13: PID: 20856: pymodbus.payload: [64967, 65408, 65297, 65336, 0]
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Running transaction 2
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: SEND: 0x0 0x2 0x0 0x0 0x0 0x6 0x1 0x3 0x9c 0xff 0x0 0x4
2021-12-24 09:15:13: PID: 20856: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-24 09:15:13: PID: 20856: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: RECV: 0x0 0x2 0x0 0x0 0x0 0xb 0x1 0x3 0x8 0x0 0xb 0x0 0xe 0x0 0x14 0xff 0xff
2021-12-24 09:15:14: PID: 20856: pymodbus.framer.socket_framer: Processing: 0x0 0x2 0x0 0x0 0x0 0xb 0x1 0x3 0x8 0x0 0xb 0x0 0xe 0x0 0x14 0xff 0xff
2021-12-24 09:15:14: PID: 20856: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Adding transaction 2
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Getting transaction 2
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-24 09:15:14: PID: 20856: pymodbus.payload: [11, 14, 20, 65535]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Running transaction 3
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: SEND: 0x0 0x3 0x0 0x0 0x0 0x6 0x1 0x3 0x9d 0x4 0x0 0x8
2021-12-24 09:15:14: PID: 20856: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: RECV: 0x0 0x3 0x0 0x0 0x0 0x13 0x1 0x3 0x10 0x59 0x15 0x58 0x91 0x5a 0x25 0x9a 0x9c 0x99 0x81 0x9a 0xd0 0x9b 0x84 0xff 0xfe
2021-12-24 09:15:14: PID: 20856: pymodbus.framer.socket_framer: Processing: 0x0 0x3 0x0 0x0 0x0 0x13 0x1 0x3 0x10 0x59 0x15 0x58 0x91 0x5a 0x25 0x9a 0x9c 0x99 0x81 0x9a 0xd0 0x9b 0x84 0xff 0xfe
2021-12-24 09:15:14: PID: 20856: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Adding transaction 3
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Getting transaction 3
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-24 09:15:14: PID: 20856: pymodbus.payload: [22805, 22673, 23077, 39580, 39297, 39632, 39812, 65534]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Running transaction 4
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: SEND: 0x0 0x4 0x0 0x0 0x0 0x6 0x1 0x3 0x9d 0xc 0x0 0x2
2021-12-24 09:15:14: PID: 20856: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: RECV: 0x0 0x4 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x13 0x88 0xff 0xfe
2021-12-24 09:15:14: PID: 20856: pymodbus.framer.socket_framer: Processing: 0x0 0x4 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x13 0x88 0xff 0xfe
2021-12-24 09:15:14: PID: 20856: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Adding transaction 4
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Getting transaction 4
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-24 09:15:14: PID: 20856: pymodbus.payload: [5000, 65534]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Running transaction 5
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: SEND: 0x0 0x5 0x0 0x0 0x0 0x6 0x1 0x3 0x9d 0x1e 0x0 0x4
2021-12-24 09:15:14: PID: 20856: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: RECV: 0x0 0x5 0x0 0x0 0x0 0xb 0x1 0x3 0x8 0xf 0xb3 0x17 0x44 0xe 0x46 0xff 0xfe
2021-12-24 09:15:14: PID: 20856: pymodbus.framer.socket_framer: Processing: 0x0 0x5 0x0 0x0 0x0 0xb 0x1 0x3 0x8 0xf 0xb3 0x17 0x44 0xe 0x46 0xff 0xfe
2021-12-24 09:15:14: PID: 20856: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Adding transaction 5
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Getting transaction 5
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-24 09:15:14: PID: 20856: pymodbus.payload: [4019, 5956, 3654, 65534]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Running transaction 6
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: SEND: 0x0 0x6 0x0 0x0 0x0 0x6 0x1 0x3 0x9d 0x2a 0x0 0x2
2021-12-24 09:15:14: PID: 20856: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: RECV: 0x0 0x6 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x62 0x74 0x2a
2021-12-24 09:15:14: PID: 20856: pymodbus.framer.socket_framer: Processing: 0x0 0x6 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0x62 0x74 0x2a
2021-12-24 09:15:14: PID: 20856: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Adding transaction 6
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Getting transaction 6
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-24 09:15:14: PID: 20856: pymodbus.payload: [98, 29738]
2021-12-24 09:15:14: PID: 20856: pymodbus.payload: [b'\x00b', b't*']
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Running transaction 7
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: SEND: 0x0 0x7 0x0 0x0 0x0 0x6 0x1 0x3 0x9d 0x22 0x0 0x2
2021-12-24 09:15:14: PID: 20856: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: RECV: 0x0 0x7 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0xd5 0x67 0xf6
2021-12-24 09:15:14: PID: 20856: pymodbus.framer.socket_framer: Processing: 0x0 0x7 0x0 0x0 0x0 0x7 0x1 0x3 0x4 0x0 0xd5 0x67 0xf6
2021-12-24 09:15:14: PID: 20856: pymodbus.factory: Factory Response[ReadHoldingRegistersResponse: 3]
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Adding transaction 7
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Getting transaction 7
2021-12-24 09:15:14: PID: 20856: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-24 09:15:14: PID: 20856: pymodbus.payload: [213, 26614]
2021-12-24 09:15:14: PID: 20856: pymodbus.payload: [b'\x00\xd5', b'g\xf6']
2021-12-24 09:15:14: PID: 20856: root: EVU Watt: -569.0
2021-12-24 09:15:14: PID: 20856: root: EVU Bezug: 6452266
2021-12-24 09:15:14: PID: 20856: root: EVU Einspeisung: 13985782
2021-12-24 09:15:14: PID: 20856: SolarEdge EVU: Update completed successfully
2021-12-24 09:15:14: speicherleistung 0 speichersoc 10 (LV1) at 1270 loadvars loadvars.sh
2021-12-24 09:15:14: pv1watt 0 pv2watt pvwatt 0 ladeleistung 0 llalt 0 nachtladen 1 nachtladen 0 minimalA 6 maximalA 16 (LV1) at 1275 loadvars loadvars.sh
2021-12-24 09:15:14: lla1 0 llv1 0 llas11 llas21 mindestuberschuss 500 abschaltuberschuss 5 lademodus 3 (LV1) at 1276 loadvars loadvars.sh
2021-12-24 09:15:14: lla2 0 llv2 0 llas12 llas22 sofortll 10 hausverbrauch 0 wattbezug -569 uberschuss 569 (LV1) at 1277 loadvars loadvars.sh
2021-12-24 09:15:14: lla3 0 llv3 0 llas13 llas23 soclp1 100 soclp2 (LV1) at 1278 loadvars loadvars.sh
2021-12-24 09:15:14: EVU 1:V/1A 2: V/1A 3: V/2A (LV1) at 1279 loadvars loadvars.sh
2021-12-24 09:15:14: lp1enabled 1 lp2enabled 1 lp3enabled 1 (LV1) at 1280 loadvars loadvars.sh
2021-12-24 09:15:14: plugstatlp1 plugstatlp2 0 plugstatlp3 0 (LV1) at 1281 loadvars loadvars.sh
2021-12-24 09:15:14: chargestatlp1 chargestatlp2 0 chargestatlp3 0 (LV1) at 1282 loadvars loadvars.sh
2021-12-24 09:15:16: **** Regulation loop needs 5 seconds (LV0) at 55 cleanup /var/www/html/openWB/regel.sh
2021-12-24 09:15:21: **** Regulation loop start **** (LV1) at 70 main /var/www/html/openWB/regel.sh
Traceback (most recent call last):
File "runs/readmodbus.py", line 17, in <module>
request = client.read_holding_registers(readreg,reganzahl,unit=modbusid)
File "/usr/local/lib/python2.7/dist-packages/pymodbus/client/common.py", line 114, in read_holding_registers
return self.execute(request)
File "/usr/local/lib/python2.7/dist-packages/pymodbus/client/sync.py", line 108, in execute
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusSerialClient(rtu baud[9600])]
loadvars.sh: Zeile 118: /var/www/html/openWB/ramdisk/evseplugstate: Datei oder Verzeichnis nicht gefunden
2021-12-24 09:15:21: Modbus EVSE read CP1 issue - using previous state '' (LV0) at 119 loadvars loadvars.sh
loadvars.sh: Zeile 124: [: : Ganzzahliger Ausdruck erwartet.
2021-12-24 09:15:22: PID: 22012: SolarEdge: Beginning update
ZUm Zeitpunkt des Aktivieren (grüner Pfeil) wird der Bezug als Export angezeigt, die Größenordnung passt aber. (im Debug-Log wird ja auch ein negativer Wert ausgeweisen bei "EVU Watt")
Auch klasse: (!)
jetzt habe ich auch in der EVU Anzeige Kommazahlen, was bisher nur Ganzzahlen waren. Und die Powerfaktoren werden angezeigt, die bisher nur "0" waren