NEWS
[Aufruf] Neuer Adapter ioBroker.tuya (WLAN devices Tuya Smart Life und andere)
-
filename="Android-Proxy-einrichten-rcm992x0.jpg" index="0">~~ `
Darf ich das Bild in die adapter Doku übernehmen?Gesendet vom Handy …
-
Gerne..
Alle Geräte die mit der App "io.e" Installiert werden (Luminea, u.s.w.) funktionieren auch mit deinem Adapter
-
Durch deinen Adapter werden alle billigst Geräte integrierbar in ioBroker…
Glückwunsch. Hammer Adapter
-
Schau mal ins log bitte als du den Sync mit der App gemacht hast nach Schemata Infos und send to developer. Dabke
Gesendet vom Handy …
-
Weiß nicht genau wo man das hin sendet. Also per Mail oder so? Gibt es da n Button? Oder hier per Nachricht?
Aber Log pack ich hier rein:
! ````
tuya.0 2018-11-04 21:55:04.303 info 07652000807d3a1da477: Error from device (0): App still open on your mobile phone? Error: Error from socket
tuya.0 2018-11-04 21:54:29.212 info Discover for local Tuya devices on port 6666
tuya.0 2018-11-04 21:54:29.197 info Existing devices initialized
tuya.0 2018-11-04 21:54:29.195 info 0120000660019448d9fe Init with IP=192.168.178.33, Key=44b3f41b3a451109
tuya.0 2018-11-04 21:54:29.191 info 0120000660019448e30f Init with IP=192.168.178.34, Key=2f489f0430013398
tuya.0 2018-11-04 21:54:29.159 info 07652000807d3a1da477 Init with IP=192.168.178.28, Key=0756207f82130213
tuya.0 2018-11-04 21:54:28.723 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.tuya, node: v8.12.0
host.Elzershark 2018-11-04 21:54:24.867 info instance system.adapter.tuya.0 started with pid 4734
host.Elzershark 2018-11-04 21:54:24.844 info object change system.adapter.tuya.0
host.Elzershark 2018-11-04 21:54:06.852 info Restart adapter system.adapter.tuya.0 because enabled
host.Elzershark 2018-11-04 21:54:06.852 error instance system.adapter.tuya.0 terminated with code 7 (Adapter already running)
Caught 2018-11-04 21:54:06.852 error by controller[4]: at process._tickCallback (internal/process/next_tick.js:181:9)
Caught 2018-11-04 21:54:06.851 error by controller[4]: at _combinedTickCallback (internal/process/next_tick.js:139:11)
Caught 2018-11-04 21:54:06.851 error by controller[4]: at emitErrorNT (internal/streams/destroy.js:66:8)
Caught 2018-11-04 21:54:06.851 error by controller[4]: at Socket.emit (events.js:211:7)
Caught 2018-11-04 21:54:06.850 error by controller[4]: at emitOne (events.js:116:13)
Caught 2018-11-04 21:54:06.850 error by controller[4]: at Socket.client.on.err (/opt/iobroker/node_modules/tuyapi/index.js:536:16)
Caught 2018-11-04 21:54:06.850 error by controller[4]: at TuyaDevice.emit (events.js:211:7)
Caught 2018-11-04 21:54:06.850 error by controller[4]: at emitOne (events.js:116:13)
Caught 2018-11-04 21:54:06.849 error by controller[4]: at TuyaDevice.knownDevices.(anonymous function).device.on (/opt/iobroker/node_modules/iobroker.tuya/main.js:325:47)
Caught 2018-11-04 21:54:06.849 error by controller[4]: TypeError: Cannot read property 'disconnect' of null
Caught 2018-11-04 21:54:06.849 error by controller[4]:
Caught 2018-11-04 21:54:06.848 error by controller[4]: 1<process.argv.length?process.argv[1].replace( 6666/\/g,"/"):"unknown-program");b.arguments="process.argv.slice(2);"undefined"!==typeof" module&&(module.exports="b);process.on("uncaughtExc" caught/2018-11-04/21:54:06.848/error/by/controller[4]:/opt/iobroker/node_modules/brotli/build/encode.js:3/controller[3]:/at/process._tickcallback/(internal/process/next_tick.js:181:9)/21:54:06.847/_combinedtickcallback/next_tick.js:139:11)/emiterrornt/streams/destroy.js:66:8)/socket.emit/(events.js:211:7)/21:54:06.846/emitone/(events.js:116:13)/socket.client.on.err/(/tuyapi/index.js:536:16)/21:54:06.845/tuyadevice.emit/tuyadevice.knowndevices.(anonymous/function).device.on/iobroker.tuya/main.js:325:47)/21:54:06.844/typeerror:/cannot/read/property/'disconnect'/of/null/controller[2]:/[anyproxy/error][2018-11-04/21:53:48]:/error:/getaddrinfo/enotfound/duvvaoxwm/duvvaoxwm:80/21:54:06.843/vbmhgnvoxyoyvu/vbmhgnvoxyoyvu:80/21:54:06.842/controller[1]:/vhpcnwrt/vhpcnwrt:80/tuya.0/21:54:06.755/info/07652000807d3a1da477:/from/device/(4):/app/still/open/on/your/mobile/phone?/socket/21:54:06.727/(3):/21:54:06.723/(2):/21:54:06.719/0120000660019448d9fe:/21:54:06.718/0120000660019448e30f:/21:54:06.622/21:54:06.618/(1):/21:54:06.582/21:54:05.838/21:54:05.834/(0):/21:54:05.832/21:54:05.724/0120000660019448e30f/init/with/ip="192.168.178.34," key="2f489f0430013398" 21:54:05.722/07652000807d3a1da477/21:54:05.720/21:54:05.718/0120000660019448d9fe/21:54:05.716/21:54:05.714/21:54:05.712/21:54:05.631/21:54:05.619/21:54:05.616/21:54:05.602/21:54:05.579/21:54:05.569/21:54:05.566/21:54:05.562/21:53:43.604/21:53:29.992/anyproxy/ready/to/receive/requests/21:53:08.548/no/local/encryption/available,/get/data/using/polling,/controlling/not/possibe./please/sync/app!/21:53:08.543/21:53:07.816/21:53:07.810/21:53:07.181/21:53:07.165/21:53:05.709/discover/for/tuya/devices/port/21:53:05.687/existing/initialized/21:53:05.630/starting./version/0.1.2/in/iobroker.tuya,/node:/v8.12.0<e=""></process.argv.length?process.argv[1].replace(>IP=192.168.178.28 = 2 Fach Wlan Steckdose .Gibt viele mit verschiedenen Namen. Alle die so aussehen passen [https://amzn.to/2SL6tzw](https://amzn.to/2SL6tzw) IP=192.168.178.33 + 34 = Luminea E27 Lampe [https://amzn.to/2D1sCE4](https://amzn.to/2D1sCE4)
-
Weiß nicht genau wo man das hin sendet. Also per Mail oder so? Gibt es da n Button? Oder hier per Nachricht? `
PN geht, GitHub issue geht, hier posten geht
Choose …
-
@PerfectAnswer, @All
Auf Github gibt es die 0.1.3 des Adapters.
Changelog:
-
Weitere Schemata Info hinzugefügt die automatisch erkannt und ausgefüllt werden für neue User
-
(@PerfectAnswer) Es sollten jetzt ausser beim App-Sync die Namen der Objekte erhalten bleiben. Beim Sync mit der App werden Sie aber ggf. überschrieben! Bitte ausprobieren!!
-
Einige kleinere Fehler die ich in Logs von Euch gesehen habe sind gefixt. Danke!
ich hoffe auf Euer Feedback ob noch alles tut, dann packe ich es für die anderen auf npm
Ansonsten kurzer Status zu den "Nicht immer online Geräten":
Diese geht wohl aktuell nicht so wirklich weil Sie sich nicht wirklich im Netzwerk melden und der Adapter daher nicht weiss wann Sie online sind. Da ich leider kein solches gerät habe ist es schwierig da was zu debuggen
Die Geräte scheinen sich nur in der Tuya Cloud zu melden, den neuen Wert abzugeben und sind wieder offline.
Theoretisch läuft da was mit MQTT aber das müsste jemand mit Wireshark mitschneiden (@arteck Lust?
) weil ich so ein gerät nicht habe …
Mal schauen ...
Ingo
-
-
Danke fürs Update
Kurzes Feedback: Bisher keine Fehler entdeckt und tut was er soll thumbs up
-
! ````
$ ./iobroker upgrade tuya
Update tuya from @0.1.2 to @0.1.3
NPM version: 6.4.1
npm install iobroker.tuya@0.1.3 --production --save --prefix "/opt/iobroker" (System call)
npm
WARN
deprecated
clipboard-js@0.3.6: Please migrate to https://github.com/lgarron/clipboard-polyfill
npm
WARN
svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npmWARN optional
SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):npmWARN notsup
SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})! npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.tuya"
npm
WARN deprecated clipboard-js@0.3.6: Please migrate to https://github.com/lgarron/clipboard-polyfill
npm
WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npmWARN
deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm
WARN
deprecated
minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm
WARN
deprecated
minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm
WARN
deprecated
graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm
notice created a lockfile as package-lock.json. You should commit this file.
npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.! got /opt/iobroker/node_modules/iobroker.tuya/admin
upload [2] tuya.admin /opt/iobroker/node_modules/iobroker.tuya/admin/words.js words.js application/javascript
upload [1] tuya.admin /opt/iobroker/node_modules/iobroker.tuya/admin/tuya.png tuya.png image/png
upload [0] tuya.admin /opt/iobroker/node_modules/iobroker.tuya/admin/index_m.html index_m.html text/html
Adapter "tuya" updated
process exited with code 0Bei mir Warn Hinweise beim upgraden. Sonst alles OK. Eventuell noch den "Warn" Hinweis machen, wenn man den Port im W-Lan eingestellt hat, und die Prozedur ist fertig, das man wieder den Port deaktivieren sollte, da sonst das Internet nicht funktioniert im Handy
-
Falls Du möchtest:
-
Cool, Danke, übernehme ich noch!
-
Rolladen Zeitschaltuhr Jalousien Schalter = https://amzn.to/2DaecSr
Alle die so aussehen, funktionieren
Geräte IP= IP=192.168.178.34
0 = ? keine Funktion (kein Fehler)
1 = auf
2 = zu
3 = pause/stopp
Neues Shema:
! ````
2018-11-07 23:54:03.483 - info: host.Elzershark object change system.adapter.tuya.0
2018-11-07 23:54:03.513 - info: host.Elzershark instance system.adapter.tuya.0 started with pid 10356
2018-11-07 23:54:07.727 - info: tuya.0 starting. Version 0.1.3 in /opt/iobroker/node_modules/iobroker.tuya, node: v8.12.0
2018-11-07 23:54:07.815 - info: tuya.0 Existing devices initialized
2018-11-07 23:54:07.827 - info: tuya.0 Discover for local Tuya devices on port 6666
2018-11-07 23:54:09.142 - info: tuya.0 0120000660019448e30f Init with IP=192.168.178.28, Key=undefined
2018-11-07 23:54:09.159 - info: tuya.0 0120000660019448e30f: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App!
2018-11-07 23:54:09.161 - info: tuya.0 07652000807d3a1da477 Init with IP=192.168.178.26, Key=undefined
2018-11-07 23:54:09.163 - info: tuya.0 07652000807d3a1da477: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App!
2018-11-07 23:54:09.405 - info: tuya.0 16683183807d3a375847 Init with IP=192.168.178.34, Key=undefined
2018-11-07 23:54:09.406 - info: tuya.0 16683183807d3a375847: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App!
2018-11-07 23:54:09.484 - info: tuya.0 16683183807d3a375847: No schema exists, init basic states ...
2018-11-07 23:54:09.812 - info: tuya.0 0120000660019448d9fe Init with IP=192.168.178.27, Key=undefined
2018-11-07 23:54:09.813 - info: tuya.0 0120000660019448d9fe: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App!
2018-11-07 23:54:09.879 - debug: fritzdect.0 system.adapter.admin.0: logging false
2018-11-07 23:54:24.173 - info: tuya.0 Anyproxy ready to receive requests
2018-11-07 23:54:54.765 - info: tuya.0 new Shema added for product type TtXKwTMwiPpURWLJ. Please send next line from logfile on disk to developer!
2018-11-07 23:54:54.765 - info: tuya.0 {"schema":"[{"mode":"rw","code":"status","name":"门帘状态","property":{"range":["0","1","2","3"],"type":"enum"},"id":1,"type":"obj","desc":"开 关 暂停"}]","schemaExt":"[]"}
2018-11-07 23:54:55.849 - info: tuya.0 16683183807d3a375847 Init with IP=192.168.178.34, Key=1cda4bbb517721f4
2018-11-07 23:54:55.885 - info: tuya.0 0120000660019448e30f Init with IP=192.168.178.28, Key=2f489f0430013398
2018-11-07 23:54:55.889 - info: tuya.0 16683183807d3a375847 Init with IP=192.168.178.34, Key=1cda4bbb517721f4
2018-11-07 23:54:55.893 - info: tuya.0 16683183807d3a375847 Init with IP=192.168.178.34, Key=1cda4bbb517721f4
2018-11-07 23:54:55.895 - info: tuya.0 0120000660019448e30f Init with IP=192.168.178.28, Key=2f489f0430013398
2018-11-07 23:54:55.898 - info: tuya.0 0120000660019448d9fe Init with IP=192.168.178.27, Key=44b3f41b3a451109
2018-11-07 23:54:55.905 - info: tuya.0 07652000807d3a1da477 Init with IP=192.168.178.26, Key=0756207f82130213
2018-11-07 23:54:55.910 - info: tuya.0 0120000660019448e30f Init with IP=192.168.178.28, Key=2f489f0430013398
2018-11-07 23:54:55.912 - info: tuya.0 0120000660019448d9fe Init with IP=192.168.178.27, Key=44b3f41b3a451109
2018-11-07 23:54:55.914 - info: tuya.0 07652000807d3a1da477 Init with IP=192.168.178.26, Key=0756207f82130213
2018-11-07 23:54:55.916 - info: tuya.0 0120000660019448d9fe Init with IP=192.168.178.27, Key=44b3f41b3a451109
2018-11-07 23:54:55.945 - info: tuya.0 07652000807d3a1da477 Init with IP=192.168.178.26, Key=0756207f82130213
2018-11-07 23:54:55.957 - info: tuya.0 16683183807d3a375847 Init with IP=192.168.178.34, Key=1cda4bbb517721f4
2018-11-07 23:54:55.961 - info: tuya.0 0120000660019448e30f Init with IP=192.168.178.28, Key=2f489f0430013398
2018-11-07 23:54:55.964 - info: tuya.0 0120000660019448d9fe Init with IP=192.168.178.27, Key=44b3f41b3a451109
2018-11-07 23:54:55.967 - info: tuya.0 07652000807d3a1da477 Init with IP=192.168.178.26, Key=0756207f82130213
2018-11-07 23:55:26.452 - info: host.Elzershark object change system.adapter.tuya.0
2018-11-07 23:55:26.453 - info: host.Elzershark stopInstance system.adapter.tuya.0
2018-11-07 23:55:26.453 - info: host.Elzershark stopInstance system.adapter.tuya.0 killing pid 10356
2018-11-07 23:55:26.988 - info: host.Elzershark instance system.adapter.tuya.0 terminated with code 0 (OK)
2018-11-07 23:55:28.979 - info: host.Elzershark instance system.adapter.tuya.0 started with pid 10372
2018-11-07 23:55:33.076 - info: tuya.0 starting. Version 0.1.3 in /opt/iobroker/node_modules/iobroker.tuya, node: v8.12.0
2018-11-07 23:55:33.483 - info: tuya.0 16683183807d3a375847 Init with IP=192.168.178.34, Key=1cda4bbb517721f4
2018-11-07 23:55:33.505 - info: tuya.0 0120000660019448d9fe Init with IP=192.168.178.27, Key=44b3f41b3a451109
2018-11-07 23:55:33.511 - info: tuya.0 07652000807d3a1da477 Init with IP=192.168.178.26, Key=0756207f82130213
2018-11-07 23:55:33.515 - info: tuya.0 0120000660019448e30f Init with IP=192.168.178.28, Key=2f489f0430013398
2018-11-07 23:55:33.517 - info: tuya.0 Existing devices initialized
2018-11-07 23:55:33.529 - info: tuya.0 Discover for local Tuya devices on port 6666![4339_clipboard_1.jpg](/assets/uploads/files/4339_clipboard_1.jpg)
-
Ich habe den Adapter jetzt auch mal installiert.
Die Objekte werden auch angezeigt. Leider nicht komplett richtig. Kannst du da was dran machen? Der aktuelle Stromverbrauch aktualisiert sich brav. Aber bei den beiden obersten Punkten sind so komische chinesiche Zeichen dahinter. Ob die beiden Punkte überhaupt funktionieren weiß ich nicht. Ich vermute das ist der Langzeitverbrauch. Den gibts natürlich noch nicht, da ich die Steckdose gerade erst in Betrieb genommen hab.
Außerdem bekomme ich am laufenden Band eine Meldung im Log:
tuya.0 2018-11-08 15:51:26.477 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:50:50.459 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:50:14.431 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:49:38.425 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:49:02.406 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:48:26.387 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:47:50.374 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:47:14.349 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:46:38.324 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:46:02.313 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:45:26.298 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:44:50.284 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:44:14.273 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:43:38.129 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:43:02.113 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:42:26.103 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:41:50.094 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:41:14.081 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:40:38.071 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:40:02.051 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:39:26.028 info 80027536bcddc28a85f4: Error from device (0): App still open on your mobile phone? Error: Error from socket tuya.0 2018-11-08 15:38:51.023 info Discover for local Tuya devices on port 6666
Die App ist definitiv beendet. Die Meldung kommt sogar wenn ich das Smartphone ganz aus habe.
Hast du eine Idee? Brauchst du noch was von mir?
Steckdosen sind übrigens die hier: https://www.amazon.de/gp/product/B07DGH … UTF8&psc=1
-
Die Objekte werden auch angezeigt. Leider nicht komplett richtig. Kannst du da was dran machen? Der aktuelle Stromverbrauch aktualisiert sich brav. Aber bei den beiden obersten Punkten sind so komische chinesiche Zeichen dahinter. Ob die beiden Punkte überhaupt funktionieren weiß ich nicht. Ich vermute das ist der Langzeitverbrauch. Den gibts natürlich noch nicht, da ich die Steckdose gerade erst in Betrieb genommen hab. `
Die chinesischen Zeichen sind die Unit weil es keine andere Info in englisch gibt
Add_Ele keine Ahnung, Countdown glaube wäre ne Timer-Einstellung. Musst Du mal rumprobieren.
Außerdem bekomme ich am laufenden Band eine Meldung im Log:
Die App ist definitiv beendet. Die Meldung kommt sogar wenn ich das Smartphone ganz aus habe.
Hast du eine Idee? Brauchst du noch was von mir? `
Ne, die Geräte sind manchmal etwas zickig mit dem verbinden. Die nächsten Versionen packen weniger ins Log
-
Ok, danke. Also lass ich erst mal so und hoffe auf eine neue Version, damit wieder Ruhe einkehrt
Mir ist auch noch aufgefallen, dass der "Online Status" und "If Connected tu Tuya" zwischendurch immer wieder auf "false" springen und danach sofort wieder auf "true". Ich denke in dem Moment kommt dann auch die Meldung im Log …
-
Korrekt
-
1.0.0 release und ab morgen auch im Stable Repo.
Changelog 1.0.0:
-
Weniger Logging (ausser bei debug Loglevel)
-
Neue Schematas
-
-
Funktioniert perfekt. Die nervigen Meldungen sind verschwunden. Danke!
-
Hi,
Ich bin sehr neu dabei.
Ich habe mir nun den Adapter tuya installiert aber ich bekomme keinen QR-Code.
Im Log zeigt er mir ganz viele Fehler an.
Ich würde mich freuen auf eure hilfe
-
Kann sein das da irgendwie RAM knapp ist? memory allocation failed … der Proxy brauch recht viel ram