NEWS
PH-Messung
-
@tobi68 ja, seeehr strange ... Er bekommt vom Gerät beim Discovery keine ID. Bitte lösche nochmal die Instanz und leg Sie neu an. geht es dann?
-
Nein geht nicht, muss noch was anderes installiert sein?
host.raspberrypi 2022-04-27 10:31:48.366 warn Do not restart adapter system.adapter.ph803w.0 because restart loop detected host.raspberrypi 2022-04-27 10:31:48.366 info Restart adapter system.adapter.ph803w.0 because enabled host.raspberrypi 2022-04-27 10:31:48.366 error instance system.adapter.ph803w.0 terminated with code 6 (UNCAUGHT_EXCEPTION) host.raspberrypi 2022-04-27 10:31:48.365 error Caught by controller[1]: at PH803WDiscovery._parseResponse (/opt/iobroker/node_modules/node-ph803w/lib/discovery.js:149:14) host.raspberrypi 2022-04-27 10:31:48.365 error Caught by controller[1]: at PH803WDiscovery.emit (domain.js:475:12) host.raspberrypi 2022-04-27 10:31:48.365 error Caught by controller[1]: at PH803WDiscovery.emit (events.js:400:28) host.raspberrypi 2022-04-27 10:31:48.365 error Caught by controller[1]: at PH803WDiscovery.<anonymous> (/opt/iobroker/node_modules/iobroker.ph803w/main.js:113:24) host.raspberrypi 2022-04-27 10:31:48.365 error Caught by controller[1]: at Ph803w.initDevice (/opt/iobroker/node_modules/iobroker.ph803w/main.js:134:20) host.raspberrypi 2022-04-27 10:31:48.365 error Caught by controller[1]: at Ph803w.extendObjectAsync (/opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2115:16) host.raspberrypi 2022-04-27 10:31:48.364 error Caught by controller[1]: at new Promise (<anonymous>) host.raspberrypi 2022-04-27 10:31:48.364 error Caught by controller[1]: at /opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2116:16 host.raspberrypi 2022-04-27 10:31:48.364 error Caught by controller[1]: at Ph803w.extendObject (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:2142:23) host.raspberrypi 2022-04-27 10:31:48.364 error Caught by controller[1]: at Utils.validateId (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/utils.ts:161:19) host.raspberrypi 2022-04-27 10:31:48.363 error Caught by controller[1]: Error: The id is empty! Please provide a valid id. host.raspberrypi 2022-04-27 10:31:48.363 error Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: ph803w.0 2022-04-27 10:31:47.725 warn Terminated (UNCAUGHT_EXCEPTION): Without reason ph803w.0 2022-04-27 10:31:47.723 info terminating ph803w.0 2022-04-27 10:31:47.679 error The id is empty! Please provide a valid id. ph803w.0 2022-04-27 10:31:47.677 error Error: The id is empty! Please provide a valid id. at Utils.validateId (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/utils.ts:161:19) at Ph803w.extendObject (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:2142:23) at /opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2116:16 at new Promise (<anonymous>) at Ph803w.extendObjectAsync (/opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2115:16) at Ph803w.initDevice (/opt/iobroker/node_modules/iobroker.ph803w/main.js:134:20) at PH803WDiscovery.<anonymous> (/opt/iobroker/node_modules/iobroker.ph803w/main.js:113:24) at PH803WDiscovery.emit (events.js:400:28) at PH803WDiscovery.emit (domain.js:475:12) at PH803WDiscovery._parseResponse (/opt/iobroker/node_modules/node-ph803w/lib/discovery.js:149:14) ph803w.0 2022-04-27 10:31:47.426 error unhandled promise rejection: The id is empty! Please provide a valid id. ph803w.0 2022-04-27 10:31:47.425 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). ph803w.0 2022-04-27 10:31:47.421 info PH803W Device discovered on 192.168.178.134 ph803w.0 2022-04-27 10:31:47.285 info starting. Version 1.0.1 in /opt/iobroker/node_modules/iobroker.ph803w, node: v14.18.3, js-controller: 4.0.21
-
@tobi68 Ok, dann brauche ich bitte mehr Infos weil das ist komisch das es ohne ID ankommt.
Bitte lösch nochmal die Objekte falls welche da sind. (sollte aber ja nicht).
Dann bitte Adapter stoppen.
Dann eine Shell auf den iobroker host auf machen
DortDEBUG=ph803* node /opt/iobroker/node_modules/iobroker.ph803w/main.js --debug --logs
Und dann Bitte log posten
-
Bzw eine Frage: Du hast das Gerät jetzt aber schon per App einmalig ins WLAN gebracht und so verbunden? Darf es zu dem Cloud Host reden oder hast du es dem nie erlaubt mit seinem Cloud Host zu reden oder sowas?
-
Ich habe es mit IOS irgendwie mit der App geschafft das er bei mir im Wlan aufgetaucht ist.
Ich konnte die Installation mit der app aber nicht kl. fertig abschliessen. Er hat von mir die Wlan zugangsdaten bekommen das wars.
Danach hatte ich in der Fritz ein neues Esp Gerät entdeckt. -
@tobi68 Ok, dann bvllt ein setup was bisher noch nicht so vorkam. Daher mach mal das oben geschriebene Log dann schaue ich
-
Shell auf den Iobroher host
Hoffe mal mit putty ist das gleiche..:
Noch ne Info, DHCP macht bei mir ne 7590 der 803 ist im Garten-Accespoint per TPLink CPE210 eingebunden.pi@raspberrypi:~ $ DEBUG=ph803* node /opt/iobroker/node_modules/iobroker.ph803w/main.js --debug --logs 2022-04-27 15:07:10.720 - debug: ph803w.0 (27168) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-04-27 15:07:10.787 - debug: ph803w.0 (27168) Objects client ready ... initialize now 2022-04-27 15:07:10.790 - debug: ph803w.0 (27168) Objects create System PubSub Client 2022-04-27 15:07:10.792 - debug: ph803w.0 (27168) Objects create User PubSub Client 2022-04-27 15:07:10.852 - debug: ph803w.0 (27168) Objects client initialize lua scripts 2022-04-27 15:07:10.860 - debug: ph803w.0 (27168) Objects connected to redis: 127.0.0.1:9001 2022-04-27 15:07:10.899 - debug: ph803w.0 (27168) Redis States: Use Redis connection: 127.0.0.1:9000 2022-04-27 15:07:10.919 - debug: ph803w.0 (27168) States create System PubSub Client 2022-04-27 15:07:10.921 - debug: ph803w.0 (27168) States create User PubSub Client 2022-04-27 15:07:10.955 - debug: ph803w.0 (27168) States connected to redis: 127.0.0.1:9000 2022-04-27 15:07:11.069 - debug: ph803w.0 (27168) Plugin sentry Initialize Plugin (enabled=true) 2022-04-27 15:07:11.486 - info: ph803w.0 (27168) starting. Version 1.0.1 in /opt/iobroker/node_modules/iobroker.ph803w, node: v14.18.3, js-controller: 4.0.21 ph803w:discovery Listen for local PH803W devices on port 12414 +0ms ph803w:discovery Send broadcast message 0000000303000003 +2ms ph803w:discovery Parsing discovered device: 192.168.178.134:12414 - 000000036400000400000006c45bbed045690008303430323030334100203264336439353464396262373431623461313962613131353331303439333262000000000000000265756170692e67697a776974732e636f6d3a383000342e312e32003033303330303030 +94ms ph803w:discovery Discovered device: {"ip":"192.168.178.134","id":"","data1":"c45bbed04569","data2":"3034303230303341","data3":"2d3d954d9bb741b4a19ba1153104932b","apiServer":"euapi.gizwits.com:80","version":"4.1.2"} +1ms 2022-04-27 15:07:11.710 - info: ph803w.0 (27168) PH803W Device discovered on 192.168.178.134 2022-04-27 15:07:11.712 - debug: ph803w.0 (27168) Start PH803W Device initialization for on IP 192.168.178.134 2022-04-27 15:07:11.715 - error: ph803w.0 (27168) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2022-04-27 15:07:11.716 - error: ph803w.0 (27168) unhandled promise rejection: The id is empty! Please provide a valid id. 2022-04-27 15:07:11.986 - error: ph803w.0 (27168) Error: The id is empty! Please provide a valid id. at Utils.validateId (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/utils.ts:161:19) at Ph803w.extendObject (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:2142:23) at /opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2116:16 at new Promise (<anonymous>) at Ph803w.extendObjectAsync (/opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2115:16) at Ph803w.initDevice (/opt/iobroker/node_modules/iobroker.ph803w/main.js:134:20) at PH803WDiscovery.<anonymous> (/opt/iobroker/node_modules/iobroker.ph803w/main.js:113:24) at PH803WDiscovery.emit (events.js:400:28) at PH803WDiscovery.emit (domain.js:475:12) at PH803WDiscovery._parseResponse (/opt/iobroker/node_modules/node-ph803w/lib/discovery.js:149:14) 2022-04-27 15:07:11.989 - error: ph803w.0 (27168) The id is empty! Please provide a valid id. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: Error: The id is empty! Please provide a valid id. at Utils.validateId (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/utils.ts:161:19) at Ph803w.extendObject (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:2142:23) at /opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2116:16 at new Promise (<anonymous>) at Ph803w.extendObjectAsync (/opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2115:16) at Ph803w.initDevice (/opt/iobroker/node_modules/iobroker.ph803w/main.js:134:20) at PH803WDiscovery.<anonymous> (/opt/iobroker/node_modules/iobroker.ph803w/main.js:113:24) at PH803WDiscovery.emit (events.js:400:28) at PH803WDiscovery.emit (domain.js:475:12) at PH803WDiscovery._parseResponse (/opt/iobroker/node_modules/node-ph803w/lib/discovery.js:149:14) 2022-04-27 15:07:12.013 - info: ph803w.0 (27168) terminating 2022-04-27 15:07:12.014 - debug: ph803w.0 (27168) Plugin sentry destroyed 2022-04-27 15:07:12.016 - warn: ph803w.0 (27168) Terminated (UNCAUGHT_EXCEPTION): Without reason
-
@apollon77 sagte in PH-Messung:
DEBUG=ph803* node /opt/iobroker/node_modules/iobroker.ph803w/main.js --debug --logs
Und noch einmal genau in der Reihenfolge die die beschrieben hast:
pi@raspberrypi:~ $ DEBUG=ph803* node /opt/iobroker/node_modules/iobroker.ph803w/ main.js --debug --logs 2022-04-27 15:11:19.463 - debug: ph803w.0 (27608) Redis Objects: Use Redis conn ection: 127.0.0.1:9001 2022-04-27 15:11:19.532 - debug: ph803w.0 (27608) Objects client ready ... init ialize now 2022-04-27 15:11:19.534 - debug: ph803w.0 (27608) Objects create System PubSub Client 2022-04-27 15:11:19.536 - debug: ph803w.0 (27608) Objects create User PubSub Cl ient 2022-04-27 15:11:19.612 - debug: ph803w.0 (27608) Objects client initialize lua scripts 2022-04-27 15:11:19.619 - debug: ph803w.0 (27608) Objects connected to redis: 1 27.0.0.1:9001 2022-04-27 15:11:19.654 - debug: ph803w.0 (27608) Redis States: Use Redis conne ction: 127.0.0.1:9000 2022-04-27 15:11:19.674 - debug: ph803w.0 (27608) States create System PubSub C lient 2022-04-27 15:11:19.676 - debug: ph803w.0 (27608) States create User PubSub Cli ent 2022-04-27 15:11:19.708 - debug: ph803w.0 (27608) States connected to redis: 12 7.0.0.1:9000 2022-04-27 15:11:19.821 - debug: ph803w.0 (27608) Plugin sentry Initialize Plug in (enabled=true) 2022-04-27 15:11:20.032 - error: ph803w.0 (27608) adapter disabled 2022-04-27 15:11:20.241 - info: ph803w.0 (27608) starting. Version 1.0.1 in /opt/iobroker/node_modules/iobroker.ph803w, node: v14.18.3, js-controller: 4.0.21 ph803w:discovery Listen for local PH803W devices on port 12414 +0ms ph803w:discovery Send broadcast message 0000000303000003 +1ms ph803w:discovery Parsing discovered device: 192.168.178.134:12414 - 000000036400000400000006c45bbed045690008303430323030334100203264336439353464396262373431623461313962613131353331303439333262000000000000000265756170692e67697a776974732e636f6d3a383000342e312e32003033303330303030 +60ms ph803w:discovery Discovered device: {"ip":"192.168.178.134","id":"","data1":"c45bbed04569","data2":"3034303230303341","data3":"2d3d954d9bb741b4a19ba1153104932b","apiServer":"euapi.gizwits.com:80","version":"4.1.2"} +1ms 2022-04-27 15:11:20.399 - info: ph803w.0 (27608) PH803W Device discovered on 192.168.178.134 2022-04-27 15:11:20.400 - debug: ph803w.0 (27608) Start PH803W Device initialization for on IP 192.168.178.134 2022-04-27 15:11:20.405 - error: ph803w.0 (27608) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). 2022-04-27 15:11:20.406 - error: ph803w.0 (27608) unhandled promise rejection: The id is empty! Please provide a valid id. 2022-04-27 15:11:20.690 - error: ph803w.0 (27608) Error: The id is empty! Please provide a valid id. at Utils.validateId (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/utils.ts:161:19) at Ph803w.extendObject (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:2142:23) at /opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2116:16 at new Promise (<anonymous>) at Ph803w.extendObjectAsync (/opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2115:16) at Ph803w.initDevice (/opt/iobroker/node_modules/iobroker.ph803w/main.js:134:20) at PH803WDiscovery.<anonymous> (/opt/iobroker/node_modules/iobroker.ph803w/main.js:113:24) at PH803WDiscovery.emit (events.js:400:28) at PH803WDiscovery.emit (domain.js:475:12) at PH803WDiscovery._parseResponse (/opt/iobroker/node_modules/node-ph803w/lib/discovery.js:149:14) 2022-04-27 15:11:20.692 - error: ph803w.0 (27608) The id is empty! Please provide a valid id. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: Error: The id is empty! Please provide a valid id. at Utils.validateId (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/utils.ts:161:19) at Ph803w.extendObject (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:2142:23) at /opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2116:16 at new Promise (<anonymous>) at Ph803w.extendObjectAsync (/opt/iobroker/node_modules/@iobroker/js-controller-common/lib/common/tools.js:2115:16) at Ph803w.initDevice (/opt/iobroker/node_modules/iobroker.ph803w/main.js:134:20) at PH803WDiscovery.<anonymous> (/opt/iobroker/node_modules/iobroker.ph803w/main.js:113:24) at PH803WDiscovery.emit (events.js:400:28) at PH803WDiscovery.emit (domain.js:475:12) at PH803WDiscovery._parseResponse (/opt/iobroker/node_modules/node-ph803w/lib/discovery.js:149:14) 2022-04-27 15:11:20.713 - info: ph803w.0 (27608) terminating 2022-04-27 15:11:20.714 - debug: ph803w.0 (27608) Plugin sentry destroyed 2022-04-27 15:11:20.715 - warn: ph803w.0 (27608) Terminated (UNCAUGHT_EXCEPTION): Without reason
-
Najaok dann gibts als den Fall das das Gerät keine ID hat Versuch mal die GitHub version vom Adapter bitte.
-
danke hat geklappt, werde ichs doch in den Pool einbauen
ph803w.0 5785 2022-04-28 03:56:28.318 info Connected PH803W device 192168178134-1651110988215 on IP 192.168.178.134 ... logging in ... ph803w.0 5785 2022-04-28 03:56:28.215 info PH803W Device 192168178134-1651110988215 discovered on 192.168.178.134 ph803w.0 5785 2022-04-28 03:56:28.214 info PH803W Device 192.168.178.134 has no ID, define one by ourself ph803w.0 5785 2022-04-28 03:56:27.966 info starting. Version 1.0.2 (non-npm: Apollon77/ioBroker.ph803w) in /opt/iobroker/node_modules/iobroker.ph803w, node: v14.18.3, js-controller: 4.0.21
-
@tobi68 korrekte Daten kommen auch?
-
@apollon77 sagte in PH-Messung:
@tobi68 korrekte Daten kommen auch?
Soweit bin ich noch nicht, muss noch 100 Seiten im Poolforum lesen..
Ich habe noch keine Kalibrierlösung.. und habe die Elektroden noch gar nicht angeschlossen..
Hast du bedenken? Dann ziehe ich die Bestellung und Einrichtung vor? -
Es kommt auf jeden Fall schon mal ne veränderung an.
Hab die Sonden mal angeschlossen. Scheint zu klappen. -
@tobi68 Das reicht ja ... am Ende ists ok wenn die Werte im ioBroker zu denen passen die das Display anzeigt
-
@apollon77
Hi Apollon.
Inzwischen habe ich den ph803w auch im Pool system installiert. Dein Adapter funktioniert soweit super. Das einzige Problem was ich habe ist, wenn ich den ph803w ausschalte und wieder einschalte, dann bekommt er eine andere IP Adresse. Danach findet ihn der Adapter nicht mehr. Auch ein Neustart des Adapters hilft da nichts.
Ich muss dann die Objekte unter dem Ph803 löschen, den Adapter neu starten und dann wird er sofort gefunden..Allerdings sind dann die werte aus der Datenbank verloren, da die ja neu getrackt werden müssen - ebenso muss ich dann in der vis natürlich die neuen Objekte auswählen.
Wäre es nicht besser, wenn der Adapter den ph803w bei Neustart sucht und sich dann verbindet dann über die id herausfindet, dass es eh das gleiche Gerät ist und dann die bestehenden Objekte weiter aktualisiert?
Oder ist bei mir hier was faul?
-
@daniel_iobroker Hm ... zeig mal ein Debug log von einem Adapterstart bitte wo das passiert ist. Ansonsten: Pin die IP zur Mac Adresse doch in deinem Router fest?
-
@apollon77 Sorry, bin erst Heute dazu gekommen, das Log mit dem Laptop zu machen. Hier das log:
2022-05-25 18:03:11.648 - [32minfo[39m: host.raspberrypi stopInstance system.adapter.ph803w.0 (force=false, process=true) 2022-05-25 18:03:11.761 - [32minfo[39m: ph803w.0 (26058) Got terminate signal TERMINATE_YOURSELF 2022-05-25 18:03:11.787 - [32minfo[39m: ph803w.0 (26058) terminating 2022-05-25 18:03:11.795 - [34mdebug[39m: ph803w.0 (26058) Plugin sentry destroyed 2022-05-25 18:03:11.797 - [32minfo[39m: ph803w.0 (26058) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2022-05-25 18:03:11.819 - [32minfo[39m: host.raspberrypi stopInstance system.adapter.ph803w.0 send kill signal 2022-05-25 18:03:12.525 - [32minfo[39m: host.raspberrypi instance system.adapter.ph803w.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2022-05-25 18:03:15.346 - [32minfo[39m: host.raspberrypi instance system.adapter.ph803w.0 started with pid 31494 2022-05-25 18:03:18.105 - [34mdebug[39m: ph803w.0 (31494) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-05-25 18:03:18.246 - [34mdebug[39m: ph803w.0 (31494) Objects client ready ... initialize now 2022-05-25 18:03:18.276 - [34mdebug[39m: ph803w.0 (31494) Objects create System PubSub Client 2022-05-25 18:03:18.278 - [34mdebug[39m: ph803w.0 (31494) Objects create User PubSub Client 2022-05-25 18:03:18.279 - [34mdebug[39m: ph803w.0 (31494) Objects client initialize lua scripts 2022-05-25 18:03:18.788 - [34mdebug[39m: ph803w.0 (31494) Objects connected to redis: 127.0.0.1:9001 2022-05-25 18:03:18.799 - [34mdebug[39m: ph803w.0 (31494) objectDB connected 2022-05-25 18:03:18.803 - [34mdebug[39m: ph803w.0 (31494) Redis States: Use Redis connection: 127.0.0.1:9000 2022-05-25 18:03:20.802 - [33mwarn[39m: ph803w.0 (31494) slow connection to states DB. Still waiting ... 2022-05-25 18:03:21.166 - [34mdebug[39m: ph803w.0 (31494) States create System PubSub Client 2022-05-25 18:03:21.171 - [34mdebug[39m: ph803w.0 (31494) States create User PubSub Client 2022-05-25 18:03:22.169 - [34mdebug[39m: ph803w.0 (31494) States connected to redis: 127.0.0.1:9000 2022-05-25 18:03:22.171 - [34mdebug[39m: ph803w.0 (31494) statesDB connected 2022-05-25 18:03:23.423 - [34mdebug[39m: ph803w.0 (31494) Plugin sentry Initialize Plugin (enabled=true) 2022-05-25 18:03:23.431 - [32minfo[39m: ph803w.0 (31494) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-05-25 18:03:23.453 - [32minfo[39m: ph803w.0 (31494) starting. Version 1.0.3 in /opt/iobroker/node_modules/iobroker.ph803w, node: v14.17.4, js-controller: 3.3.22 2022-05-25 18:03:23.580 - [34mdebug[39m: ph803w.0 (31494) Init 1 known devices without discovery ... 2022-05-25 18:03:23.581 - [34mdebug[39m: ph803w.0 (31494) Start PH803W Device initialization for 5b4qJ9jHFtEQXmuJEMyHoJ on IP 192.168.8.21 2022-05-25 18:03:26.918 - [32minfo[39m: ph803w.0 (31494) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.21:12416 2022-05-25 18:03:40.036 - [32minfo[39m: ph803w.0 (31494) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.21:12416
Eigentlich steht da nicht viel, außer dass er sich mit der bei der initialisierung gefundenen IP verbinden will. Da der PH803w jedoch eine neue IP bekommen hat, geht das natürlich nicht.
Da der PH803w über 2 Repeater verbunden ist, sehe ich im Router leider den PH803w leider gar nicht. Daher kann ich die IP Adresse nicht direkt zuweisen. Das geht nur mit Clients, die direkt mit dem Router verbunden sind (Ist leider bei dem Router so). Alternativ wäre es noch möglich, im PH803w direkt eine IP Adresse zu hinterlegen. Leider ist dafür in der PH803w App keine Möglichkeit vorgesehen.
Am einfachsten wäre es, wenn der Adapter hier nach dem Gerät sucht und dieses dann verbindet - unabhängig der IP Adresse.
Nach dem löschen der Objekte unter dem PH803 Ordner und anschließendem Neustart des Adapaters wird der PH803w sofort mit der gleichen ID gefunden (nur halt anderer IP Adresse). Siehe hier das log dazu:
2022-05-25 18:13:50.140 - [32minfo[39m: host.raspberrypi "system.adapter.ph803w.0" enabled 2022-05-25 18:13:52.247 - [32minfo[39m: host.raspberrypi instance system.adapter.ph803w.0 started with pid 30431 2022-05-25 18:13:54.716 - [34mdebug[39m: ph803w.0 (30431) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-05-25 18:13:54.784 - [34mdebug[39m: ph803w.0 (30431) Objects client ready ... initialize now 2022-05-25 18:13:54.787 - [34mdebug[39m: ph803w.0 (30431) Objects create System PubSub Client 2022-05-25 18:13:54.788 - [34mdebug[39m: ph803w.0 (30431) Objects create User PubSub Client 2022-05-25 18:13:54.789 - [34mdebug[39m: ph803w.0 (30431) Objects client initialize lua scripts 2022-05-25 18:13:54.826 - [34mdebug[39m: ph803w.0 (30431) Objects connected to redis: 127.0.0.1:9001 2022-05-25 18:13:54.837 - [34mdebug[39m: ph803w.0 (30431) objectDB connected 2022-05-25 18:13:54.840 - [34mdebug[39m: ph803w.0 (30431) Redis States: Use Redis connection: 127.0.0.1:9000 2022-05-25 18:13:54.861 - [34mdebug[39m: ph803w.0 (30431) States create System PubSub Client 2022-05-25 18:13:54.862 - [34mdebug[39m: ph803w.0 (30431) States create User PubSub Client 2022-05-25 18:13:54.882 - [34mdebug[39m: ph803w.0 (30431) States connected to redis: 127.0.0.1:9000 2022-05-25 18:13:54.884 - [34mdebug[39m: ph803w.0 (30431) statesDB connected 2022-05-25 18:13:55.619 - [34mdebug[39m: ph803w.0 (30431) Plugin sentry Initialize Plugin (enabled=true) 2022-05-25 18:13:55.629 - [32minfo[39m: ph803w.0 (30431) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-05-25 18:13:55.694 - [32minfo[39m: ph803w.0 (30431) starting. Version 1.0.3 in /opt/iobroker/node_modules/iobroker.ph803w, node: v14.17.4, js-controller: 3.3.22 2022-05-25 18:13:56.093 - [32minfo[39m: ph803w.0 (30431) PH803W Device 5b4qJ9jHFtEQXmuJEMyHoJ discovered on 192.168.8.19 2022-05-25 18:13:56.096 - [34mdebug[39m: ph803w.0 (30431) Start PH803W Device initialization for 5b4qJ9jHFtEQXmuJEMyHoJ on IP 192.168.8.19 2022-05-25 18:13:56.412 - [32minfo[39m: ph803w.0 (30431) Connected PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ on IP 192.168.8.19 ... logging in ... 2022-05-25 18:13:56.484 - [34mdebug[39m: ph803w.0 (30431) Data received for PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ: {"binFlags1":"11","binFlags2":"1","ph":7.62,"redox":731,"phOutlet":true,"redoxOutlet":false} 2022-05-25 18:13:56.486 - [34mdebug[39m: ph803w.0 (30431) Initialization for PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ on IP 192.168.8.19 done (1/1) 2022-05-25 18:15:01.925 - [32minfo[39m: influxdb.0 (29706) Store 101 buffered influxDB history points 2022-05-25 18:16:52.008 - [32minfo[39m: influxdb.0 (29706) Store 101 buffered influxDB history points 2022-05-25 18:17:00.285 - [34mdebug[39m: ph803w.0 (30431) Data received for PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ: {"binFlags1":"100","binFlags2":"1","ph":7.62,"redox":732,"phOutlet":true,"redoxOutlet":false}
-
@daniel_iobroker Und du unterschlägst beim ersten Log nicht vllt was? Weil an sich läuft das Discovery auch wenn er versucht eine andere IP zu verbinden und die internen Datenstrukturen merken sichgerade die IP ... also hätte ich trotzdem eine " ... discovered on ..." Zeile erwartet ....
EDIT 1... aaahhhh ... i seeeeee the issue
-
@daniel_iobroker Ok, dann versuch mal die GitHub version ... Und poste bitte mal Debug Log.
Achtung: Mit npm6 können GitHub Installs aktuell 10+Minuten dauern ... einfach Geduld haben.
-
@apollon77 Hab ich gemacht.
Sieht gut aus. Die neue IP Adresse wird erkannt und auch die Objekte werden aktualisiert. Im Debug steht halt weiterhin, dass die "alte" Adresse nicht erreichbar ist.Hier das log dazu:
2022-05-26 11:00:23.434 - [32minfo[39m: host.raspberrypi iobroker upload [5] ph803w.admin /opt/iobroker/node_modules/iobroker.ph803w/admin/words.js words.js application/javascript 2022-05-26 11:00:23.621 - [32minfo[39m: host.raspberrypi iobroker upload [4] ph803w.admin /opt/iobroker/node_modules/iobroker.ph803w/admin/style.css style.css text/css 2022-05-26 11:00:23.690 - [32minfo[39m: host.raspberrypi iobroker upload [3] ph803w.admin /opt/iobroker/node_modules/iobroker.ph803w/admin/ph803w_icon.png ph803w_icon.png image/png 2022-05-26 11:00:23.756 - [32minfo[39m: host.raspberrypi iobroker upload [2] ph803w.admin /opt/iobroker/node_modules/iobroker.ph803w/admin/ph803w.png ph803w.png image/png 2022-05-26 11:00:23.848 - [32minfo[39m: host.raspberrypi iobroker upload [1] ph803w.admin /opt/iobroker/node_modules/iobroker.ph803w/admin/index_m.html index_m.html text/html 2022-05-26 11:00:23.928 - [32minfo[39m: host.raspberrypi iobroker upload [0] ph803w.admin /opt/iobroker/node_modules/iobroker.ph803w/admin/admin.d.ts admin.d.ts video/mp2t 2022-05-26 11:00:24.158 - [32minfo[39m: host.raspberrypi iobroker Update "system.adapter.ph803w.0" 2022-05-26 11:00:24.196 - [32minfo[39m: ph803w.0 (30431) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.19:12416 2022-05-26 11:00:24.268 - [32minfo[39m: host.raspberrypi stopInstance system.adapter.ph803w.0 (force=false, process=true) 2022-05-26 11:00:24.466 - [32minfo[39m: ph803w.0 (30431) Got terminate signal TERMINATE_YOURSELF 2022-05-26 11:00:24.500 - [32minfo[39m: ph803w.0 (30431) terminating 2022-05-26 11:00:24.510 - [34mdebug[39m: ph803w.0 (30431) Plugin sentry destroyed 2022-05-26 11:00:24.511 - [32minfo[39m: ph803w.0 (30431) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2022-05-26 11:00:24.539 - [32minfo[39m: host.raspberrypi stopInstance system.adapter.ph803w.0 send kill signal 2022-05-26 11:00:25.330 - [32minfo[39m: host.raspberrypi instance system.adapter.ph803w.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION) 2022-05-26 11:00:25.539 - [32minfo[39m: host.raspberrypi iobroker exit 0 2022-05-26 11:00:27.882 - [32minfo[39m: host.raspberrypi instance system.adapter.ph803w.0 started with pid 25630 2022-05-26 11:00:29.918 - [34mdebug[39m: ph803w.0 (25630) Redis Objects: Use Redis connection: 127.0.0.1:9001 2022-05-26 11:00:30.233 - [34mdebug[39m: ph803w.0 (25630) Objects client ready ... initialize now 2022-05-26 11:00:30.496 - [34mdebug[39m: ph803w.0 (25630) Objects create System PubSub Client 2022-05-26 11:00:30.498 - [34mdebug[39m: ph803w.0 (25630) Objects create User PubSub Client 2022-05-26 11:00:30.499 - [34mdebug[39m: ph803w.0 (25630) Objects client initialize lua scripts 2022-05-26 11:00:30.629 - [34mdebug[39m: ph803w.0 (25630) Objects connected to redis: 127.0.0.1:9001 2022-05-26 11:00:30.650 - [34mdebug[39m: ph803w.0 (25630) objectDB connected 2022-05-26 11:00:30.660 - [34mdebug[39m: ph803w.0 (25630) Redis States: Use Redis connection: 127.0.0.1:9000 2022-05-26 11:00:30.777 - [34mdebug[39m: ph803w.0 (25630) States create System PubSub Client 2022-05-26 11:00:30.780 - [34mdebug[39m: ph803w.0 (25630) States create User PubSub Client 2022-05-26 11:00:30.830 - [34mdebug[39m: ph803w.0 (25630) States connected to redis: 127.0.0.1:9000 2022-05-26 11:00:30.832 - [34mdebug[39m: ph803w.0 (25630) statesDB connected 2022-05-26 11:00:32.037 - [34mdebug[39m: ph803w.0 (25630) Plugin sentry Initialize Plugin (enabled=true) 2022-05-26 11:00:32.050 - [32minfo[39m: ph803w.0 (25630) Plugin sentry Sentry Plugin disabled for this process because sending of statistic data is disabled for the system 2022-05-26 11:00:32.074 - [32minfo[39m: ph803w.0 (25630) starting. Version 1.0.3 in /opt/iobroker/node_modules/iobroker.ph803w, node: v14.17.4, js-controller: 3.3.22 2022-05-26 11:00:32.209 - [34mdebug[39m: ph803w.0 (25630) Init 1 known devices without discovery ... 2022-05-26 11:00:32.212 - [34mdebug[39m: ph803w.0 (25630) Start PH803W Device initialization for 5b4qJ9jHFtEQXmuJEMyHoJ on IP 192.168.8.19 2022-05-26 11:00:32.544 - [32minfo[39m: ph803w.0 (25630) PH803W Device 5b4qJ9jHFtEQXmuJEMyHoJ discovered on 192.168.8.16 2022-05-26 11:00:32.545 - [34mdebug[39m: ph803w.0 (25630) Start PH803W Device initialization for 5b4qJ9jHFtEQXmuJEMyHoJ on IP 192.168.8.16 2022-05-26 11:00:33.979 - [32minfo[39m: ph803w.0 (25630) Connected PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ on IP 192.168.8.16 ... logging in ... 2022-05-26 11:00:34.060 - [34mdebug[39m: ph803w.0 (25630) Data received for PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ: {"binFlags1":"11","binFlags2":"1","ph":7.7,"redox":701,"phOutlet":true,"redoxOutlet":false} 2022-05-26 11:00:34.061 - [34mdebug[39m: ph803w.0 (25630) Initialization for PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ on IP 192.168.8.16 done (1/2) 2022-05-26 11:00:35.487 - [32minfo[39m: ph803w.0 (25630) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.19:12416 2022-05-26 11:00:48.596 - [32minfo[39m: ph803w.0 (25630) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.19:12416 2022-05-26 11:01:01.716 - [32minfo[39m: ph803w.0 (25630) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.19:12416 2022-05-26 11:01:14.836 - [32minfo[39m: ph803w.0 (25630) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.19:12416 2022-05-26 11:01:27.956 - [32minfo[39m: ph803w.0 (25630) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.19:12416 2022-05-26 11:01:33.652 - [32minfo[39m: influxdb.0 (29706) Store 101 buffered influxDB history points 2022-05-26 11:01:41.086 - [32minfo[39m: ph803w.0 (25630) PH803W device 5b4qJ9jHFtEQXmuJEMyHoJ Error: Error: connect EHOSTUNREACH 192.168.8.19:12416
PS. Das Update hat wirklich ewig gedauert. Danke für den Hinweis.