NEWS
[Aufruf] ioBroker.ham (Homebridge Accessory Manager) testen
-
Hallo Apo,
hab gerade den Adapter nochmal neu gestartet, Log auf debug. Nutze gerade einen anderen Rechner. Auch hier taucht unter Objekte kein ham.0 auf…
Das log sagt folgendes (in meinen Augen nix ungewöhnliches, bin aber auch eher unwissend...):
! ````
ham.0 2018-06-24 20:58:46.977 debug system.adapter.admin.0: logging true
ham.0 2018-06-24 20:58:10.988 debug [2018-6-24 20:58:10] [MiAqaraPlatform] [INFO]server is listening on port 9898.
ham.0 2018-06-24 20:58:10.972 debug Homebridge Wrapper Bridge publish {"username":"FF:FF:FF:FF:FF:FF","port":0,"pincode":"0","category":2}
ham.0 2018-06-24 20:58:10.969 debug [2018-6-24 20:58:10] [MiAqaraPlatform] [INFO]start success...
ham.0 2018-06-24 20:58:10.969 debug [2018-6-24 20:58:10] [MiAqaraPlatform] [INFO]**************************************************************
ham.0 2018-06-24 20:58:10.969 debug [2018-6-24 20:58:10] [MiAqaraPlatform] [INFO] QQ Group: 107927710
ham.0 2018-06-24 20:58:10.969 debug [2018-6-24 20:58:10] [MiAqaraPlatform] [INFO] GitHub: https://github.com/YinHangCode/homebridge-mi-aqara
ham.0 2018-06-24 20:58:10.968 debug [2018-6-24 20:58:10] [MiAqaraPlatform] [INFO] MiAqaraPlatform v1.0.2 By YinHang
ham.0 2018-06-24 20:58:10.966 debug [2018-6-24 20:58:10] [MiAqaraPlatform] [INFO]**************************************************************
ham.0 2018-06-24 20:58:10.956 debug [2018-6-24 20:58:10] [MiAqaraPlatform] Initializing MiAqaraPlatform platform...
ham.0 2018-06-24 20:58:10.955 debug [2018-6-24 20:58:10] Loading 1 platforms...
ham.0 2018-06-24 20:58:10.946 debug [2018-6-24 20:58:10] ---
ham.0 2018-06-24 20:58:10.946 debug [2018-6-24 20:58:10] Registering platform 'homebridge-mi-aqara.MiAqaraPlatform'
ham.0 2018-06-24 20:58:10.945 debug [2018-6-24 20:58:10] Loaded plugin: homebridge-mi-aqara-2
ham.0 2018-06-24 20:58:10.883 debug [2018-6-24 20:58:10] ---
ham.0 2018-06-24 20:58:10.882 debug [2018-6-24 20:58:10] Registering platform 'homebridge-devolo.Devolo'
ham.0 2018-06-24 20:58:10.881 debug [2018-6-24 20:58:10] Loaded plugin: homebridge-devolo
ham.0 2018-06-24 20:58:09.885 info starting. Version 0.4.1 in /opt/iobroker/node_modules/iobroker.ham, node: v6.14.2
ham.0 2018-06-24 20:58:09.776 debug statesDB connected
ham.0 2018-06-24 20:58:09.735 debug objectDB connected
ham.0 2018-06-24 20:58:06.827 info terminating
ham.0 2018-06-24 20:58:06.799 info cleaned everything up...
ham.0 2018-06-24 12:37:11.796 debug system.adapter.admin.0: logging false
ham.0 2018-06-24 12:35:44.260 debug system.adapter.admin.0: logging true
ham.0 2018-06-24 12:32:41.744 debug system.adapter.admin.0: logging false
ham.0 2018-06-24 12:30:34.165 debug system.adapter.admin.0: logging true
ham.0 2018-06-24 12:30:30.288 debug system.adapter.admin.0: logging false
ham.0 2018-06-24 12:30:29.408 debug [2018-6-24 12:30:29] [MiAqaraPlatform] [INFO]server is listening on port 9898.
ham.0 2018-06-24 12:30:29.392 debug Homebridge Wrapper Bridge publish {"username":"FF:FF:FF:FF:FF:FF","port":0,"pincode":"0","category":2}
ham.0 2018-06-24 12:30:29.390 debug [2018-6-24 12:30:29] [MiAqaraPlatform] [INFO]start success...
ham.0 2018-06-24 12:30:29.389 debug [2018-6-24 12:30:29] [MiAqaraPlatform] [INFO]**************************************************************
ham.0 2018-06-24 12:30:29.389 debug [2018-6-24 12:30:29] [MiAqaraPlatform] [INFO] QQ Group: 107927710
ham.0 2018-06-24 12:30:29.389 debug [2018-6-24 12:30:29] [MiAqaraPlatform] [INFO] GitHub: https://github.com/YinHangCode/homebridge-mi-aqara
ham.0 2018-06-24 12:30:29.389 debug [2018-6-24 12:30:29] [MiAqaraPlatform] [INFO] MiAqaraPlatform v1.0.2 By YinHang
ham.0 2018-06-24 12:30:29.386 debug [2018-6-24 12:30:29] [MiAqaraPlatform] [INFO]**************************************************************
ham.0 2018-06-24 12:30:29.376 debug [2018-6-24 12:30:29] [MiAqaraPlatform] Initializing MiAqaraPlatform platform...
ham.0 2018-06-24 12:30:29.375 debug [2018-6-24 12:30:29] Loading 1 platforms...
ham.0 2018-06-24 12:30:29.366 debug [2018-6-24 12:30:29] ---
ham.0 2018-06-24 12:30:29.366 debug [2018-6-24 12:30:29] Registering platform 'homebridge-mi-aqara.MiAqaraPlatform'
ham.0 2018-06-24 12:30:29.365 debug [2018-6-24 12:30:29] Loaded plugin: homebridge-mi-aqara-2
ham.0 2018-06-24 12:30:29.303 debug [2018-6-24 12:30:29] ---
ham.0 2018-06-24 12:30:29.303 debug [2018-6-24 12:30:29] Registering platform 'homebridge-devolo.Devolo'
ham.0 2018-06-24 12:30:29.301 debug [2018-6-24 12:30:29] Loaded plugin: homebridge-devolo
ham.0 2018-06-24 12:30:28.290 info starting. Version 0.4.1 in /opt/iobroker/node_modules/iobroker.ham, node: v6.14.2
ham.0 2018-06-24 12:30:28.183 debug statesDB connected
ham.0 2018-06-24 12:30:28.152 debug objectDB connected
ham.0 2018-06-24 12:30:25.242 info terminating
ham.0 2018-06-24 12:30:25.217 info cleaned everything up...PS: Habe auf meinem PI3 (nicht hier auf meinem NUC) n MI-Home-Adapter laufen. Kann es evtl. daran liegen, dass ich keine Objekte bekomme? Ich glaube zwar nicht, dass das Gateway nur einen Zugriff zulässt, bin aber nicht sicher…
-
Naja dann liegt es daran das das mi-aquara Plugin wohl keine Objekte kennt und anlegt.
Schau mal ob da alles korrekt ist. Sonst müsste dein debug log eindeutig zeigen das was angelegt wird.
Ingo
Gesendet vom Handy …
-
Habe einen Plugin gefunden der sich ganz komisch verhält.. das ist der homebridge-http-switch Plugin.
1. Im Global modus kommen lauter Fehler im Log. Wird kurz Grün, anlegt Objekte und dann wieder Rot
! ````
ost.buanet 2018-06-25 15:39:44.193 error instance system.adapter.ham.0 terminated with code 0 (OK)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at emitOne (events.js:116:13)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at Request. <anonymous>(/opt/iobroker/node_modules/iobroker.ham/node_modules/request/request.js:1157:10)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at Request.emit (events.js:214:7)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at emitTwo (events.js:126:13)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at Request.self.callback (/opt/iobroker/node_modules/iobroker.ham/node_modules/request/request.js:185:22)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at Request._callback (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-http-switch/index.js:284:17)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at HTTP_SWITCH. <anonymous>(/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-http-switch/index.js:127:25)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:16:19
Caught 2018-06-25 15:39:44.193 error by controller[2]: at Characteristic.On. <anonymous>(/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:167:23)
Caught 2018-06-25 15:39:44.193 error by controller[2]: at char.getValue (/opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js:96:32)
Caught 2018-06-25 15:39:44.193 error by controller[2]: TypeError: logger.warn is not a function
Caught 2018-06-25 15:39:44.193 error by controller[1]: [2018-6-25 13:39:44] Warning: skipping plugin found at '/usr/lib/node_modules/homebridge-http-switch' since we already loaded the same plugin from '/opt/iobroker/node_modules/iobrok
Caught 2018-06-25 15:39:44.193 error by controller[0]: [2018-6-25 13:39:43] Plugin /opt/iobroker/node_modules/homebridge-plugin-wrapper package.json does not contain the keyword 'homebridge-plugin'.
ham.0 2018-06-25 15:39:44.188 info stateChange ham.0.Knopka-2.Accessory-Information.Hardware-Revision {"val":"","ack":true,"ts":1529933984181,"q":0,"from":"system.adapter.ham.0","lc":1529925302472}
ham.0 2018-06-25 15:39:44.188 warn Exception: TypeError: logger.warn is not a function
ham.0 2018-06-25 15:39:44.186 info cleaned everything up...
ham.0 2018-06-25 15:39:44.185 error at emitOne (events.js:116:13)
ham.0 2018-06-25 15:39:44.185 error at Request. <anonymous>(/opt/iobroker/node_modules/iobroker.ham/node_modules/request/request.js:1157:10)
ham.0 2018-06-25 15:39:44.185 error at Request.emit (events.js:214:7)
ham.0 2018-06-25 15:39:44.185 error at emitTwo (events.js:126:13)
ham.0 2018-06-25 15:39:44.185 error at Request.self.callback (/opt/iobroker/node_modules/iobroker.ham/node_modules/request/request.js:185:22)
ham.0 2018-06-25 15:39:44.185 error at Request._callback (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-http-switch/index.js:284:17)
ham.0 2018-06-25 15:39:44.185 error at HTTP_SWITCH. <anonymous>(/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-http-switch/index.js:127:25)
ham.0 2018-06-25 15:39:44.185 error at /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:16:19
ham.0 2018-06-25 15:39:44.185 error at Characteristic.On. <anonymous>(/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:167:23)
ham.0 2018-06-25 15:39:44.185 error at char.getValue (/opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js:96:32)
ham.0 2018-06-25 15:39:44.185 error TypeError: logger.warn is not a function
ham.0 2018-06-25 15:39:44.185 error uncaught exception: logger.warn is not a function
ham.0 2018-06-25 15:39:44.181 info stateChange ham.0.Knopka-2.Accessory-Information.Firmware-Revision {"val":"0.4.9","ack":true,"ts":1529933984178,"q":0,"from":"system.adapter.ham.0","lc":1529925302472}
ham.0 2018-06-25 15:39:44.180 info stateChange ham.0.Knopka-2.Accessory-Information.Serial-Number {"val":"SW01","ack":true,"ts":1529933984178,"q":0,"from":"system.adapter.ham.0","lc":1529925302472}
ham.0 2018-06-25 15:39:44.180 info stateChange ham.0.Knopka-2.Accessory-Information.Name {"val":"Knopka-2","ack":true,"ts":1529933984178,"q":0,"from":"system.adapter.ham.0","lc":1529925302472}</anonymous></anonymous></anonymous></anonymous></anonymous></anonymous>2\. Im config modus wird sofort Grün und im Log gibst keine Fehler >! ```` ham.0 2018-06-25 15:43:58.093 info stateChange ham.0.Knopka-1.Knopka-1.On {"val":true,"ack":true,"ts":1529934238092,"q":0,"from":"system.adapter.ham.0","lc":1529925873505} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Knopka-2.Name {"val":"","ack":true,"ts":1529934238072,"q":0,"from":"system.adapter.ham.0","lc":1529934238072} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Knopka-2.On {"val":true,"ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302473} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Knopka-2.Name {"val":"Knopka-2","ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529934238071} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Accessory-Information.Accessory-Flags {"val":0,"ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302472} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Accessory-Information.Hardware-Revision {"val":"","ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302472} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Accessory-Information.Firmware-Revision {"val":"0.4.9","ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302472} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Accessory-Information.Serial-Number {"val":"SW01","ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302472} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Accessory-Information.Name {"val":"Knopka-2","ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302472} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Accessory-Information.Model {"val":"HTTP Switch","ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302469} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Accessory-Information.Manufacturer {"val":"Andreas Bauer","ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302469} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-2.Accessory-Information.Identify {"val":false,"ack":true,"ts":1529934238071,"q":0,"from":"system.adapter.ham.0","lc":1529925302469} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-1.Knopka-1.Name {"val":"","ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529934238070} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-1.Knopka-1.Name {"val":"Knopka-1","ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529934238070} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-1.Accessory-Information.Accessory-Flags {"val":0,"ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529925302469} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-1.Accessory-Information.Hardware-Revision {"val":"","ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529925302469} ham.0 2018-06-25 15:43:58.087 info stateChange ham.0.Knopka-1.Accessory-Information.Firmware-Revision {"val":"0.4.9","ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529925302469} ham.0 2018-06-25 15:43:58.086 info stateChange ham.0.Knopka-1.Accessory-Information.Serial-Number {"val":"SW01","ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529925302469} ham.0 2018-06-25 15:43:58.086 info stateChange ham.0.Knopka-1.Accessory-Information.Name {"val":"Knopka-1","ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529925302462} ham.0 2018-06-25 15:43:58.086 info stateChange ham.0.Knopka-1.Accessory-Information.Model {"val":"HTTP Switch","ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529925302462} ham.0 2018-06-25 15:43:58.086 info stateChange ham.0.Knopka-1.Accessory-Information.Manufacturer {"val":"Andreas Bauer","ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529925302462} ham.0 2018-06-25 15:43:58.086 info stateChange ham.0.Knopka-1.Accessory-Information.Identify {"val":false,"ack":true,"ts":1529934238070,"q":0,"from":"system.adapter.ham.0","lc":1529925302462} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Knopka-2.Name: value = /common= {"type":"string","read":true,"write":false,"role":"state","name":"Name","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Knopka-2.On: value = true /common= {"type":"boolean","read":true,"write":true,"role":"switch","name":"On","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Knopka-2.Name: value = Knopka-2 /common= {"type":"string","read":true,"write":false,"role":"state","name":"Name","unit":""} ham.0 2018-06-25 15:43:58.063 info updateChannel Knopka-2.Knopka-2: name = Knopka-2 ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Accessory-Information.Accessory-Flags: value = 0 /common= {"type":"number","min":0,"max":4294967295,"read":true,"write":false,"role":"value","name":"Accessory Flags","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Accessory-Information.Hardware-Revision: value = /common= {"type":"string","read":true,"write":false,"role":"state","name":"Hardware Revision","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Accessory-Information.Firmware-Revision: value = 0.4.9 /common= {"type":"string","read":true,"write":false,"role":"state","name":"Firmware Revision","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Accessory-Information.Serial-Number: value = SW01 /common= {"type":"string","read":true,"write":false,"role":"state","name":"Serial Number","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Accessory-Information.Name: value = Knopka-2 /common= {"type":"string","read":true,"write":false,"role":"state","name":"Name","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Accessory-Information.Model: value = HTTP Switch /common= {"type":"string","read":true,"write":false,"role":"state","name":"Model","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Accessory-Information.Manufacturer: value = Andreas Bauer /common= {"type":"string","read":true,"write":false,"role":"state","name":"Manufacturer","unit":""} ham.0 2018-06-25 15:43:58.063 info updateState Knopka-2.Accessory-Information.Identify: value = false /common= {"type":"boolean","read":false,"write":true,"role":"button","name":"Identify","unit":""} ham.0 2018-06-25 15:43:58.063 info updateChannel Knopka-2.Accessory-Information: name = undefined ham.0 2018-06-25 15:43:58.063 info updateDev Knopka-2: name = Knopka-2 /type= 1 ham.0 2018-06-25 15:43:58.057 info updateState Knopka-1.Knopka-1.Name: value = /common= {"type":"string","read":true,"write":false,"role":"state","name":"Name","unit":""} ham.0 2018-06-25 15:43:58.057 info updateState Knopka-1.Knopka-1.On: value = false /common= {"type":"boolean","read":true,"write":true,"role":"switch","name":"On","unit":""} ham.0 2018-06-25 15:43:58.056 info updateState Knopka-1.Knopka-1.Name: value = Knopka-1 /common= {"type":"string","read":true,"write":false,"role":"state","name":"Name","unit":""} ham.0 2018-06-25 15:43:58.056 info updateChannel Knopka-1.Knopka-1: name = Knopka-1 ham.0 2018-06-25 15:43:58.056 info updateState Knopka-1.Accessory-Information.Accessory-Flags: value = 0 /common= {"type":"number","min":0,"max":4294967295,"read":true,"write":false,"role":"value","name":"Accessory Flags","unit":""} ham.0 2018-06-25 15:43:58.056 info updateState Knopka-1.Accessory-Information.Hardware-Revision: value = /common= {"type":"string","read":true,"write":false,"role":"state","name":"Hardware Revision","unit":""} ham.0 2018-06-25 15:43:58.056 info updateState Knopka-1.Accessory-Information.Firmware-Revision: value = 0.4.9 /common= {"type":"string","read":true,"write":false,"role":"state","name":"Firmware Revision","unit":""} ham.0 2018-06-25 15:43:58.056 info updateState Knopka-1.Accessory-Information.Serial-Number: value = SW01 /common= {"type":"string","read":true,"write":false,"role":"state","name":"Serial Number","unit":""} ham.0 2018-06-25 15:43:58.056 info updateState Knopka-1.Accessory-Information.Name: value = Knopka-1 /common= {"type":"string","read":true,"write":false,"role":"state","name":"Name","unit":""} ham.0 2018-06-25 15:43:58.055 info updateState Knopka-1.Accessory-Information.Model: value = HTTP Switch /common= {"type":"string","read":true,"write":false,"role":"state","name":"Model","unit":""} ham.0 2018-06-25 15:43:58.055 info updateState Knopka-1.Accessory-Information.Manufacturer: value = Andreas Bauer /common= {"type":"string","read":true,"write":false,"role":"state","name":"Manufacturer","unit":""} ham.0 2018-06-25 15:43:58.055 info updateState Knopka-1.Accessory-Information.Identify: value = false /common= {"type":"boolean","read":false,"write":true,"role":"button","name":"Identify","unit":""} ham.0 2018-06-25 15:43:58.055 info updateChannel Knopka-1.Accessory-Information: name = undefined ham.0 2018-06-25 15:43:58.054 info updateDev Knopka-1: name = Knopka-1 /type= 1 ham.0 2018-06-25 15:43:57.687 info starting. Version 0.4.1 in /opt/iobroker/node_modules/iobroker.ham, node: v8.11.3 yahka.0 2018-06-25 15:43:57.446 info objectChange system.adapter.ham.0 {"_id":"system.adapter.ham.0","type":"instance","common":{"name":"ham","version":"0.4.1","news":{"0.4.1":{"en":"option to poll values from the plugins added and othe host.buanet 2018-06-25 15:43:57.445 info instance system.adapter.ham.0 started with pid 4302 host.buanet 2018-06-25 15:43:57.442 info "system.adapter.ham.0" enabled host.buanet 2018-06-25 15:43:57.442 info object change system.adapter.ham.0 yahka.0 2018-06-25 15:43:55.538 info objectChange system.adapter.ham.0 {"_id":"system.adapter.ham.0","type":"instance","common":{"name":"ham","version":"0.4.1","news":{"0.4.1":{"en":"option to poll values from the plugins added and othe host.buanet 2018-06-25 15:43:55.536 info object change system.adapter.ham.0
3. Beim starten Homebridge (ohne ham adapter) geht auch alles ohne Problemen und keine Fehler im Log
!
Objekte
!
-
Kurze Frage: ich muss dich nur den ham-Adapter installieren um die Plugins für Homebridge nutzen zu können, korrekt? Oder muss ich separat auch den/einen Homebridge Adapter installieren??
VG Thorsten
Gesendet von meinem HUAWEI RIO-L01 mit Tapatalk
-
Kurze Frage: ich muss dich nur den ham-Adapter installieren um die Plugins für Homebridge nutzen zu können, korrekt? Oder muss ich separat auch den/einen Homebridge Adapter installieren??
VG Thorsten
Gesendet von meinem HUAWEI RIO-L01 mit Tapatalk `
Du musst :
-
den HAM Adapter installieren
-
die gewünschten Plugins in der Adapter Konfiguration eintragen (diese werden dann bei Adapter start installiert)
-
die Konfiguration des betreffenden Plugins im HAM Adapter eintragen
Greetz
Dutch
Sent from my iPhone using Tapatalk
-
-
Habe einen Plugin gefunden der sich ganz komisch verhält.. das ist der homebridge-http-switch Plugin.
1. Im Global modus kommen lauter Fehler im Log. Wird kurz Grün, anlegt Objekte und dann wieder Rot `
Gratuliere, Bug gefunden!
Bitte Github version versuchen. Geht es damit auch im Global-Mode?
Dann release ich das nach deinem Check. Danke!
-
ratuliere, Bug gefunden!
Bitte Github version versuchen. Geht es damit auch im Global-Mode?
Dann release ich das nach deinem Check. Danke! `
Ja, Geht!
habe nur ein kurze Warnung > ham.0 2018-06-25 17:14:37.234 warn Error while getting current value: Error: Got html error code 404
aber ich glaube das ist weil ich noch keine richtige URLs eingetragen habe.
-
Kurze Frage: ich muss dich nur den ham-Adapter installieren um die Plugins für Homebridge nutzen zu können, korrekt? Oder muss ich separat auch den/einen Homebridge Adapter installieren??
VG Thorsten
Gesendet von meinem HUAWEI RIO-L01 mit Tapatalk `
Du musst :
-
den HAM Adapter installieren
-
die gewünschten Plugins in der Adapter Konfiguration eintragen (diese werden dann bei Adapter start installiert)
-
die Konfiguration des betreffenden Plugins im HAM Adapter eintragen
Greetz
Dutch
Sent from my iPhone using Tapatalk ` Super danke, also alles richtig gemacht
Gesendet von meinem HUAWEI RIO-L01 mit Tapatalk
-
-
Dann release ich das nach deinem Check. Danke! `
Habe richtige URLs eingetragen, funktioniert sehr gut! (Warnung ist auch weg) Danke!
Kurze frage habe ich noch, was muss ich eintragen um status vom "State" rauszulesen? Habe jetzt mit prettyPrint und getPlainValue versucht, ohne erfolg. (es geht um simple-api Adapter)
Mein config
! ````
"accessories": [
{
"accessory": "HTTP-SWITCH",
"name": "Knopka-1",
"switchType": "stateful",
"httpMethod": "GET",
"onUrl": "http://192.168.2.88:8087/set/javascript.0.Test.Knopka-1?value=true",
"offUrl": "http://192.168.2.88:8087/set/javascript.0.Test.Knopka-1?value=false",
"statusUrl": "http://192.168.2.88:8087/getPlainValue/javascript.0.Test.Knopka-1"
},
{
"accessory": "HTTP-SWITCH",
"name": "Knopka-2",
"switchType": "stateless-reverse",
"timeout": 1000,
"offUrl": "http://192.168.2.88:8087/set/javascript.0.Test.Knopka-2?value=false"
}
]Update: Habe nachgelesen, es muss noch ein homebridge-http-notification-server laufen und eingerichtet werden..
-
Die Frage ist aber ziemlich Plugin-Spezifisch und wäre in einem eigenen Thread besser aufgehoben
Tip: Ruf direkt auf und schau ob der Wert rauskommt. Was das Plugin mit dem Wert wie macht und erwartet weiss ich aber nicht.
-
Die Frage ist aber ziemlich Plugin-Spezifisch und wäre in einem eigenen Thread besser aufgehoben
Tip: Ruf direkt auf und schau ob der Wert rauskommt. Was das Plugin mit dem Wert wie macht und erwartet weiss ich aber nicht. `
ok.
Bei "Funktionierende Plugins und Beispiele" hinzugefügt.
viewtopic.php?f=20&t=15021&p=158013#p158013
–-
P.S. Habe mit Dev. vom homebridge-iobroker gesprochen wird eventuell ein Fortsetzung geben
-
P.S. Habe mit Dev. vom homebridge-iobroker gesprochen wird eventuell ein Fortsetzung geben `
Interesting! Was genau?
Sent from my iPhone using Tapatalk
-
Interesting! Was genau? `
Native Verbindung zwischen iobroker und Homebridge (ohne yahka adapter)
"platforms": [ { "platform" : "homebridge-iobroker.iobroker", "name" : "iobroker", "host": "http://localhost:8084", "filter": "*", "switches": [ "adapter.0.object_1", "adapter.0.object_2", "adapter.0.object_3", ... ] } ]
-
Hallo,
mich interessiert der Adapter sehr.
Leider bekomme ich beim Start folgende Meldung:
` > ham.0 2018-06-26 10:48:38.034 info terminating
ham.0 2018-06-26 10:48:37.946 warn Exception: TypeError: Cannot read property 'indexOf' of undefined
ham.0 2018-06-26 10:48:37.938 info cleaned everything up…
ham.0 2018-06-26 10:48:37.936 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:236:12)
ham.0 2018-06-26 10:48:37.936 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:312:9)
ham.0 2018-06-26 10:48:37.936 error at Socket. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:2249:25)
ham.0 2018-06-26 10:48:37.936 error at adapter.getDevices (/opt/iobroker/node_modules/iobroker.ham/main.js:175:27)
ham.0 2018-06-26 10:48:37.936 error at loadExistingAccessories (/opt/iobroker/node_modules/iobroker.ham/main.js:229:35)
ham.0 2018-06-26 10:48:37.936 error at Object.start (/opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js:96:23)
ham.0 2018-06-26 10:48:37.936 error at HomebridgeWrapper.init (/opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js:190:17)
ham.0 2018-06-26 10:48:37.936 error at Server.run (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:85:36)
ham.0 2018-06-26 10:48:37.936 error at Server._loadPlatforms (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:314:45)
ham.0 2018-06-26 10:48:37.936 error at API.platform (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/api.js:108:11)
ham.0 2018-06-26 10:48:37.936 error TypeError: Cannot read property 'indexOf' of undefined
ham.0 2018-06-26 10:48:37.936 error uncaught exception: Cannot read property 'indexOf' of undefined</anonymous> `
Nodejs 6 ist installiert
Woran kann das liegen?
Grüße
-
Zeig Mal deine config
Sent from my iPhone using Tapatalk
-
Plugin erstmal nur zum Test drin:
2480_1.png
2480_2.png -
Nimm Mal {} bij Platforms Weck wenn nichts eingefüllt reicht []
Sent from my iPhone using Tapatalk
-
Ahh ok, das war der Fehler.
Dann kann ich mal testen jetzt
Danke und Grüße
-
Hi,
wollte es auch gerade testen leider ohne erfolg, er kann die config.json nicht finden.
host.devbroker 2018-06-26 21:59:40.320 info Restart adapter system.adapter.ham.0 because enabled host.devbroker 2018-06-26 21:59:40.320 error instance system.adapter.ham.0 terminated with code 0 (OK) Caught 2018-06-26 21:59:40.320 error by controller[1]: path: '/opt/iobroker/iobroker-data/ham_0/config.json' } Caught 2018-06-26 21:59:40.320 error by controller[1]: syscall: 'open', Caught 2018-06-26 21:59:40.320 error by controller[1]: code: 'ENOENT', Caught 2018-06-26 21:59:40.320 error by controller[1]: errno: -2, Caught 2018-06-26 21:59:40.320 error by controller[1]: at Object.start (/opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js:96:23) Caught 2018-06-26 21:59:40.320 error by controller[1]: at HomebridgeWrapper.init (/opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js:188:19) Caught 2018-06-26 21:59:40.320 error by controller[1]: at new Server (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:57:24) Caught 2018-06-26 21:59:40.320 error by controller[1]: at Server._loadPlugins (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:139:22) Caught 2018-06-26 21:59:40.320 error by controller[1]: at Array.forEach (<anonymous>) Caught 2018-06-26 21:59:40.320 error by controller[1]: at Server. <anonymous>(/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:165:14) Caught 2018-06-26 21:59:40.320 error by controller[1]: at Plugin.module.exports [as initializer] (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-mi-philips-light/index.js:10:9) Caught 2018-06-26 21:59:40.320 error by controller[1]: at isConfig (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-mi-philips-light/index.js:24:32) Caught 2018-06-26 21:59:40.320 error by controller[1]: at Object.fs.readFileSync (fs.js:551:33) Caught 2018-06-26 21:59:40.320 error by controller[1]: at Object.fs.openSync (fs.js:646:18) Caught 2018-06-26 21:59:40.320 error by controller[1]: { Error: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/ham_0/config.json' Caught 2018-06-26 21:59:40.319 error by controller[0]: [2018-6-26 21:59:40] Plugin /opt/iobroker/node_modules/homebridge-plugin-wrapper package.json does not contain the keyword 'homebridge-plugin'. ham.0 2018-06-26 21:59:40.314 warn Exception: Error: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/ham_0/config.json' ham.0 2018-06-26 21:59:40.314 info cleaned everything up... ham.0 2018-06-26 21:59:40.314 error at Object.start (/opt/iobroker/node_modules/iobroker.ham/lib/wrapper-handler.js:96:23) ham.0 2018-06-26 21:59:40.314 error at HomebridgeWrapper.init (/opt/iobroker/node_modules/homebridge-plugin-wrapper/index.js:188:19) ham.0 2018-06-26 21:59:40.314 error at new Server (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:57:24) ham.0 2018-06-26 21:59:40.314 error at Server._loadPlugins (/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:139:22) ham.0 2018-06-26 21:59:40.314 error at Array.forEach (<anonymous>) ham.0 2018-06-26 21:59:40.314 error at Server. <anonymous>(/opt/iobroker/node_modules/homebridge-plugin-wrapper/homebridge/server.js:165:14) ham.0 2018-06-26 21:59:40.314 error at Plugin.module.exports [as initializer] (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-mi-philips-light/index.js:10:9) ham.0 2018-06-26 21:59:40.314 error at isConfig (/opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-mi-philips-light/index.js:24:32) ham.0 2018-06-26 21:59:40.314 error at Object.fs.readFileSync (fs.js:551:33) ham.0 2018-06-26 21:59:40.314 error at Object.fs.openSync (fs.js:646:18) ham.0 2018-06-26 21:59:40.314 error Error: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/ham_0/config.json' ham.0 2018-06-26 21:59:40.314 error uncaught exception: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/ham_0/config.json' ham.0 2018-06-26 21:59:40.311 debug [2018-6-26 21:59:40] Loaded plugin: homebridge-mi-philips-light</anonymous></anonymous></anonymous></anonymous>
das modul habe ich eigentlich schon gelöscht.. screenshot der Config im Anhang
1768_2018-06-26_22h04_03.png -
Oooohje diese Plugin-Entwickler … warum auch immer die das Configfile lesen ...
Bitte 0.4.3 vom GitHub versuchen. geht es damit? Er schreibt jetzt die Konfig ins Konfigverzeichnis zusätzlich.
Du solltest aber das JSON checken. ein doppeltes "accessories" ist blöd. Wirf das Wemos raus wenn Du es nicht brauchst.