NEWS
[Aufruf] Adapter: M-Bus
-
Irgendwie scheine ich mich zum Desasterkönig zu entwickeln.
Der Adapter ließ sich nun promblemlos über die URL installieren.
TCP eingerichtet und das erste Gerät wurde ausgelesen. Dann die Wärmezähler 2 bis 4 hinzugefügt und schon gab es das nächste Problem. Gerät mit der ID 4 wurde nicht gefunden. Im Log Fehler ohne Ende. Alle Versuche über Adapterdinstallation und Neuinstallation führten nur dazu, dass nun gar nichts mehr ging und mein TCP-IP Converter neu gestartet werden musste.
Frust pur. Ich habe gestern dann den M-Bus Adapter abgeschaltet. Heute Morgen kam mir dann die Idee den Adapter zu löschen und den Raspi zu rebooten. Und siehe da, nach Neuinstallation und Einrichtung des M-Bus Adapters wurde das Gerät mit der ID 1 erkannt und ausgelesen.
Ich habe dann noch das Standard-Aktualisierungsintervall auf 43200 Sek hochgesetzt. Bei der Einrichtung der Geräte 2 - 4 ist mir dann aufgefallen, das trotz des eingestellten Standard-Aktualisierungsintervall von 43200 Sek der Geräte-Aktualisierungsintervall immer noch auf 3600 Sek voreingestellt blieb. Fügt man nach dem Abspeichern der Konfiguration noch weitere Geräte hinzu, so hat nun das Eingabefeld des Geräte-Aktualisierungsintervalls gar keine Voreinstellung mehr.
Ich teste dann mal weiter, insbesondere die neue Funktion des auf Anforderung auslesen. Mir ist allerdings noch völlig unklar wie ich die updateNow Funktion ansprechen kann.
-
Gerät mit der ID 4 wurde nicht gefunden. Im Log Fehler ohne Ende. `
Wenn Du das Log hier posten würdest könnte ich vllt helfen. So kann ich nichts tun.
Alle Versuche über Adapterdinstallation und Neuinstallation führten nur dazu, dass nun gar nichts mehr ging und mein TCP-IP Converter neu gestartet werden musste.
Frust pur. Ich habe gestern dann den M-Bus Adapter abgeschaltet. Heute Morgen kam mir dann die Idee den Adapter zu löschen und den Raspi zu rebooten. Und siehe da, nach Neuinstallation und Einrichtung des M-Bus Adapters wurde das Gerät mit der ID 1 erkannt und ausgelesen. `
An sich sollten De- und neuinstallationen sowas von unnötig sein. Und ja im zweifel verursachst Du damit mehr Probleme als Du löst. Der Reboot war ggf eine gute Idee. Aber das ist alles gerade Raten weil ohne Log … blöd ...
Ich habe dann noch das Standard-Aktualisierungsintervall auf 43200 Sek hochgesetzt. Bei der Einrichtung der Geräte 2 - 4 ist mir dann aufgefallen, das trotz des eingestellten Standard-Aktualisierungsintervall von 43200 Sek der Geräte-Aktualisierungsintervall immer noch auf 3600 Sek voreingestellt blieb. Fügt man nach dem Abspeichern der Konfiguration noch weitere Geräte hinzu, so hat nun das Eingabefeld des Geräte-Aktualisierungsintervalls gar keine Voreinstellung mehr. `
Hast Du mal nen Screenshot? Hast Du die Adapter-Einstellungen nach Hochsetzen der Zeit in dem einen Tab gespeichert bevor Du die weiteren Geräte im anderen Tab hinzugefügt hast? Ein Screenshot könnte hier super helfen. So kann ich leider weiter nur raten
Ich teste dann mal weiter, insbesondere die neue Funktion des auf Anforderung auslesen. Mir ist allerdings noch völlig unklar wie ich die updateNow Funktion ansprechen kann. `
Manuell indem Du auf den "Objekte" Tab gehst und zu den mbus.0 Objekten. Dort suchst Du so einen updateNow Datenounkt und hast dann da wo der Wert steht einen Button zum Drücken oder (wenn Expertenmodus aktiviert ist) einen Stift, da drauf kommt eine checkbox, die anhaken und auf das Häkchen. Alle weiteren einfach nur mit dem häckchen wieder absenden. Muss angehakt sein.
Oder per Javascript dann per Blockly "Steure objekt" den Wert auf "true" setzen oder per
setState("mbus.0.....updteNow", true, false);
-
Ich dann noch einmal. :mrgreen:
Also den Log von gestern kann ich dir leider nicht mehr zur Verfügung stellen, den habe ich gelöscht. Doof, ich weiß. :roll:
Hier der aktuelle Log:
! ` > Drücke Strg+A und danach Strg+C, um den Inhalt in die Zwischenablage zu kopieren. Klicke irgendwo, um das Fenster zu schliessen.
mbus.0 2018-03-29 09:42:35.171 error M-Bus Devices 2 errored from 4
mbus.0 2018-03-29 09:42:35.170 error M-Bus ID 4 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:42:35.166 info Process: 4
mbus.0 2018-03-29 09:41:55.732 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:41:55.731 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:41:55.728 info Process: 2
mbus.0 2018-03-29 09:41:54.740 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:41:54.738 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:41:54.736 info Process: 2
mbus.0 2018-03-29 09:41:53.888 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:41:53.887 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:41:53.885 info Process: 2
mbus.0 2018-03-29 09:41:51.585 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:41:51.584 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:41:51.582 info Process: 2
mbus.0 2018-03-29 09:40:00.830 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:40:00.829 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:40:00.823 info Process: 2
mbus.0 2018-03-29 09:39:45.602 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:39:45.601 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:39:45.599 info Process: 2
mbus.0 2018-03-29 09:39:44.405 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:39:44.404 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:39:44.402 info Process: 2
mbus.0 2018-03-29 09:38:49.863 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:38:49.862 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:38:49.859 info Process: 2
mbus.0 2018-03-29 09:37:51.827 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:37:51.826 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:37:51.824 info Process: 2
web.0 2018-03-29 09:29:10.055 info 2018-03-29T07:29:10.055Z Connected system.user.admin
web.0 2018-03-29 07:54:47.948 info 2018-03-29T05:54:47.947Z Connected system.user.admin
web.0 2018-03-29 07:53:54.902 info 2018-03-29T05:53:54.902Z Connected system.user.admin
web.0 2018-03-29 07:53:54.175 info 2018-03-29T05:53:54.175Z Connected system.user.admin
web.0 2018-03-29 07:53:53.499 info 2018-03-29T05:53:53.499Z Connected system.user.admin
web.0 2018-03-29 07:53:53.296 info 2018-03-29T05:53:53.295Z Connected system.user.admin
web.0 2018-03-29 07:53:36.598 info 2018-03-29T05:53:36.598Z Connected system.user.admin
web.0 2018-03-29 07:53:20.531 info 2018-03-29T05:53:20.530Z Connected system.user.admin
web.0 2018-03-29 07:53:04.735 info 2018-03-29T05:53:04.729Z Connected system.user.admin
web.0 2018-03-29 07:50:07.265 info 2018-03-29T05:50:07.265Z Connected system.user.admin
host.ioBroker-RPi1 2018-03-29 07:50:06.275 info instance system.adapter.vis.0 terminated while should be started once
vis.0 2018-03-29 07:49:58.655 error No license found for vis. Please get one on https://iobroker.net !
vis.0 2018-03-29 07:49:58.641 info starting. Version 1.0.4 in /opt/iobroker/node_modules/iobroker.vis, node: v6.12.0
vis.0 2018-03-29 07:49:58.563 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 07:49:56.429 info 'system.adapter.vis.0' enabled
host.ioBroker-RPi1 2018-03-29 07:49:56.416 info object change system.adapter.vis.0
mbus.0 2018-03-29 07:37:54.183 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 07:37:54.182 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 07:37:54.178 info Process: 2
mbus.0 2018-03-29 07:37:51.919 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 07:37:51.918 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 07:37:51.905 info Process: 2
mbus.0 2018-03-29 07:23:43.408 info List of port: [{'comName':'/dev/ttyAMA0'}]
mbus.0 2018-03-29 06:20:29.461 info Process: 4
mbus.0 2018-03-29 06:20:20.008 info Process: 3
mbus.0 2018-03-29 06:20:10.739 info Process: 2
mbus.0 2018-03-29 06:20:01.349 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-29 06:20:01.348 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-29 06:20:01.347 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-29 06:20:01.345 info Process: 1
mbus.0 2018-03-29 06:20:01.344 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-29 06:20:01.339 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-29 06:20:01.327 info starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-29 06:20:01.251 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:19:59.394 info instance system.adapter.mbus.0 started with pid 1014
host.ioBroker-RPi1 2018-03-29 06:19:57.351 info instance system.adapter.mbus.0 terminated with code 0 (OK)
Caught 2018-03-29 06:19:57.351 error by controller[0]: at closeTag (/opt/iobroker/node_modules/xml2js/node_modules/sax/lib/sax.js:889:7)
Caught 2018-03-29 06:19:57.351 error by controller[0]: at emitNode (/opt/iobroker/node_modules/xml2js/node_modules/sax/lib/sax.js:629:5)
Caught 2018-03-29 06:19:57.350 error by controller[0]: at emit (/opt/iobroker/node_modules/xml2js/node_modules/sax/lib/sax.js:624:35)
Caught 2018-03-29 06:19:57.349 error by controller[0]: at Object.onclosetag (/opt/iobroker/node_modules/xml2js/lib/parser.js:261:26)
Caught 2018-03-29 06:19:57.329 error by controller[0]: at Parser.emit (events.js:188:7)
Caught 2018-03-29 06:19:57.329 error by controller[0]: at emitOne (events.js:96:13)
Caught 2018-03-29 06:19:57.326 error by controller[0]: at Parser. (/opt/iobroker/node_modules/xml2js/lib/parser.js:303:18)
Caught 2018-03-29 06:19:57.326 error by controller[0]: at /opt/iobroker/node_modules/node-mbus/index.js:132:35
Caught 2018-03-29 06:19:57.326 error by controller[0]: at /opt/iobroker/node_modules/iobroker.mbus/main.js:148:9
Caught 2018-03-29 06:19:57.326 error by controller[0]: at initializeDeviceObjects (/opt/iobroker/node_modules/iobroker.mbus/main.js:187:30)
Caught 2018-03-29 06:19:57.325 error by controller[0]: TypeError: Cannot read property 'deviceNamespace' of undefined
mbus.0 2018-03-29 06:19:57.262 info terminating
mbus.0 2018-03-29 06:19:57.252 warn Exception: TypeError: Cannot read property 'deviceNamespace' of undefined
mbus.0 2018-03-29 06:19:57.249 error at closeTag (/opt/iobroker/node_modules/xml2js/node_modules/sax/lib/sax.js:889:7)
mbus.0 2018-03-29 06:19:57.249 error at emitNode (/opt/iobroker/node_modules/xml2js/node_modules/sax/lib/sax.js:629:5)
mbus.0 2018-03-29 06:19:57.249 error at emit (/opt/iobroker/node_modules/xml2js/node_modules/sax/lib/sax.js:624:35)
mbus.0 2018-03-29 06:19:57.249 error at Object.onclosetag (/opt/iobroker/node_modules/xml2js/lib/parser.js:261:26)
mbus.0 2018-03-29 06:19:57.249 error at Parser.emit (events.js:188:7)
mbus.0 2018-03-29 06:19:57.249 error at emitOne (events.js:96:13)
mbus.0 2018-03-29 06:19:57.249 error at Parser. (/opt/iobroker/node_modules/xml2js/lib/parser.js:303:18)
mbus.0 2018-03-29 06:19:57.249 error at /opt/iobroker/node_modules/node-mbus/index.js:132:35
mbus.0 2018-03-29 06:19:57.249 error at /opt/iobroker/node_modules/iobroker.mbus/main.js:148:9
mbus.0 2018-03-29 06:19:57.249 error at initializeDeviceObjects (/opt/iobroker/node_modules/iobroker.mbus/main.js:187:30)
mbus.0 2018-03-29 06:19:57.249 error TypeError: Cannot read property 'deviceNamespace' of undefined
mbus.0 2018-03-29 06:19:57.248 error uncaught exception: Cannot read property 'deviceNamespace' of undefined
host.ioBroker-RPi1 2018-03-29 06:19:56.871 info stopInstance system.adapter.mbus.0 killing pid 1002
host.ioBroker-RPi1 2018-03-29 06:19:56.870 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-29 06:19:56.868 info object change system.adapter.mbus.0
mbus.0 2018-03-29 06:19:48.212 info Process: 3
mbus.0 2018-03-29 06:19:38.884 info Process: 2
mbus.0 2018-03-29 06:19:38.285 info List of port: [{'comName':'/dev/ttyAMA0'}]
mbus.0 2018-03-29 06:19:29.550 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-29 06:19:29.549 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-29 06:19:29.547 info Process: 1
mbus.0 2018-03-29 06:19:29.545 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-29 06:19:29.541 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-29 06:19:29.527 info starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-29 06:19:29.448 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:19:27.584 info instance system.adapter.mbus.0 started with pid 1002
host.ioBroker-RPi1 2018-03-29 06:19:25.105 info instance system.adapter.mbus.0 terminated with code 0 (OK)
mbus.0 2018-03-29 06:19:25.076 info terminating
host.ioBroker-RPi1 2018-03-29 06:19:25.061 info stopInstance system.adapter.mbus.0 killing pid 949
host.ioBroker-RPi1 2018-03-29 06:19:25.060 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-29 06:19:25.059 info object change system.adapter.mbus.0
mbus.0 2018-03-29 06:19:06.009 info List of port: [{'comName':'/dev/ttyAMA0'}]
mbus.0 2018-03-29 06:19:01.420 info Process: 2
mbus.0 2018-03-29 06:18:52.074 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-29 06:18:52.072 info Process: 1
mbus.0 2018-03-29 06:18:52.071 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-29 06:18:52.066 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-29 06:18:52.054 info starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-29 06:18:51.977 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:18:50.122 info instance system.adapter.mbus.0 started with pid 949
host.ioBroker-RPi1 2018-03-29 06:18:47.643 info instance system.adapter.mbus.0 terminated with code 0 (OK)
mbus.0 2018-03-29 06:18:47.618 info terminating
host.ioBroker-RPi1 2018-03-29 06:18:47.600 info stopInstance system.adapter.mbus.0 killing pid 896
host.ioBroker-RPi1 2018-03-29 06:18:47.600 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-29 06:18:47.599 info object change system.adapter.mbus.0
mbus.0 2018-03-29 06:18:26.302 info List of port: [{'comName':'/dev/ttyAMA0'}]
mbus.0 2018-03-29 06:18:09.632 info Process: 1
mbus.0 2018-03-29 06:18:09.630 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-29 06:18:09.624 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-29 06:18:09.608 info starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-29 06:18:09.510 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:18:07.702 info instance system.adapter.mbus.0 started with pid 896
host.ioBroker-RPi1 2018-03-29 06:18:05.221 info instance system.adapter.mbus.0 terminated with code 0 (OK)
mbus.0 2018-03-29 06:18:05.201 info terminating
host.ioBroker-RPi1 2018-03-29 06:18:05.189 info stopInstance system.adapter.mbus.0 killing pid 884
host.ioBroker-RPi1 2018-03-29 06:18:05.189 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-29 06:18:05.188 info object change system.adapter.mbus.0
mbus.0 2018-03-29 06:17:39.334 info List of port: [{'comName':'/dev/ttyAMA0'}]
mbus.0 2018-03-29 06:17:16.794 info Process: 1
mbus.0 2018-03-29 06:17:16.792 info Schedule initialization for M-Bus-ID 1 with update interval 3600
mbus.0 2018-03-29 06:17:16.787 info Initialize M-Bus TCP to 192.xxx.xxxx.xx:1001 with timeout 0
mbus.0 2018-03-29 06:17:16.775 info starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-29 06:17:16.699 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:17:14.901 info instance system.adapter.mbus.0 started with pid 884
host.ioBroker-RPi1 2018-03-29 06:17:12.449 info instance system.adapter.mbus.0 terminated with code 0 (OK)
mbus.0 2018-03-29 06:17:12.394 info terminating
host.ioBroker-RPi1 2018-03-29 06:17:12.385 info stopInstance system.adapter.mbus.0 killing pid 777
host.ioBroker-RPi1 2018-03-29 06:17:12.385 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-29 06:17:12.381 info object change system.adapter.mbus.0
mbus.0 2018-03-29 06:15:47.694 info List of port: [{'comName':'/dev/ttyAMA0'}]
mbus.0 2018-03-29 06:15:41.830 error M-Bus Connection failed. Please check configuration.
mbus.0 2018-03-29 06:15:41.829 error Error: No connection possible to MBus Host 127.0.0.1:3493
mbus.0 2018-03-29 06:15:41.817 info Initialize M-Bus TCP to 127.0.0.1:3493 with timeout 0
mbus.0 2018-03-29 06:15:41.804 info starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-29 06:15:41.714 info States connected to redis: 127.0.0.1:6379
iobroker 2018-03-29 06:15:39.753 info exit 0
iobroker 2018-03-29 06:15:39.739 info host.ioBroker-RPi1 object system.adapter.mbus.0 created
host.ioBroker-RPi1 2018-03-29 06:15:39.726 info instance system.adapter.mbus.0 started with pid 777
host.ioBroker-RPi1 2018-03-29 06:15:39.713 info object change system.adapter.mbus.0
iobroker 2018-03-29 06:15:39.653 info host.ioBroker-RPi1 object system.adapter.mbus.0.alive created
iobroker 2018-03-29 06:15:39.612 info host.ioBroker-RPi1 object system.adapter.mbus.0.connected created
iobroker 2018-03-29 06:15:39.569 info host.ioBroker-RPi1 object system.adapter.mbus.0.memHeapUsed created
iobroker 2018-03-29 06:15:39.534 info host.ioBroker-RPi1 object system.adapter.mbus.0.memHeapTotal created
iobroker 2018-03-29 06:15:39.496 info host.ioBroker-RPi1 object system.adapter.mbus.0.memRss created
iobroker 2018-03-29 06:15:39.461 info host.ioBroker-RPi1 object system.adapter.mbus.0.uptime created
iobroker 2018-03-29 06:15:39.421 info host.ioBroker-RPi1 object system.adapter.mbus.0.inputCount created
iobroker 2018-03-29 06:15:39.382 info host.ioBroker-RPi1 object system.adapter.mbus.0.outputCount created
iobroker 2018-03-29 06:15:39.321 info host.ioBroker-RPi1 object mbus.0.info created
iobroker 2018-03-29 06:15:39.286 info host.ioBroker-RPi1 object mbus.0.info.connection created
iobroker 2018-03-29 06:15:39.267 info host.ioBroker-RPi1 create instance mbus
iobroker 2018-03-29 06:15:37.412 info add mbus
web.0 2018-03-29 06:14:51.248 info system.adapter.admin.0: logging true
admin.0 2018-03-29 06:14:51.242 info system.adapter.admin.0: logging true
node-red.0 2018-03-29 06:14:51.241 info system.adapter.admin.0: logging true
node-red.0 2018-03-29 06:14:51.237 info system.adapter.admin.0: logging true
admin.0 2018-03-29 06:14:51.240 info system.adapter.admin.0: logging true
modbus.0 2018-03-29 06:14:51.239 info system.adapter.admin.0: logging true
javascript.0 2018-03-29 06:14:51.236 info system.adapter.admin.0: logging true
history.0 2018-03-29 06:14:51.236 info system.adapter.admin.0: logging true
javascript.0 2018-03-29 06:14:51.234 info system.adapter.admin.0: logging true
modbus.1 2018-03-29 06:14:51.229 info system.adapter.admin.0: logging true
rpi2.0 2018-03-29 06:14:51.229 info system.adapter.admin.0: logging true
admin.0 2018-03-29 06:14:51.221 info Change log subscriber state: true
node-red.0 2018-03-29 06:14:28.243 info States connected to redis: 127.0.0.1:6379
node-red.0 2018-03-29 06:14:27.983 warn 29 Mar 06:14:27 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
modbus.1 2018-03-29 06:14:20.108 info Connected to slave 192.xxx.xxx.xx
modbus.1 2018-03-29 06:14:19.814 info starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.modbus, node: v6.12.0
modbus.1 2018-03-29 06:14:19.716 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:14:17.679 info instance system.adapter.modbus.1 started with pid 705
modbus.0 2018-03-29 06:14:17.005 info Connected to slave 192.xxx.xxx.xx
modbus.0 2018-03-29 06:14:15.926 info starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.modbus, node: v6.12.0
modbus.0 2018-03-29 06:14:15.848 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:14:13.688 info instance system.adapter.modbus.0 started with pid 685
node-red.0 2018-03-29 06:14:11.828 info Starting node-red: –max-old-space-size=128 /opt/iobroker/node_modules/iobroker.node-red/node_modules/node-red/red.js -v --settings /opt/iobroker/iobroker-data/node-red/settings.js
node-red.0 2018-03-29 06:14:11.695 info starting. Version 1.5.1 in /opt/iobroker/node_modules/iobroker.node-red, node: v6.12.0
node-red.0 2018-03-29 06:14:11.619 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:14:09.813 info instance system.adapter.node-red.0 started with pid 641
rpi2.0 2018-03-29 06:14:07.353 info starting. Version 0.3.2 in /opt/iobroker/node_modules/iobroker.rpi2, node: v6.12.0
rpi2.0 2018-03-29 06:14:07.275 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:14:05.679 info instance system.adapter.rpi2.0 started with pid 613
javascript.0 2018-03-29 06:14:05.508 info received all objects
javascript.0 2018-03-29 06:14:04.962 info received all states
javascript.0 2018-03-29 06:14:04.570 info requesting all objects
javascript.0 2018-03-29 06:14:04.566 info requesting all states
javascript.0 2018-03-29 06:14:04.551 info starting. Version 3.4.0 in /opt/iobroker/node_modules/iobroker.javascript, node: v6.12.0
javascript.0 2018-03-29 06:14:04.482 info States connected to redis: 127.0.0.1:6379
history.0 2018-03-29 06:12:59.443 info starting. Version 1.6.3 in /opt/iobroker/node_modules/iobroker.history, node: v6.12.0
history.0 2018-03-29 06:12:59.352 info States connected to redis: 127.0.0.1:6379
web.0 2018-03-29 06:12:59.368 info http server listening on port 8082
web.0 2018-03-29 06:12:59.358 info socket.io server listening on port 8082
web.0 2018-03-29 06:12:58.886 info starting. Version 2.1.9 in /opt/iobroker/node_modules/iobroker.web, node: v6.12.0
host.ioBroker-RPi1 2018-03-29 06:12:58.801 info instance system.adapter.javascript.0 started with pid 598
admin.0 2018-03-29 06:12:58.622 info Repository received successfully.
web.0 2018-03-29 06:12:58.425 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:12:57.447 info instance system.adapter.history.0 started with pid 588
host.ioBroker-RPi1 2018-03-29 06:12:53.942 info Update repository 'default' under 'http://download.iobroker.net/sources-dist.json'
admin.0 2018-03-29 06:12:53.779 info Request actual repository...
admin.0 2018-03-29 06:12:53.531 info Use link 'http://localhost:8081' to configure.
admin.0 2018-03-29 06:12:53.530 info http server listening on port 8081
admin.0 2018-03-29 06:12:51.638 info received all objects
admin.0 2018-03-29 06:12:50.975 info received all states
host.ioBroker-RPi1 2018-03-29 06:12:50.899 info instance system.adapter.web.0 started with pid 581
admin.0 2018-03-29 06:12:50.238 info requesting all objects
admin.0 2018-03-29 06:12:50.234 info requesting all states
admin.0 2018-03-29 06:12:50.187 info starting. Version 2.0.9 in /opt/iobroker/node_modules/iobroker.admin, node: v6.12.0
admin.0 2018-03-29 06:12:50.067 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:12:46.908 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-29 06:12:46.879 info instance system.adapter.admin.0 started with pid 571
host.ioBroker-RPi1 2018-03-29 06:12:46.769 info starting 8 instances
host.ioBroker-RPi1 2018-03-29 06:12:46.731 info 24 instances found
host.ioBroker-RPi1 2018-03-29 06:12:46.703 info InMemoryDB connected
host.ioBroker-RPi1 2018-03-29 06:12:46.668 info inMem-objects listening on port 9001
host.ioBroker-RPi1 2018-03-29 06:12:46.322 info ip addresses: 192.168.178.63 fe80::724e:d3a7:a29a:dc56
host.ioBroker-RPi1 2018-03-29 06:12:46.320 info hostname: ioBroker-RPi1, node: v6.12.0
host.ioBroker-RPi1 2018-03-29 06:12:46.318 info Copyright (c) 2014-2017 bluefox, 2014 hobbyquaker
host.ioBroker-RPi1 2018-03-29 06:12:46.303 info iobroker.js-controller version 1.2.3 js-controller starting
host.ioBroker-RPi1 2018-03-29 06:12:31.137 info Do not restart adapter system.adapter.mbus.0 because disabled or deleted
host.ioBroker-RPi1 2018-03-29 06:12:31.137 error instance system.adapter.mbus.0 terminated with code 0 (OK)
host.ioBroker-RPi1 2018-03-29 06:12:29.595 info instance system.adapter.modbus.0 terminated with code null ()
host.ioBroker-RPi1 2018-03-29 06:12:29.595 warn instance system.adapter.modbus.0 terminated due to SIGTERM
host.ioBroker-RPi1 2018-03-29 06:12:29.592 info instance system.adapter.javascript.0 terminated with code null ()
host.ioBroker-RPi1 2018-03-29 06:12:29.592 warn instance system.adapter.javascript.0 terminated due to SIGTERM
host.ioBroker-RPi1 2018-03-29 06:12:29.589 info instance system.adapter.rpi2.0 terminated with code null ()
host.ioBroker-RPi1 2018-03-29 06:12:29.588 warn instance system.adapter.rpi2.0 terminated due to SIGTERM
host.ioBroker-RPi1 2018-03-29 06:12:29.583 info instance system.adapter.history.0 terminated with code null ()
host.ioBroker-RPi1 2018-03-29 06:12:29.582 warn instance system.adapter.history.0 terminated due to SIGTERM
host.ioBroker-RPi1 2018-03-29 06:12:29.575 info instance system.adapter.node-red.0 terminated with code null ()
host.ioBroker-RPi1 2018-03-29 06:12:29.574 warn instance system.adapter.node-red.0 terminated due to SIGTERM
host.ioBroker-RPi1 2018-03-29 06:12:29.568 info instance system.adapter.modbus.1 terminated with code null ()
host.ioBroker-RPi1 2018-03-29 06:12:29.567 warn instance system.adapter.modbus.1 terminated due to SIGTERM
host.ioBroker-RPi1 2018-03-29 06:12:29.554 info instance system.adapter.web.0 terminated with code null ()
host.ioBroker-RPi1 2018-03-29 06:12:29.553 warn instance system.adapter.web.0 terminated due to SIGTERM
host.ioBroker-RPi1 2018-03-29 06:12:29.547 warn stopInstance system.adapter.modbus.1 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.547 info stopInstance system.adapter.modbus.1
host.ioBroker-RPi1 2018-03-29 06:12:29.547 warn stopInstance system.adapter.modbus.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.546 info stopInstance system.adapter.modbus.0
host.ioBroker-RPi1 2018-03-29 06:12:29.546 warn stopInstance system.adapter.node-red.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.546 info stopInstance system.adapter.node-red.0
host.ioBroker-RPi1 2018-03-29 06:12:29.545 warn stopInstance system.adapter.admin.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.545 info stopInstance system.adapter.admin.0
host.ioBroker-RPi1 2018-03-29 06:12:29.544 warn stopInstance system.adapter.rpi2.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.544 info stopInstance system.adapter.rpi2.0
host.ioBroker-RPi1 2018-03-29 06:12:29.543 info stopInstance system.adapter.vis-justgage.0
host.ioBroker-RPi1 2018-03-29 06:12:29.542 info stopInstance system.adapter.vis-metro.0
host.ioBroker-RPi1 2018-03-29 06:12:29.542 info stopInstance system.adapter.vis-fancyswitch.0
host.ioBroker-RPi1 2018-03-29 06:12:29.541 info stopInstance system.adapter.vis-timeandweather.0
host.ioBroker-RPi1 2018-03-29 06:12:29.541 info stopInstance system.adapter.vis-bars.0
host.ioBroker-RPi1 2018-03-29 06:12:29.540 info stopInstance system.adapter.vis-hqwidgets.0
host.ioBroker-RPi1 2018-03-29 06:12:29.540 info stopInstance system.adapter.vis.0
host.ioBroker-RPi1 2018-03-29 06:12:29.539 info stopInstance system.adapter.mobile.0
host.ioBroker-RPi1 2018-03-29 06:12:29.539 warn stopInstance system.adapter.javascript.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.539 info stopInstance system.adapter.javascript.0
host.ioBroker-RPi1 2018-03-29 06:12:29.538 warn stopInstance system.adapter.hm-rega.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.538 info stopInstance system.adapter.hm-rega.0
host.ioBroker-RPi1 2018-03-29 06:12:29.537 warn stopInstance system.adapter.hm-rpc.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.537 info stopInstance system.adapter.hm-rpc.0
host.ioBroker-RPi1 2018-03-29 06:12:29.536 warn stopInstance system.adapter.history.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.536 info stopInstance system.adapter.history.0
host.ioBroker-RPi1 2018-03-29 06:12:29.535 warn stopInstance system.adapter.web.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.534 info stopInstance system.adapter.web.0
host.ioBroker-RPi1 2018-03-29 06:12:29.534 warn stopInstance system.adapter.cloud.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.534 info stopInstance system.adapter.cloud.0
host.ioBroker-RPi1 2018-03-29 06:12:29.533 warn stopInstance system.adapter.discovery.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:29.532 info stopInstance system.adapter.discovery.0
host.ioBroker-RPi1 2018-03-29 06:12:29.531 info received SIGTERM
host.ioBroker-RPi1 2018-03-29 06:12:22.735 warn stopInstance system.adapter.modbus.1 not running
host.ioBroker-RPi1 2018-03-29 06:12:22.734 info stopInstance system.adapter.modbus.1
host.ioBroker-RPi1 2018-03-29 06:12:22.734 warn stopInstance system.adapter.modbus.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:22.734 info stopInstance system.adapter.modbus.0
host.ioBroker-RPi1 2018-03-29 06:12:22.733 warn stopInstance system.adapter.node-red.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:22.733 info stopInstance system.adapter.node-red.0
host.ioBroker-RPi1 2018-03-29 06:12:22.733 warn stopInstance system.adapter.admin.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:22.732 info stopInstance system.adapter.admin.0
host.ioBroker-RPi1 2018-03-29 06:12:22.732 warn stopInstance system.adapter.rpi2.0 not running
host.ioBroker-RPi1 2018-03-29 06:12:22.732 info stopInstance system.adapter.rpi2.0
host.ioBroker-RPi1 2018-03-29 06:12:22.731 info stopInstance system.adapter.vis-justgage.0
host.ioBroker-RPi1 2018-03-29 06:12:22.731 info stopInstance system.adapter.vis-metro.0 `
-
Ok, den einen Fehler der beim stoppen des Adapters passiert ist hab ich gesehen und ist auf Githiub schon behoben.
Ansonsten sieht es mir so aus als ob dein TCP Gateway irgendwie komisch reagiert bzw abstürzt. Es gibt gerade bei libmbus ein Änliches Issue wo ein TCP gateway aber eher Timeouts bringt.
https://github.com/rscada/libmbus/issues/135
Was nutzt du für ein TCP Gateway? Ich verstehe nicht warum zu beginn 3 Anfragen klappen und danach aber plötzlich ende ist.
Kannst Du mal schauen ob ein Neustart des Adapters "=reconnect) hilft? Vllt muss ich ja nur sowas einbauen?!
-
Was nutzt du für ein TCP Gateway? Ich verstehe nicht warum zu beginn 3 Anfragen klappen und danach aber plötzlich ende ist.
Kannst Du mal schauen ob ein Neustart des Adapters "=reconnect) hilft? Vllt muss ich ja nur sowas einbauen?! `
Ich benutze den Adapter von Relay. Der TCP/IP Konverter läuft mit der Demosoftware von relay immer absolut fehlerfrei, egal wie oft ich Daten abfrage/polle. https://www.relay.de/produkte/m-bus-zub … konverter/
Kannst Du mal schauen ob ein Neustart des Adapters "=reconnect) hilft? Vllt muss ich ja nur sowas einbauen?! `
Werde ich testen, bevor ich aber etwas falsches mache, Du meinst mit reconnect "Neu laden"?
3639_bild6.jpg
3639_bild5.jpg
3639_bild5.jpg
3639_bild4.jpg -
Irgendwie bekomme ich das mit den Dateianhängen im vorigen Beitrag nicht mehr so richtig hin.
Hier ein Screenshot von der Relay-Demosoft:
Und hier der Screenshot vom reconnect:
-
Ok, das sieht an sich gut aus.
Log vom Restart wäre interessanter. und ob das lesen dann klappt oder wieder nur Fehler kommen
-
Ich habe mal fix umgebaut. Installiere mal neu vom Github. Jetzt wird nach jedem Device die Verbindung abgebaut und neu verbunden. Es bleibt also keine Verbindung dauerhaft offen. Geht es damit besser?
Log wäre wieder interesssant
-
Ich habe den Adapter neu geladen, so sieht der Log aus:
! ` > mbus.0 2018-03-29 15:32:44.346 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-29 15:32:44.346 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-29 15:32:44.346 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-29 15:32:44.346 info Process: 1
mbus.0 2018-03-29 15:32:44.346 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-29 15:32:44.345 info Initialize M-Bus TCP to 192.XXX.XXX.XX:1001 with timeout 0
mbus.0 2018-03-29 15:32:44.345 info starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
host.ioBroker-RPi1 2018-03-29 15:32:42.363 info instance system.adapter.mbus.0 started with pid 24219
host.ioBroker-RPi1 2018-03-29 15:32:39.863 info instance system.adapter.mbus.0 terminated with code 0 (OK)
host.ioBroker-RPi1 2018-03-29 15:32:39.825 info stopInstance system.adapter.mbus.0 killing pid 1014
host.ioBroker-RPi1 2018-03-29 15:32:39.823 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-29 15:32:39.820 info object change system.adapter.mbus.0
mbus.0 2018-03-29 13:16:37.116 info List of port: [{"comName":"/dev/ttyAMA0"}]
mbus.0 2018-03-29 09:42:35.171 error M-Bus Devices 2 errored from 4
mbus.0 2018-03-29 09:42:35.170 error M-Bus ID 4 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:42:35.166 info Process: 4
mbus.0 2018-03-29 09:41:55.732 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:41:55.731 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:41:55.728 info Process: 2
mbus.0 2018-03-29 09:41:54.740 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:41:54.738 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:41:54.736 info Process: 2
mbus.0 2018-03-29 09:41:53.888 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:41:53.887 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:41:53.885 info Process: 2
mbus.0 2018-03-29 09:41:51.585 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:41:51.584 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:41:51.582 info Process: 2
mbus.0 2018-03-29 09:40:00.830 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:40:00.829 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:40:00.823 info Process: 2
mbus.0 2018-03-29 09:39:45.602 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:39:45.601 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:39:45.599 info Process: 2
mbus.0 2018-03-29 09:39:44.405 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:39:44.404 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:39:44.402 info Process: 2
mbus.0 2018-03-29 09:38:49.863 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:38:49.862 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:38:49.859 info Process: 2
mbus.0 2018-03-29 09:37:51.827 error M-Bus Devices 1 errored from 4
mbus.0 2018-03-29 09:37:51.826 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
mbus.0 2018-03-29 09:37:51.824 info Process: 2
web.0 2018-03-29 09:29:10.055 info 2018-03-29T07:29:10.055Z Connected system.user.admin
web.0 2018-03-29 07:54:47.948 info 2018-03-29T05:54:47.947Z Connected system.user.admin
web.0 2018-03-29 07:53:54.902 info 2018-03-29T05:53:54.902Z Connected system.user.admin
web.0 2018-03-29 07:53:54.175 info 2018-03-29T05:53:54.175Z Connected system.user.admin
web.0 2018-03-29 07:53:53.499 info 2018-03-29T05:53:53.499Z Connected system.user.admin
web.0 2018-03-29 07:53:53.296 info 2018-03-29T05:53:53.295Z Connected system.user.admin
web.0 2018-03-29 07:53:36.598 info 2018-03-29T05:53:36.598Z Connected system.user.admin
web.0 2018-03-29 07:53:20.531 info 2018-03-29T05:53:20.530Z Connected system.user.admin
web.0 2018-03-29 07:53:04.735 info 2018-03-29T05:53:04.729Z Connected system.user.admin `
! Dann mache ich jetzt mal an das Update.
Edit:Sieht nach dem Update auf (0.1.6) nicht wirklich besser aus:
! [quotembus.0 2018-03-29 15:40:28.532 error M-Bus Devices 1 errored from 4
! mbus.0 2018-03-29 15:40:28.531 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
! mbus.0 2018-03-29 15:40:28.529 info Process: 2
! mbus.0 2018-03-29 15:40:27.121 error M-Bus Devices 1 errored from 4
! mbus.0 2018-03-29 15:40:27.119 error M-Bus ID 2 err: Error: Error: Failed to init slaves.
! mbus.0 2018-03-29 15:40:27.113 info Process: 2
! host.ioBroker-RPi1 2018-03-29 15:38:17.255 info Update repository "default" under "http://download.iobroker.net/sources-dist.json"
! iobroker 2018-03-29 15:38:16.206 info exit 0
! iobroker 2018-03-29 15:37:15.350 info npm install https://github.com/Apollon77/ioBroker.m … all/master --production --prefix "/opt/iobroker" (System call)
! iobroker 2018-03-29 15:37:14.793 info install https://github.com/Apollon77/ioBroker.m ... all/master
! iobroker 2018-03-29 15:37:13.618 info url "https://github.com/Apollon77/ioBroker.mbus"
! mbus.0 2018-03-29 15:33:12.144 info Process: 4
! mbus.0 2018-03-29 15:33:02.932 info Process: 3
! mbus.0 2018-03-29 15:32:53.670 info Process: 2
! mbus.0 2018-03-29 15:32:44.307 info Schedule initialization for M-Bus-ID 4 with update interval 43200
! mbus.0 2018-03-29 15:32:44.307 info Schedule initialization for M-Bus-ID 3 with update interval 43200
! mbus.0 2018-03-29 15:32:44.306 info Schedule initialization for M-Bus-ID 2 with update interval 43200
! mbus.0 2018-03-29 15:32:44.304 info Process: 1
! mbus.0 2018-03-29 15:32:44.302 info Schedule initialization for M-Bus-ID 1 with update interval 43200
! mbus.0 2018-03-29 15:32:44.297 info Initialize M-Bus TCP to 192.XXX.XXX.XX:1001 with timeout 0
! mbus.0 2018-03-29 15:32:44.285 info starting. Version 0.1.5 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
! mbus.0 2018-03-29 15:32:44.206 info States connected to redis: 127.0.0.1:6379
! host.ioBroker-RPi1 2018-03-29 15:32:42.361 info instance system.adapter.mbus.0 started with pid 24219
! host.ioBroker-RPi1 2018-03-29 15:32:39.861 info instance system.adapter.mbus.0 terminated with code 0 (OK)
! mbus.0 2018-03-29 15:32:39.803 info terminating
! host.ioBroker-RPi1 2018-03-29 15:32:39.784 info stopInstance system.adapter.mbus.0 killing pid 1014
! host.ioBroker-RPi1 2018-03-29 15:32:39.782 info stopInstance system.adapter.mbus.0
! host.ioBroker-RPi1 2018-03-29 15:32:39.761 info object change system.adapter.mbus.0
! mbus.0 2018-03-29 13:16:37.116 info List of port: [{"comName":"/dev/ttyAMA0"}]] -
Manuell indem Du auf den "Objekte" Tab gehst und zu den mbus.0 Objekten. Dort suchst Du so einen updateNow Datenounkt und hast dann da wo der Wert steht einen Button zum Drücken oder (wenn Expertenmodus aktiviert ist) einen Stift, da drauf kommt eine checkbox, die anhaken und auf das Häkchen. Alle weiteren einfach nur mit dem häckchen wieder absenden. Muss angehakt sein.
Oder per Javascript dann per Blockly "Steure objekt" den Wert auf "true" setzen oder per
setState("mbus.0.....updteNow", true, false); ```` `
Hallo Ingo,
ich habe nun 0.1.6 drauf.
Dieses updatenow müsste doch seit 0.1.4 lt. github drauf sein.
Ich habe bei den Objekten umgeschaltet auf Experte.
Den Punkt "updatNow" sehe ich aber nicht.
Mache ich da was falsch?
Weiterhin würde mich deine javascript zeile interessieren.
du schreibst: "setstate … true, false"
Ich kannte bisher nur: setstate (..., true)
Ist dieses "...true, false" wie ein Taster:
Also erst true und dann wieder false ?
mfg
Dieter
-
ich habe nun 0.1.6 drauf.
Dieses updatenow müsste doch seit 0.1.4 lt. github drauf sein. `
Ich habe auch 0.1.6 drauf und bei mir sieht es so aus:
-
Bahnuhr: nach github installs muss man die instanz manuell neu starten. Da lief noch die 0.1.5. zu den States soll es so aussehen wie Garf es gepostet hat. Mal reload im Admin klicken -vllt hat er nur den neuen State noch nicht mitbekommen ?!
Zum setState: der zusatzparameter ist der „ack“ Parameter der zum steuern von Geräten false sein muss.
-
@Garf: bei dir tut die 0.1.6 auch?! Wie viele devices hast du?
-
Hallo Gemeinde,
Heute ist der USB M-Bus Adapter vom Ali angekommen, Die Wasser und Stromzähler lassen leider noch auf sich warten.
Leider macht mir der Adapter in der Version 0.1.6 Probleme.
Ich hab den Adapter auf dem Raspi installiert auf dem auch vcontrold mit dem Viessmann optolink USB Interface läuft. Sobald ich den M-Bus Adapter starte, bekommt der Viessmann Adapter keine Daten mehr.
Das stoppen des M-Bus Adapters löst das problem nicht, ich muss das M-Bus interfcae vom Raspi abziehen und vcontrold neu starten.
Leider hab ich zu wenig Linux Kenntnisse um hier tiefer zu forschen.
Vielleicht hat hier jemand eine Idee, wie ich das grade ziehen kann.
-
@Garf: bei dir tut die 0.1.6 auch?! Wie viele devices hast du? `
Fehlerfrei läuft die Vers. 0.1.6 nicht.Bei mir hängen zur Zeit vier M-Bus Wärmezahler am Bus. Zwei Stromzähler könnte ich noch anhängen.
Es tritt aber immer noch ein Fehler an ID 2 auf.
! ` > mbus.0 2018-03-29 22:48:54.524 info Process: 1
node-red.0 2018-03-29 22:48:34.190 info Save /opt/iobroker/iobroker-data/node-red/flows.json
mbus.0 2018-03-29 22:44:08.773 info Process: 4
node-red.0 2018-03-29 22:40:55.515 info Save /opt/iobroker/iobroker-data/node-red/flows.json
mbus.0 2018-03-29 22:39:02.051 info Process: 3
mbus.0 2018-03-29 22:38:18.472 info List of port: [{"comName":"/dev/ttyAMA0"}]
mbus.0 2018-03-29 22:37:44.267 info Process: 1
node-red.0 2018-03-29 22:31:04.300 info Save /opt/iobroker/iobroker-data/node-red/flows.json
mbus.0 2018-03-29 22:29:09.418 info Process: 4
mbus.0 2018-03-29 22:29:00.157 info Process: 3
mbus.0 2018-03-29 22:29:00.156 error M-Bus Devices errored: 1 from 4
mbus.0 2018-03-29 22:29:00.155 error M-Bus ID 2 connect err: Error: No connection possible to MBus Host 192.XXX.XXX.XX:1001
mbus.0 2018-03-29 22:29:00.150 info Process: 2
mbus.0 2018-03-29 22:28:50.804 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-29 22:28:50.803 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-29 22:28:50.802 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-29 22:28:50.797 info Process: 1
mbus.0 2018-03-29 22:28:50.795 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-29 22:28:50.789 info Initialize M-Bus TCP to 192.XXX.XXX.XX:1001 with timeout 0
mbus.0 2018-03-29 22:28:50.777 info starting. Version 0.1.6 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-29 22:28:50.699 info States connected to redis: 127.0.0.1:6379 `
Die Wärmezähler 1, 3 und 4 lassen sich über den Button aktualisieren, der Zähler mit der ID 2 nicht. Mit der Software von der Fa. Relay lassen sich alle vier Zähler ohne Probleme auslesen.
Die Aktualisierung über einen Button im Dashboard von NodeRed funktioniert auch schon für ID 1, ID 3 und ID 4.
Die letzte Aktualisierung von ID 2 erfolgte heute Mittag/Nachmittag über Adapter "Neu laden":
Siehe hierzu auch meinen Post von 15:35 Uhr viewtopic.php?f=36&t=12534&p=138110#p138110, da habe ich dir zwei Logs eingefügt.
-
Du hast die richtigen USB-Devices ausgewählt? Ggf musst Du die irgendwie "festpinnen" weil ggf bei mehreren USB-geräten an einem Rechner kann es sein das die mit einem Bootvorgang die reihenfolge bei /dev/ttyUSBx ändern und mal der eine und mal der andere 0/1 ist.
Ansonsten sollte der mbus nur auf das relevante USB-Device zugreifen.
Sagt "dmesg" ggf irgendwas?
-
@Garf: bei dir tut die 0.1.6 auch?! Wie viele devices hast du? `
Fehlerfrei läuft die Vers. 0.1.6 nicht.Bei mir hängen zur Zeit vier M-Bus Wärmezahler am Bus. Zwei Stromzähler könnte ich noch anhängen.
Es tritt aber immer noch ein Fehler an ID 2 auf.
Die Wärmezähler 1, 3 und 4 lassen sich über den Button aktualisieren, der Zähler mit der ID 2 nicht. Mit der Software von der Fa. Relay lassen sich alle vier Zähler ohne Probleme auslesen.
Die Aktualisierung über einen Button im Dashboard von NodeRed funktioniert auch schon für ID 1, ID 3 und ID 4.
Die letzte Aktualisierung von ID 2 erfolgte heute Mittag/Nachmittag über Adapter "Neu laden": `
Also ID 2 kann er einmalig auslesen und danach geht es schieff? Und alle anderen IDs gehen immer wenn Du willst? Ist es das gleiche wenn Du den Adapter neu startest? Die Meldung kommt ja schon beim connect zum TCP Host - das wundert mich. Da geht es noch gar nicht um das auslesen.
Ich hab auf Github mal noch eine kurze Wartezeit eingebaut. Version bleibt die gleiche. Versuch mal,
Ansonsten wäre die Idee mal nen Secondary-ID-Scan zu machen (geht in der Adpaterkonfig) oder falls Du Sie kennst die Secondary-ID des Geräts mit Id 2 mal in ne Secondary-ID umändern?
-
Update läuft nicht durch.
Log:
! ` > Nachricht
iobroker 2018-03-30 06:02:31.383 info exit 25
iobroker 2018-03-30 06:02:31.366 error host.ioBroker-RPi1 Cannot install ": 2
iobroker 2018-03-30 06:02:31.362 info /bin/sh: 1: Syntax error: Unterminated quoted string
iobroker 2018-03-30 06:02:31.317 info npm install " –production --prefix "/opt/iobroker" (System call)
iobroker 2018-03-30 06:02:30.775 info install "
iobroker 2018-03-30 06:02:29.477 info url " https://github.com/Apollon77/ioBroker.mbus"
host.ioBroker-RPi1 2018-03-30 06:01:58.547 info instance system.adapter.mbus.0 terminated with code 0 (OK)
host.ioBroker-RPi1 2018-03-30 06:01:58.489 info stopInstance system.adapter.mbus.0 killing pid 9510
host.ioBroker-RPi1 2018-03-30 06:01:58.488 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-30 06:01:58.482 info object change system.adapter.mbus.0
iobroker 2018-03-30 06:00:33.080 info exit 25
iobroker 2018-03-30 06:00:33.062 error host.ioBroker-RPi1 Cannot install ": 2
iobroker 2018-03-30 06:00:33.058 info /bin/sh: 1: Syntax error: Unterminated quoted string
iobroker 2018-03-30 06:00:33.026 info npm install " --production --prefix "/opt/iobroker" (System call)
iobroker 2018-03-30 06:00:32.466 info install " `
Also ID 2 kann er einmalig auslesen und danach geht es schieff? Und alle anderen IDs gehen immer wenn Du willst? Ist es das gleiche wenn Du den Adapter neu startest? `
Im Momemt aktualisiert er gar keine Device mehr.Mit dem M-Bus Master von Relay werden die vier Devices ohne Probleme ausgelesen, gerade durchgeführt:
!
Hier der Log vom Neustart des Adapters und dem "Neu Laden" des Adapters:
! ` > admin.0 2018-03-30 06:13:57.889 info Repository received successfully.
host.ioBroker-RPi1 2018-03-30 06:13:56.893 info Update repository 'default' under 'http://download.iobroker.net/sources-dist.json'
admin.0 2018-03-30 06:13:56.708 info Request actual repository…
mbus.0 2018-03-30 06:11:52.802 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-30 06:11:52.802 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-30 06:11:52.802 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-30 06:11:52.802 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-30 06:11:52.802 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-30 06:11:52.802 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-30 06:11:52.802 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-30 06:11:52.802 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-30 06:11:52.802 error All M-Bus devices could not be read, reinitialize and start over
mbus.0 2018-03-30 06:11:52.802 error M-Bus Devices errored: 1 from 1
mbus.0 2018-03-30 06:11:52.802 error M-Bus ID 1 connect err: Error: No connection possible to MBus Host 192.xxx.xxx.xx:1001
mbus.0 2018-03-30 06:11:52.802 info Process: 1
mbus.0 2018-03-30 06:11:52.802 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-30 06:11:52.802 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-30 06:11:52.801 info starting. Version 0.1.6 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
host.ioBroker-RPi1 2018-03-30 06:11:50.813 info instance system.adapter.mbus.0 started with pid 28850
host.ioBroker-RPi1 2018-03-30 06:11:48.361 info instance system.adapter.mbus.0 terminated with code 0 (OK)
mbus.0 2018-03-30 06:11:48.322 info terminating
host.ioBroker-RPi1 2018-03-30 06:11:48.282 info stopInstance system.adapter.mbus.0 killing pid 28798
host.ioBroker-RPi1 2018-03-30 06:11:48.281 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-30 06:11:48.278 info object change system.adapter.mbus.0
mbus.0 2018-03-30 06:10:59.403 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-30 06:10:59.403 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-30 06:10:59.402 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-30 06:10:59.392 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-30 06:10:59.392 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-30 06:10:59.391 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-30 06:10:59.390 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-30 06:10:59.387 info Initialize M-Bus TCP to 192.168.178.45:1001 with timeout 0
mbus.0 2018-03-30 06:10:59.385 error All M-Bus devices could not be read, reinitialize and start over
mbus.0 2018-03-30 06:10:59.385 error M-Bus Devices errored: 1 from 1
mbus.0 2018-03-30 06:10:59.384 error M-Bus ID 1 connect err: Error: No connection possible to MBus Host 192.xxx.xxx.xx:1001
mbus.0 2018-03-30 06:10:59.379 info Process: 1
mbus.0 2018-03-30 06:10:59.377 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-30 06:10:59.372 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-30 06:10:59.359 info starting. Version 0.1.6 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-30 06:10:59.280 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-30 06:10:57.419 info instance system.adapter.mbus.0 started with pid 28798
host.ioBroker-RPi1 2018-03-30 06:10:54.953 info instance system.adapter.mbus.0 terminated with code 0 (OK)
host.ioBroker-RPi1 2018-03-30 06:10:54.870 info stopInstance system.adapter.mbus.0 killing pid 28705
host.ioBroker-RPi1 2018-03-30 06:10:54.867 info stopInstance system.adapter.mbus.0
mbus.0 2018-03-30 06:10:54.890 info terminating
host.ioBroker-RPi1 2018-03-30 06:10:54.849 info object change system.adapter.mbus.0
mbus.0 2018-03-30 06:09:06.408 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-30 06:09:06.408 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-30 06:09:06.398 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-30 06:09:06.398 info Schedule initialization for M-Bus-ID 4 with update interval 43200
mbus.0 2018-03-30 06:09:06.397 info Schedule initialization for M-Bus-ID 3 with update interval 43200
mbus.0 2018-03-30 06:09:06.397 info Schedule initialization for M-Bus-ID 2 with update interval 43200
mbus.0 2018-03-30 06:09:06.396 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-30 06:09:06.393 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-30 06:09:06.391 error All M-Bus devices could not be read, reinitialize and start over
mbus.0 2018-03-30 06:09:06.391 error M-Bus Devices errored: 1 from 1
mbus.0 2018-03-30 06:09:06.390 error M-Bus ID 1 connect err: Error: No connection possible to MBus Host 192.xxx.xxx.xx:1001
mbus.0 2018-03-30 06:09:06.386 info Process: 1
mbus.0 2018-03-30 06:09:06.384 info Schedule initialization for M-Bus-ID 1 with update interval 43200
mbus.0 2018-03-30 06:09:06.378 info Initialize M-Bus TCP to 192.xxx.xxx.xx:1001 with timeout 0
mbus.0 2018-03-30 06:09:06.366 info starting. Version 0.1.6 in /opt/iobroker/node_modules/iobroker.mbus, node: v6.12.0
mbus.0 2018-03-30 06:09:06.285 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-30 06:09:04.434 info instance system.adapter.mbus.0 started with pid 28705
host.ioBroker-RPi1 2018-03-30 06:09:04.355 info object change system.adapter.mbus.0
iobroker 2018-03-30 06:02:31.383 info exit 25
iobroker 2018-03-30 06:02:31.366 error host.ioBroker-RPi1 Cannot install ': 2
iobroker 2018-03-30 06:02:31.362 info /bin/sh: 1: Syntax error: Unterminated quoted string
iobroker 2018-03-30 06:02:31.317 info npm install ' --production --prefix '/opt/iobroker' (System call)
iobroker 2018-03-30 06:02:30.775 info install '
iobroker 2018-03-30 06:02:29.477 info url ' https://github.com/Apollon77/ioBroker.mbus'
host.ioBroker-RPi1 2018-03-30 06:01:58.547 info instance system.adapter.mbus.0 terminated with code 0 (OK)
host.ioBroker-RPi1 2018-03-30 06:01:58.489 info stopInstance system.adapter.mbus.0 killing pid 9510
host.ioBroker-RPi1 2018-03-30 06:01:58.488 info stopInstance system.adapter.mbus.0
host.ioBroker-RPi1 2018-03-30 06:01:58.482 info object change system.adapter.mbus.0
iobroker 2018-03-30 06:00:33.080 info exit 25
iobroker 2018-03-30 06:00:33.062 error host.ioBroker-RPi1 Cannot install ': 2
iobroker 2018-03-30 06:00:33.058 info /bin/sh: 1: Syntax error: Unterminated quoted string
iobroker 2018-03-30 06:00:33.026 info npm install ' --production --prefix '/opt/iobroker' (System call)
iobroker 2018-03-30 06:00:32.466 info install ' `
-
Bei der Installation hat aber nichts geklappt.Ist nichts installiert worden. Bitte nochmal versuchen.
Er kann nicht zum Gateway verbinden. Das heisst die Fehlermeldung. Kannst DU von dem Rechner zu dem zeitpunkt wo das kommt manuell per telnet hin verbinden?
-
Bei der Installation hat aber nichts geklappt.Ist nichts installiert worden. Bitte nochmal versuchen. `
Ja, dass war auch meine Erkentniss.Ich habe es dann nochmal versucht und es hat dann auch funktioniert. Danach gab es ein wenig Trouble mit dem 2. Modbusadapter, aber nun läuft alles wie es soll. Da behaupte Du noch mal der Adapter hätte noch Fehler. :lol:
Hier der aktuelle Log:
! ` > mbus.0 2018-03-30 13:40:36.405 info Process: 1
mbus.0 2018-03-30 13:40:01.517 info Process: 3
mbus.0 2018-03-30 13:39:27.893 info Process: 4
mbus.0 2018-03-30 13:38:52.711 info Process: 2
modbus.1 2018-03-30 11:24:59.488 info Connected to slave 192.xxx.xxx.xx
modbus.1 2018-03-30 11:24:59.180 info starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.modbus, node: v6.12.0
modbus.1 2018-03-30 11:24:59.104 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-30 11:24:57.165 info instance system.adapter.modbus.1 started with pid 9701
host.ioBroker-RPi1 2018-03-30 11:24:57.151 info object change system.adapter.modbus.1
host.ioBroker-RPi1 2018-03-30 11:24:54.836 info instance system.adapter.modbus.1 terminated with code 0 (OK)
modbus.1 2018-03-30 11:24:54.810 info terminating
host.ioBroker-RPi1 2018-03-30 11:24:54.779 info stopInstance system.adapter.modbus.1 killing pid 9691
host.ioBroker-RPi1 2018-03-30 11:24:54.778 info stopInstance system.adapter.modbus.1
host.ioBroker-RPi1 2018-03-30 11:24:54.777 info object change system.adapter.modbus.1
modbus.1 2018-03-30 11:24:54.080 info Connected to slave 192.xxx.xxx.xx
modbus.1 2018-03-30 11:24:53.776 info starting. Version 1.1.0 in /opt/iobroker/node_modules/iobroker.modbus, node: v6.12.0
modbus.1 2018-03-30 11:24:53.682 info States connected to redis: 127.0.0.1:6379
host.ioBroker-RPi1 2018-03-30 11:24:51.748 info instance system.adapter.modbus.1 started with pid 9691
host.ioBroker-RPi1 2018-03-30 11:24:51.719 info object change system.adapter.modbus.1
host.ioBroker-RPi1 2018-03-30 11:24:29.967 info Restart adapter system.adapter.modbus.1 because enabled `
Bei mir läuft der M-Busadapter nun und ich könnte jede Device auf Anforderung aus NodeRed heraus über updateNow abfragen und per MQTT weitergeben. Zumindest hat dies gestern, bis auf die ID 2, schon einmal funktioniert.
Aus jetziger Sicht, für mich perfekt. Mal schauen ob alles im Wirkbetrieb so bleibt. Ich werde weiter testen.
Kann ich den Aktivierungsintervall im Adapter auch auf 0 setzen, also auf gar nicht mehr ausführen? Zeitliche Abfragen könnte ich bei Bedarf nun ja auch über Node-Red definieren.
Ich sage an der Stelle schon einmal besten Dank, leider finde ich keinen Danke oder gefällt mir Button mehr. Sonst hätte ich ordentlich oft gedrückt.
Schöne Ostertage.