NEWS
Hargassner Anbindung ModBus läuft nicht
-
@wendy2702 sagte in Hargassner Anbindung ModBus läuft nicht:
Und Register mit 4xxxx sind eigentlich Input Register .
nee, input ist 30000, holding ist 40000
@FloK
Es gibt einige Hersteller, die seltsamerweise auch die RO-Werte als Holdingregister verwenden.
Dann muss dort Abfrage aktiviert werden. -
@homoran 40000 steht bei allem in der Herstellerliste. Und alles sind Holding laut EMail von denen.
-
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
Habs gerade mit 287 statt 40287 versucht aber ging auch nicht.
mit welcher Meldung im log?
dann nimm mal 287 und hake "Alias verwenden" an.
-
@homoran Schaut schon besser aus. Instanz bleibt grün aber bekomme noch keine Werte. Auch der Datenpunkt erscheint bei Objekten nicht mehr.
Hier das LOG:modbus.0 2024-10-25 09:23:02.545 debug [DevID_1] Poll start --------------------- modbus.0 2024-10-25 09:22:57.473 debug [DevID_1] Poll start --------------------- modbus.0 2024-10-25 09:22:52.410 debug [DevID_1] Poll start --------------------- modbus.0 2024-10-25 09:22:52.409 info Connected to slave 192.168.178.41 modbus.0 2024-10-25 09:22:52.331 info Can not execute task add for ID undefined: Parameter "id" needs to be of type "string" but type "undefined" has been passed modbus.0 2024-10-25 09:22:52.322 debug Add undefined: {"type":"state","common":{"name":"Füllgrad des Puffers","role":"value","type":"number","read":true,"write":true,"def":0,"unit":"%"},"native":{"regType":"holdingRegs","address":-39714,"deviceId":1,"type":"floatle","len":2,"offset":0,"factor":1,"poll":true}} modbus.0 2024-10-25 09:22:52.322 error Invalid object: {"type":"state","common":{"name":"Füllgrad des Puffers","role":"value","type":"number","read":true,"write":true,"def":0,"unit":"%"},"native":{"regType":"holdingRegs","address":-39714,"deviceId":1,"type":"floatle","len":2,"offset":0,"factor":1,"poll":true}} modbus.0 2024-10-25 09:22:52.322 error Invalid data holdingRegisters/0: {"_address":287,"deviceId":1,"name":"Pufferfüllgrad","description":"Füllgrad des Puffers","unit":"%","type":"floatle","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"enum.rooms.enum_5","poll":true,"wp":"","cw":"","isScale":"","address":-39714,"fullId":"modbus.0.0"} modbus.0 2024-10-25 09:22:52.322 debug Initialize Objects for holdingRegs: [{"_address":287,"deviceId":1,"name":"Pufferfüllgrad","description":"Füllgrad des Puffers","unit":"%","type":"floatle","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"enum.rooms.enum_5","poll":true,"wp":"","cw":"","isScale":"","address":-39714}] modbus.0 2024-10-25 09:22:52.322 debug Initialize Objects for inputRegs: [] modbus.0 2024-10-25 09:22:52.322 debug Initialize Objects for coils: [] modbus.0 2024-10-25 09:22:52.322 debug Initialize Objects for disInputs: [] modbus.0 2024-10-25 09:22:52.321 error Invalid holdingRegisters address: -39714 modbus.0 2024-10-25 09:22:52.261 info starting. Version 6.3.2 in C:/iobroker/KieserHome/node_modules/iobroker.modbus, node: v18.20.4, js-controller: 6.0.11 modbus.0 2024-10-25 09:22:52.126 debug Plugin sentry Initialize Plugin (enabled=true)
-
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
2024-10-25 09:22:52.322 error Invalid data holdingRegisters/0: {"_address":287,"deviceId":1,"name":"Pufferfüllgrad","description":"Füllgrad des Puffers","unit":"%","type":"floatle","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"enum.rooms.enum_5","poll":true,"wp":"","cw":"","isScale":"","address":-39714,"fullId":"modbus.0.0"}
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
Schaut schon besser aus.
mit welcher Einstellung?
-
@flok
Sieht nach falschem Daten Typ aus -
@warp735 Beschreibung sagt Float. So ist es auch hinterlegt
-
-
@flok ....und im Register??
-
-
@flok und was steht im log mit 287 und ohne Aias verwenden?
-
@homoran Hier das LOG mit den gerade gezeigten Einstellungen:
modbus.0 2024-10-25 09:29:28.833 debug [DevID_1] Poll start --------------------- modbus.0 2024-10-25 09:29:23.761 debug [DevID_1] Poll start --------------------- modbus.0 2024-10-25 09:29:23.761 info Connected to slave 192.168.178.41 modbus.0 2024-10-25 09:29:23.692 info Can not execute task add for ID undefined: Parameter "id" needs to be of type "string" but type "undefined" has been passed modbus.0 2024-10-25 09:29:23.684 debug Add undefined: {"type":"state","common":{"name":"Füllgrad des Puffers","role":"value","type":"number","read":true,"write":true,"def":0,"unit":"%"},"native":{"regType":"holdingRegs","address":-39714,"deviceId":1,"type":"floatsw","len":2,"offset":0,"factor":1,"poll":true}} modbus.0 2024-10-25 09:29:23.684 error Invalid object: {"type":"state","common":{"name":"Füllgrad des Puffers","role":"value","type":"number","read":true,"write":true,"def":0,"unit":"%"},"native":{"regType":"holdingRegs","address":-39714,"deviceId":1,"type":"floatsw","len":2,"offset":0,"factor":1,"poll":true}} modbus.0 2024-10-25 09:29:23.684 error Invalid data holdingRegisters/0: {"_address":287,"deviceId":1,"name":"Pufferfüllgrad","description":"Füllgrad des Puffers","unit":"%","type":"floatsw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"enum.rooms.enum_5","poll":true,"wp":"","cw":"","isScale":"","address":-39714,"fullId":"modbus.0.0"} modbus.0 2024-10-25 09:29:23.684 debug Initialize Objects for holdingRegs: [{"_address":287,"deviceId":1,"name":"Pufferfüllgrad","description":"Füllgrad des Puffers","unit":"%","type":"floatsw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"enum.rooms.enum_5","poll":true,"wp":"","cw":"","isScale":"","address":-39714}] modbus.0 2024-10-25 09:29:23.684 debug Initialize Objects for inputRegs: [] modbus.0 2024-10-25 09:29:23.684 debug Initialize Objects for coils: [] modbus.0 2024-10-25 09:29:23.683 debug Initialize Objects for disInputs: [] modbus.0 2024-10-25 09:29:23.682 error Invalid holdingRegisters address: -39714 modbus.0 2024-10-25 09:29:23.615 info starting. Version 6.3.2 in C:/iobroker/KieserHome/node_modules/iobroker.modbus, node: v18.20.4, js-controller: 6.0.11 modbus.0 2024-10-25 09:29:23.486 debug Plugin sentry Initialize Plugin (enabled=true)
Hier das LOG ohne Alias:
modbus.0 2024-10-25 09:42:29.140 debug [DevID_1] Poll start --------------------- modbus.0 2024-10-25 09:42:24.078 debug [DevID_1] Poll start --------------------- modbus.0 2024-10-25 09:42:24.078 info Connected to slave 192.168.178.41 modbus.0 2024-10-25 09:42:23.969 info Can not execute task add for ID undefined: Parameter "id" needs to be of type "string" but type "undefined" has been passed modbus.0 2024-10-25 09:42:23.961 debug Add undefined: {"type":"state","common":{"name":"Füllgrad des Puffers","role":"value","type":"number","read":true,"write":true,"def":0,"unit":"%"},"native":{"regType":"holdingRegs","address":-39714,"deviceId":1,"type":"floatsw","len":2,"offset":0,"factor":1,"poll":true}} modbus.0 2024-10-25 09:42:23.961 error Invalid object: {"type":"state","common":{"name":"Füllgrad des Puffers","role":"value","type":"number","read":true,"write":true,"def":0,"unit":"%"},"native":{"regType":"holdingRegs","address":-39714,"deviceId":1,"type":"floatsw","len":2,"offset":0,"factor":1,"poll":true}} modbus.0 2024-10-25 09:42:23.961 error Invalid data holdingRegisters/0: {"_address":-39714,"deviceId":1,"name":"Pufferfüllgrad","description":"Füllgrad des Puffers","unit":"%","type":"floatsw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"enum.rooms.enum_5","poll":true,"wp":"","cw":"","isScale":"","address":-39714,"fullId":"modbus.0.0"} modbus.0 2024-10-25 09:42:23.961 debug Initialize Objects for holdingRegs: [{"_address":-39714,"deviceId":1,"name":"Pufferfüllgrad","description":"Füllgrad des Puffers","unit":"%","type":"floatsw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"enum.rooms.enum_5","poll":true,"wp":"","cw":"","isScale":"","address":-39714}] modbus.0 2024-10-25 09:42:23.961 debug Initialize Objects for inputRegs: [] modbus.0 2024-10-25 09:42:23.961 debug Initialize Objects for coils: [] modbus.0 2024-10-25 09:42:23.960 debug Initialize Objects for disInputs: [] modbus.0 2024-10-25 09:42:23.960 error Invalid holdingRegisters address: -39714 modbus.0 2024-10-25 09:42:23.900 info starting. Version 6.3.2 in C:/iobroker/KieserHome/node_modules/iobroker.modbus, node: v18.20.4, js-controller: 6.0.11 modbus.0 2024-10-25 09:42:23.769 debug Plugin sentry Initialize Plugin (enabled=true)
-
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
ohne Alias:
immer noch?
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
_address":-39714
da ist was faul
-
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
2024-10-25 09:29:23.692 info Can not execute task add for ID undefined: Parameter "id" needs to be of type "string" but type "undefined" has been passed
da haben wir den undefined!
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
mit den gerade gezeigten Einstellungen:
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
Invalid holdingRegisters address: -39714
und
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
holdingRegs: [{"_address":287
da stimmt irgendwas gar nicht
-
@homoran Gerade gesehen, die Holding Adresse hatte sich geändert als ich Alias entfernt hatte. Hier das log mit ohne Alias aber wieder mit Adresse 287:
modbus.0 2024-10-25 09:49:10.759 info Disconnected from slave 192.168.178.41 modbus.0 2024-10-25 09:49:10.759 debug Closing client on purpose. modbus.0 2024-10-25 09:49:09.757 debug Cleaning up request fifo. modbus.0 2024-10-25 09:49:09.757 debug Clearing timeout of the current request. modbus.0 2024-10-25 09:49:09.756 debug Socket closed with error modbus.0 2024-10-25 09:49:09.755 warn [DevID_1] Poll error count: 1 code: {"err":"timeout","timeout":5000} modbus.0 2024-10-25 09:49:09.754 error Client in error state. modbus.0 2024-10-25 09:49:09.753 error Request timed out. modbus.0 2024-10-25 09:49:09.753 warn Error: undefined modbus.0 2024-10-25 09:49:04.749 debug [DevID_1/holdingRegs] Poll address 287 - 2 registers modbus.0 2024-10-25 09:49:04.749 debug Initialization of scale factors done! modbus.0 2024-10-25 09:49:04.749 debug [DevID_1] Poll start --------------------- modbus.0 2024-10-25 09:49:04.748 info Connected to slave 192.168.178.41 modbus.0 2024-10-25 09:49:04.644 debug Add holdingRegisters.1.287_Pufferfüllgrad: {"_id":"holdingRegisters.1.287_Pufferfüllgrad","type":"state","common":{"name":"Füllgrad des Puffers","role":"value","type":"number","read":true,"write":true,"def":0,"unit":"%"},"native":{"regType":"holdingRegs","address":287,"deviceId":1,"type":"floatsw","len":2,"offset":0,"factor":1,"poll":true}} modbus.0 2024-10-25 09:49:04.643 debug Initialize Objects for holdingRegs: [{"_address":"287","deviceId":1,"name":"Pufferfüllgrad","description":"Füllgrad des Puffers","unit":"%","type":"floatsw","len":2,"factor":1,"offset":0,"formula":"","role":"value","room":"enum.rooms.enum_5","poll":true,"wp":"","cw":"","isScale":"","address":287,"id":"holdingRegisters.1.287_Pufferfüllgrad"}] modbus.0 2024-10-25 09:49:04.643 debug Initialize Objects for inputRegs: [] modbus.0 2024-10-25 09:49:04.643 debug Initialize Objects for coils: [] modbus.0 2024-10-25 09:49:04.643 debug Initialize Objects for disInputs: [] modbus.0 2024-10-25 09:49:04.583 info starting. Version 6.3.2 in C:/iobroker/KieserHome/node_modules/iobroker.modbus, node: v18.20.4, js-controller: 6.0.11 modbus.0 2024-10-25 09:49:04.450 debug Plugin sentry Initialize Plugin (enabled=true)
-
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
die Holding Adresse hatte sich geändert als ich Alias entfernt hatte
Das ist ja Sinn der Sache!
ich wollte sehen mit welchem Offset das passiert (40000 oder 40001)
-
@homoran sagte in Hargassner Anbindung ModBus läuft nicht:
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
Was ist jetzt damit?
welche ID hast du?
-
@homoran Geräte ID habe ich 1 eingestellt. Slave ID steht auch auf 1
-
@flok Liest du auch die Meldungen?
Da steht@flok sagte in Hargassner Anbindung ModBus läuft nicht:
2024-10-25 09:22:52.331 info Can not execute task add for ID undefined: Parameter "id" needs to be of type "string" but type "undefined" has been passed
@flok sagte in Hargassner Anbindung ModBus läuft nicht:
Geräte ID habe ich 1 eingestellt.
und welche ID hat das Gerät?
Lass dir doch nicht alles aus der Nase ziehen!
-
@homoran Sorry, bin kein Profi. Verstehe ich nicht. Was meins damit?