Apollon77 / ioBroker.tuya

ioBroker adapter to connect to several small and cheap Wifi devices that care connected to the Tuya Cloud and mostly use the Smartlife App/Alexa-Skill
MIT License
87 stars 21 forks source link

first issue :-) - Error from device Error: Error from socket #1

Closed Ilovegym66 closed 5 years ago

Ilovegym66 commented 5 years ago

warum immer ich.. ? Habe 2 devices, einen LED-Stripe Controller von Pearl und einen Diffusor, die über die Oittm Smart App gesteuert werden. Konnte über den Alexaskill bisher steuern, aber so ist es in iobroker sogar noch besser als im Skill, der kann beim Diffusor nämlich nur on/off, jetzt kann ich mit Duft/Farbe etc durch iobroker steuern.. Danke!! Zur Info der Auszug aus iobroker/log/ nach dem installieren: 2018-10-29 13:19:20.624 - info: tuya.0 0020097260019455f173: Error from device Error: Error from socket 2018-10-29 13:19:21.018 - info: host.iobroker object change system.adapter.tuya.0 2018-10-29 13:19:21.018 - info: host.iobroker "system.adapter.tuya.0" disabled 2018-10-29 13:19:21.018 - info: host.iobroker stopInstance system.adapter.tuya.0 2018-10-29 13:19:21.018 - info: host.iobroker stopInstance system.adapter.tuya.0 killing pid 5493 2018-10-29 13:19:21.028 - info: paw.0 objectChange system.adapter.tuya.0 {"_id":"system.adapter.tuya.0","type":"instance","common":{"name":"tuya","version":"0.1.0","news":{"0.1.0":{"en":"Initiale Tuya Adapter Version","de":"Initiale Tuya Adapter Version","ru":"Версия Initiale Tuya Adapter","pt":"Versão do Adaptador Initiale Tuya","nl":"Initiale Tuya-adapterversie","fr":"Initiale Tuya Adapter Version","it":"Versione dell'adattatore Initiale Tuya","es":"Initiale Tuya Adapter Version","pl":"Initiale Tuya Adapter Version"}},"title":"Tuya","titleLang":{"en":"Tuya","de":"Tuya","ru":"Tuya","pt":"Tuya","nl":"Tuya","fr":"Tuya","it":"Tuya","es":"Tuya","pl":"Tuya"},"desc":{"en":"Tuya Adapter","de":"Tuya Adapter","ru":"Tuya адаптер","pt":"Adaptador Tuya","nl":"Tuya-adapter","fr":"Adaptateur Tuya","it":"Adattatore Tuya","es":"Adaptador Tuya","pl":"Adapter Tuya"},"license":"MIT","authors":["Apollon77 <iobroker@fischer-ka.de>"],"platform":"Javascript/Node.js","mode":"daemon","icon":"tuya.png","messagebox":true,"subscribe":"messagebox","materialize":true,"enabled":false,"extIcon":"https://raw.githubusercontent.com/Apollon77/ioBroker.tuya/master/admin/tuya.png","keywords":["Tuya","switch","smarthome","iobroker"],"readme":"https://github.com/Apollon77/ioBroker.tuya/blob/master/README.md","loglevel":"info","type":"iot-systems","restartAdapters":[],"installedVersion":"0.1.0","host":"iobroker"},"native":{"pollingInterval":"60","proxyPort":"8890","proxyWebPort":"8891"},"from":"system.adapter.admin.0","ts":1540815561016,"acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:19:21.246 - info: tuya.0 012002512c3ae844f84b: Error from device Error: Error from socket 2018-10-29 13:19:21.540 - info: host.iobroker instance system.adapter.tuya.0 terminated with code 0 (OK) 2018-10-29 13:22:15.872 - info: host.iobroker object change system.adapter.tuya.0 2018-10-29 13:22:15.881 - info: host.iobroker instance system.adapter.tuya.0 started with pid 5553 2018-10-29 13:22:15.890 - info: paw.0 objectChange system.adapter.tuya.0 {"_id":"system.adapter.tuya.0","type":"instance","common":{"name":"tuya","version":"0.1.0","news":{"0.1.0":{"en":"Initiale Tuya Adapter Version","de":"Initiale Tuya Adapter Version","ru":"Версия Initiale Tuya Adapter","pt":"Versão do Adaptador Initiale Tuya","nl":"Initiale Tuya-adapterversie","fr":"Initiale Tuya Adapter Version","it":"Versione dell'adattatore Initiale Tuya","es":"Initiale Tuya Adapter Version","pl":"Initiale Tuya Adapter Version"}},"title":"Tuya","titleLang":{"en":"Tuya","de":"Tuya","ru":"Tuya","pt":"Tuya","nl":"Tuya","fr":"Tuya","it":"Tuya","es":"Tuya","pl":"Tuya"},"desc":{"en":"Tuya Adapter","de":"Tuya Adapter","ru":"Tuya адаптер","pt":"Adaptador Tuya","nl":"Tuya-adapter","fr":"Adaptateur Tuya","it":"Adattatore Tuya","es":"Adaptador Tuya","pl":"Adapter Tuya"},"license":"MIT","authors":["Apollon77 <iobroker@fischer-ka.de>"],"platform":"Javascript/Node.js","mode":"daemon","icon":"tuya.png","messagebox":true,"subscribe":"messagebox","materialize":true,"enabled":true,"extIcon":"https://raw.githubusercontent.com/Apollon77/ioBroker.tuya/master/admin/tuya.png","keywords":["Tuya","switch","smarthome","iobroker"],"readme":"https://github.com/Apollon77/ioBroker.tuya/blob/master/README.md","loglevel":"info","type":"iot-systems","restartAdapters":[],"installedVersion":"0.1.0","host":"iobroker"},"native":{"pollingInterval":"60","proxyPort":"8890","proxyWebPort":"8891"},"from":"system.adapter.admin.0","ts":1540815735870,"acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:22:17.005 - info: tuya.0 starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.tuya, node: v8.12.0 2018-10-29 13:22:17.136 - info: tuya.0 012002512c3ae844f84b Init with IP=192.168.178.180, Key=fa40afabd793ba3b 2018-10-29 13:22:17.143 - info: tuya.0 0020097260019455f173 Init with IP=192.168.178.114, Key=292937b7be903f69 2018-10-29 13:22:17.144 - info: tuya.0 Existing devices initialized 2018-10-29 13:22:17.149 - info: tuya.0 Discover for local Tuya devices on port 6666

leider kommt jetzt dauernd: 2018-10-29 13:19:17.143 - info: tuya.0 012002512c3ae844f84b: Error from device Error: Error from socket

Das müllt mir das logfile ziemlich voll, hab den Adapter deaktiviert.

Die Datenpunkte sehen so aus, auffällig ist beim Diffusor die RGB Farbwerte in chinesisch :-)

bildschirmfoto vom 2018-10-29 13-33-27

Ilovegym66 commented 5 years ago

ah, die Fehlermeldung hat nach stoppen und neustarten des Adapters aufgehört, jetzt läuft er ohne zu meckern.

Hab auch gerade gesehen, dass ich den falschen Teil aus dem Log kopiert hab, hier der von der Installation: ( darin auch die beiden Shema ) 2018-10-29 13:07:55.454 - info: iobroker url "https://github.com/Apollon77/ioBroker.tuya.git" 2018-10-29 13:07:56.082 - info: iobroker install https://github.com/Apollon77/ioBroker.tuya/tarball/master 2018-10-29 13:07:56.322 - info: iobroker npm install https://github.com/Apollon77/ioBroker.tuya/tarball/master --production --save --prefix "/opt/iobroker" (System call) 2018-10-29 13:09:56.471 - info: iobroker add tuya --host iobroker 2018-10-29 13:09:56.755 - info: iobroker host.iobroker install adapter tuya 2018-10-29 13:09:56.964 - info: iobroker npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.tuya" 2018-10-29 13:10:33.736 - info: iobroker got /opt/iobroker/node_modules/iobroker.tuya/admin 2018-10-29 13:10:33.762 - info: iobroker upload [2] tuya.admin /opt/iobroker/node_modules/iobroker.tuya/admin/words.js words.js application/javascript 2018-10-29 13:10:33.830 - info: iobroker upload [1] tuya.admin /opt/iobroker/node_modules/iobroker.tuya/admin/tuya.png tuya.png image/png 2018-10-29 13:10:33.886 - info: iobroker upload [0] tuya.admin /opt/iobroker/node_modules/iobroker.tuya/admin/index_m.html index_m.html text/html 2018-10-29 13:10:33.950 - info: paw.0 objectChange system.adapter.tuya.upload {"_id":"system.adapter.tuya.upload","type":"state","common":{"name":"tuya.upload","type":"number","role":"indicator.state","unit":"%","def":0,"desc":"Upload process indicator"},"from":"system.host.iobroker.cli","ts":1540815033944,"native":{},"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:33.968 - info: paw.0 objectChange system.adapter.tuya {"_id":"system.adapter.tuya","type":"adapter","common":{"name":"tuya","version":"0.1.0","news":{"0.1.0":{"en":"Initiale Tuya Adapter Version","de":"Initiale Tuya Adapter Version","ru":"Версия Initiale Tuya Adapter","pt":"Versão do Adaptador Initiale Tuya","nl":"Initiale Tuya-adapterversie","fr":"Initiale Tuya Adapter Version","it":"Versione dell'adattatore Initiale Tuya","es":"Initiale Tuya Adapter Version","pl":"Initiale Tuya Adapter Version"}},"title":"Tuya","titleLang":{"en":"Tuya","de":"Tuya","ru":"Tuya","pt":"Tuya","nl":"Tuya","fr":"Tuya","it":"Tuya","es":"Tuya","pl":"Tuya"},"desc":{"en":"Tuya Adapter","de":"Tuya Adapter","ru":"Tuya адаптер","pt":"Adaptador Tuya","nl":"Tuya-adapter","fr":"Adaptateur Tuya","it":"Adattatore Tuya","es":"Adaptador Tuya","pl":"Adapter Tuya"},"license":"MIT","authors":["Apollon77 <iobroker@fischer-ka.de>"],"platform":"Javascript/Node.js","mode":"daemon","icon":"tuya.png","messagebox":true,"subscribe":"messagebox","materialize":true,"enabled":true,"extIcon":"https://raw.githubusercontent.com/Apollon77/ioBroker.tuya/master/admin/tuya.png","keywords":["Tuya","switch","smarthome","iobroker"],"readme":"https://github.com/Apollon77/ioBroker.tuya/blob/master/README.md","loglevel":"info","type":"iot-systems","restartAdapters":[],"installedVersion":"0.1.0"},"native":{"pollingInterval":60,"proxyPort":8888,"proxyWebPort":8889},"from":"system.host.iobroker.cli","ts":1540815033957,"acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:33.971 - info: iobroker host.iobroker object system.adapter.tuya created 2018-10-29 13:10:33.989 - info: iobroker host.iobroker create instance tuya 2018-10-29 13:10:33.991 - info: iobroker host.iobroker object tuya.0.info.connection created 2018-10-29 13:10:34.019 - info: iobroker host.iobroker object tuya.0.info created 2018-10-29 13:10:34.048 - info: paw.0 objectChange system.adapter.tuya.0.outputCount {"_id":"system.adapter.tuya.0.outputCount","type":"state","common":{"name":"iobroker outputs level","desc":"State's outputs in 15 seconds","type":"number","read":true,"write":false,"role":"state","unit":"events/15 seconds"},"native":{},"from":"system.host.iobroker.cli","ts":1540815034045,"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:34.049 - info: iobroker host.iobroker object system.adapter.tuya.0.outputCount created 2018-10-29 13:10:34.078 - info: paw.0 objectChange system.adapter.tuya.0.inputCount {"_id":"system.adapter.tuya.0.inputCount","type":"state","common":{"name":"iobroker - inputs level","desc":"State's inputs in 15 seconds","type":"number","read":true,"write":false,"role":"state","unit":"events/15 seconds"},"native":{},"from":"system.host.iobroker.cli","ts":1540815034075,"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:34.078 - info: iobroker host.iobroker object system.adapter.tuya.0.inputCount created 2018-10-29 13:10:34.107 - info: paw.0 objectChange system.adapter.tuya.0.uptime {"_id":"system.adapter.tuya.0.uptime","type":"state","common":{"name":"tuya.0.uptime","type":"number","read":true,"write":false,"role":"indicator.state","unit":"seconds"},"native":{},"from":"system.host.iobroker.cli","ts":1540815034104,"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:34.108 - info: iobroker host.iobroker object system.adapter.tuya.0.uptime created 2018-10-29 13:10:34.137 - info: iobroker host.iobroker object system.adapter.tuya.0.memRss created 2018-10-29 13:10:34.137 - info: paw.0 objectChange system.adapter.tuya.0.memRss {"_id":"system.adapter.tuya.0.memRss","type":"state","common":{"name":"tuya.0.memRss","desc":"Resident set size","read":true,"write":false,"type":"number","role":"indicator.state","unit":"MB"},"native":{},"from":"system.host.iobroker.cli","ts":1540815034133,"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:34.172 - info: paw.0 objectChange system.adapter.tuya.0.memHeapTotal {"_id":"system.adapter.tuya.0.memHeapTotal","type":"state","common":{"name":"tuya.0.memHeapTotal","read":true,"write":false,"type":"number","role":"indicator.state","unit":"MB"},"native":{},"from":"system.host.iobroker.cli","ts":1540815034162,"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:34.174 - info: iobroker host.iobroker object system.adapter.tuya.0.memHeapTotal created 2018-10-29 13:10:34.203 - info: paw.0 objectChange system.adapter.tuya.0.memHeapUsed {"_id":"system.adapter.tuya.0.memHeapUsed","type":"state","common":{"name":"tuya.0.memHeapUsed","type":"number","read":true,"write":false,"role":"indicator.state","unit":"MB"},"native":{},"from":"system.host.iobroker.cli","ts":1540815034199,"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:34.204 - info: iobroker host.iobroker object system.adapter.tuya.0.memHeapUsed created 2018-10-29 13:10:34.233 - info: paw.0 objectChange system.adapter.tuya.0.connected {"_id":"system.adapter.tuya.0.connected","type":"state","common":{"name":"tuya.0.connected","type":"boolean","read":true,"write":false,"role":"indicator.state"},"native":{},"from":"system.host.iobroker.cli","ts":1540815034229,"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:34.233 - info: iobroker host.iobroker object system.adapter.tuya.0.connected created 2018-10-29 13:10:34.262 - info: paw.0 objectChange system.adapter.tuya.0.alive {"_id":"system.adapter.tuya.0.alive","type":"state","common":{"name":"tuya.0.alive","type":"boolean","read":true,"write":true,"role":"indicator.state"},"native":{},"from":"system.host.iobroker.cli","ts":1540815034258,"acl":{"object":1636,"state":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:34.262 - info: iobroker host.iobroker object system.adapter.tuya.0.alive created 2018-10-29 13:10:34.291 - info: host.iobroker object change system.adapter.tuya.0 2018-10-29 13:10:34.299 - info: host.iobroker instance system.adapter.tuya.0 started with pid 5440 2018-10-29 13:10:34.307 - info: iobroker host.iobroker object system.adapter.tuya.0 created 2018-10-29 13:10:34.313 - info: paw.0 objectChange system.adapter.tuya.0 {"_id":"system.adapter.tuya.0","type":"instance","common":{"name":"tuya","version":"0.1.0","news":{"0.1.0":{"en":"Initiale Tuya Adapter Version","de":"Initiale Tuya Adapter Version","ru":"Версия Initiale Tuya Adapter","pt":"Versão do Adaptador Initiale Tuya","nl":"Initiale Tuya-adapterversie","fr":"Initiale Tuya Adapter Version","it":"Versione dell'adattatore Initiale Tuya","es":"Initiale Tuya Adapter Version","pl":"Initiale Tuya Adapter Version"}},"title":"Tuya","titleLang":{"en":"Tuya","de":"Tuya","ru":"Tuya","pt":"Tuya","nl":"Tuya","fr":"Tuya","it":"Tuya","es":"Tuya","pl":"Tuya"},"desc":{"en":"Tuya Adapter","de":"Tuya Adapter","ru":"Tuya адаптер","pt":"Adaptador Tuya","nl":"Tuya-adapter","fr":"Adaptateur Tuya","it":"Adattatore Tuya","es":"Adaptador Tuya","pl":"Adapter Tuya"},"license":"MIT","authors":["Apollon77 <iobroker@fischer-ka.de>"],"platform":"Javascript/Node.js","mode":"daemon","icon":"tuya.png","messagebox":true,"subscribe":"messagebox","materialize":true,"enabled":true,"extIcon":"https://raw.githubusercontent.com/Apollon77/ioBroker.tuya/master/admin/tuya.png","keywords":["Tuya","switch","smarthome","iobroker"],"readme":"https://github.com/Apollon77/ioBroker.tuya/blob/master/README.md","loglevel":"info","type":"iot-systems","restartAdapters":[],"installedVersion":"0.1.0","host":"iobroker"},"native":{"pollingInterval":60,"proxyPort":8888,"proxyWebPort":8889},"from":"system.host.iobroker.cli","ts":1540815034288,"acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:10:35.710 - info: tuya.0 starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.tuya, node: v8.12.0 2018-10-29 13:10:35.753 - info: tuya.0 Existing devices initialized 2018-10-29 13:10:35.759 - info: tuya.0 Discover for local Tuya devices on port 6666 2018-10-29 13:10:36.746 - info: tuya.0 012002512c3ae844f84b Init with IP=192.168.178.180, Key=undefined 2018-10-29 13:10:36.749 - info: tuya.0 012002512c3ae844f84b: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App! 2018-10-29 13:10:36.847 - info: tuya.0 012002512c3ae844f84b: No schema exists, init basic states ... 2018-10-29 13:10:37.486 - info: tuya.0 0020097260019455f173 Init with IP=192.168.178.114, Key=undefined 2018-10-29 13:10:37.487 - info: tuya.0 0020097260019455f173: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App! 2018-10-29 13:10:37.549 - info: tuya.0 0020097260019455f173: No schema exists, init basic states ... 2018-10-29 13:12:10.997 - info: tuya.0 The proxy certificate is generated at/root/.anyproxy/certificates 2018-10-29 13:12:12.005 - info: tuya.0 Anyproxy ready to receive requests 2018-10-29 13:14:20.948 - info: host.iobroker object change system.adapter.tuya.0 2018-10-29 13:14:20.948 - info: host.iobroker stopInstance system.adapter.tuya.0 2018-10-29 13:14:20.948 - info: host.iobroker stopInstance system.adapter.tuya.0 killing pid 5440 2018-10-29 13:14:20.955 - info: paw.0 objectChange system.adapter.tuya.0 {"_id":"system.adapter.tuya.0","type":"instance","common":{"name":"tuya","version":"0.1.0","news":{"0.1.0":{"en":"Initiale Tuya Adapter Version","de":"Initiale Tuya Adapter Version","ru":"Версия Initiale Tuya Adapter","pt":"Versão do Adaptador Initiale Tuya","nl":"Initiale Tuya-adapterversie","fr":"Initiale Tuya Adapter Version","it":"Versione dell'adattatore Initiale Tuya","es":"Initiale Tuya Adapter Version","pl":"Initiale Tuya Adapter Version"}},"title":"Tuya","titleLang":{"en":"Tuya","de":"Tuya","ru":"Tuya","pt":"Tuya","nl":"Tuya","fr":"Tuya","it":"Tuya","es":"Tuya","pl":"Tuya"},"desc":{"en":"Tuya Adapter","de":"Tuya Adapter","ru":"Tuya адаптер","pt":"Adaptador Tuya","nl":"Tuya-adapter","fr":"Adaptateur Tuya","it":"Adattatore Tuya","es":"Adaptador Tuya","pl":"Adapter Tuya"},"license":"MIT","authors":["Apollon77 <iobroker@fischer-ka.de>"],"platform":"Javascript/Node.js","mode":"daemon","icon":"tuya.png","messagebox":true,"subscribe":"messagebox","materialize":true,"enabled":true,"extIcon":"https://raw.githubusercontent.com/Apollon77/ioBroker.tuya/master/admin/tuya.png","keywords":["Tuya","switch","smarthome","iobroker"],"readme":"https://github.com/Apollon77/ioBroker.tuya/blob/master/README.md","loglevel":"info","type":"iot-systems","restartAdapters":[],"installedVersion":"0.1.0","host":"iobroker"},"native":{"pollingInterval":"60","proxyPort":"8890","proxyWebPort":"8891"},"from":"system.host.iobroker.cli","ts":1540815034288,"acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}} 2018-10-29 13:14:21.466 - info: host.iobroker instance system.adapter.tuya.0 terminated with code 0 (OK) 2018-10-29 13:14:23.458 - info: host.iobroker instance system.adapter.tuya.0 started with pid 5493 2018-10-29 13:14:24.625 - info: tuya.0 starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.tuya, node: v8.12.0 2018-10-29 13:14:24.695 - info: tuya.0 012002512c3ae844f84b Init with IP=192.168.178.180, Key=undefined 2018-10-29 13:14:24.699 - info: tuya.0 012002512c3ae844f84b: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App! 2018-10-29 13:14:24.700 - info: tuya.0 0020097260019455f173 Init with IP=192.168.178.114, Key=undefined 2018-10-29 13:14:24.701 - info: tuya.0 0020097260019455f173: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App! 2018-10-29 13:14:24.701 - info: tuya.0 Existing devices initialized 2018-10-29 13:14:24.705 - info: tuya.0 Discover for local Tuya devices on port 6666 2018-10-29 13:14:24.717 - info: tuya.0 0020097260019455f173: No schema exists, init basic states ... 2018-10-29 13:14:24.720 - info: tuya.0 012002512c3ae844f84b: No schema exists, init basic states ... 2018-10-29 13:14:37.798 - info: tuya.0 Anyproxy ready to receive requests 2018-10-29 13:16:56.146 - info: tuya.0 new Shema added for product type 9p017mRuEwVchApg. Please send next line from logfile on disk to developer! 2018-10-29 13:16:56.146 - info: tuya.0 {"schema":"[{\"mode\":\"rw\",\"code\":\"led_switch\",\"name\":\"开关\",\"property\":{\"type\":\"bool\"},\"iconname\":\"icon-dp_power2\",\"id\":1,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"work_mode\",\"name\":\"工作模式\",\"property\":{\"range\":[\"white\",\"colour\",\"scene\",\"scene_1\",\"scene_2\",\"scene_3\",\"scene_4\"],\"type\":\"enum\"},\"iconname\":\"icon-dp_mode\",\"id\":2,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"bright_value\",\"name\":\"亮度值\",\"property\":{\"unit\":\"\",\"min\":25,\"max\":255,\"scale\":0,\"step\":1,\"type\":\"value\"},\"iconname\":\"icon-dp_sun\",\"id\":3,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"temp_value\",\"name\":\"冷暖值\",\"property\":{\"unit\":\"\",\"min\":0,\"max\":255,\"scale\":0,\"step\":1,\"type\":\"value\"},\"iconname\":\"icon-dp_light\",\"id\":4,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"colour_data\",\"name\":\"彩光模式数\",\"property\":{\"type\":\"string\",\"maxlen\":14},\"id\":5,\"type\":\"obj\",\"desc\":\"rgbhsv\"},{\"mode\":\"rw\",\"code\":\"scene_data\",\"name\":\"情景模式数\",\"property\":{\"type\":\"string\",\"maxlen\":14},\"id\":6,\"type\":\"obj\",\"desc\":\"rgbhsv\"},{\"mode\":\"rw\",\"code\":\"flash_scene_1\",\"name\":\"柔光情景\",\"property\":{\"type\":\"string\",\"maxlen\":14},\"id\":7,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"flash_scene_2\",\"name\":\"缤纷情景\",\"property\":{\"type\":\"string\",\"maxlen\":44},\"id\":8,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"flash_scene_3\",\"name\":\"炫彩情景\",\"property\":{\"type\":\"string\",\"maxlen\":14},\"id\":9,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"flash_scene_4\",\"name\":\"斑斓情景\",\"property\":{\"type\":\"string\",\"maxlen\":44},\"id\":10,\"type\":\"obj\",\"desc\":\"\"}]","schemaExt":"[{\"id\":3,\"inputType\":\"percent\"},{\"id\":4,\"inputType\":\"\"}]"} 2018-10-29 13:16:56.147 - info: tuya.0 new Shema added for product type ovvg6eKhVt6sb92l. Please send next line from logfile on disk to developer! 2018-10-29 13:16:56.147 - info: tuya.0 {"schema":"[{\"mode\":\"rw\",\"code\":\"Power\",\"name\":\"开关\",\"property\":{\"type\":\"bool\"},\"iconname\":\"icon-dp_power\",\"id\":1,\"type\":\"obj\",\"desc\":\"\"},{\"mode\":\"rw\",\"code\":\"atomizing\",\"name\":\"喷雾功能\",\"property\":{\"range\":[\"1\",\"2\",\"3\"],\"type\":\"enum\"},\"id\":101,\"type\":\"obj\",\"desc\":\"1:连续喷雾模式;2:间歇喷雾模式;3:关闭喷雾模式\"},{\"mode\":\"rw\",\"code\":\"moodlighting\",\"name\":\"氛围灯\",\"property\":{\"range\":[\"1\",\"2\",\"3\"],\"type\":\"enum\"},\"id\":102,\"type\":\"obj\",\"desc\":\"1:循环模式\\n2:选色模式\\n3:关闭\"},{\"mode\":\"rw\",\"code\":\"light2\",\"name\":\"彩灯\",\"property\":{\"unit\":\"\",\"min\":0,\"max\":255,\"scale\":0,\"step\":1,\"type\":\"value\"},\"id\":103,\"type\":\"obj\",\"desc\":\"\"}]","schemaExt":"[{\"id\":103,\"inputType\":\"\"}]"} 2018-10-29 13:16:56.288 - info: tuya.0 0020097260019455f173 Init with IP=192.168.178.114, Key=292937b7be903f69 2018-10-29 13:16:56.290 - info: tuya.0 012002512c3ae844f84b Init with IP=192.168.178.180, Key=fa40afabd793ba3b 2018-10-29 13:16:56.294 - info: tuya.0 0020097260019455f173 Init with IP=192.168.178.114, Key=292937b7be903f69 2018-10-29 13:16:56.301 - info: tuya.0 012002512c3ae844f84b Init with IP=192.168.178.180, Key=fa40afabd793ba3b 2018-10-29 13:16:56.309 - info: tuya.0 0020097260019455f173: Error from device Error: Error from socket 2018-10-29 13:16:56.319 - info: tuya.0 012002512c3ae844f84b: Error from device Error: Error from socket 2018-10-29 13:16:57.328 - info: tuya.0 0020097260019455f173: Error from device Error: Error from socket 2018-10-29 13:16:57.337 - info: tuya.0 012002512c3ae844f84b: Error from device Error: Error from socket 2018-10-29 13:16:58.337 - info: tuya.0 0020097260019455f173: Error from device Error: Error from socket 2018-10-29 13:16:58.349 - info: tuya.0 012002512c3ae844f84b: Error from device Error: Error from socket

Apollon77 commented 5 years ago

Cool, danke! Der Fehler kommt an sich wenn das Device nicht erreichbar ist ... ODER wenn die App offen ist!! Es kann wohl nur ein Gerät lokal mit dem Ding reden. Also entweder der Adapter ODER die App. kann das sein? Erweitere ich noch im Forum und in der README!

Heute Abend gibts update mit dem Schema und weniger Versuchen im Fehlerfall.

Ilovegym66 commented 5 years ago

..ich glaube, da war die App noch offen und lief im Hintergrund.. vielleicht n hinweis auf sowas im Log? Denke, das ist einleuchtend, dass wegen dem Key immer nur einer commands senden kann.

Apollon77 commented 5 years ago

Baue auch was in die Fehlermeldung im Log ein. Ansonsten danke für die Schemata. ggf wäre es cool mit neuer Version nochmal alles zu löschen und neu zu syncen. Ich schaue mal ob ich die "Wertelisten" (zum ersten mal gesehn) abgebildet bekomme :-)

Ilovegym66 commented 5 years ago

mach ich doch, war kein Problem mit dem proxy. Es hat nur ziemlich lange gedauert, bis der qr-code kam. Bin ich auch mal gespannt, wie du aus echten chinesisch fachchinesisch machst.. :-)

Apollon77 commented 5 years ago

So, auf Github gibts update 0.1.1 Fehlerhandling besser, deine Schemas drin und die States die "Auswahllisten" sind auch als solche umgesetzt (z.B. der modus bei dem einen gerät oder die 1/2/3 States bei dem anderen. gegen Chinesisch kann ich nichts tun, das musst Du selbst rausfinden, aber die Auswahloptionen sind damit sinnvoller denke ich.

Also bitte checke mal ... am besten Adapter beenden, die Device-Objekte mit den States drunter löschen (oder instanz weg und neu ...), Dann Adapter neu starten ... dann wäre neuer screenshot cool und versuch mal Modus oder die anderen einstellungen zu ändern - da müssten dann ein Dropdown im Admin kommen ...

Bin gespannt

Ilovegym66 commented 5 years ago

so, habe die Instanz, und den Adapter gelöscht, dann wieder von Git installiert und eine Instanz erzeugt, er hat sogar noch die beiden Geräte gespeichert gehabt ( da hab ich mich zuerst gefreut, weil die Sache mit dem Proxy wegfällt.. aber.. ) Hier ein Screenshot mit den erzeugten Objekten: image

Jetzt kommt die schlechte Nachricht.. egal was ich verändere, es passiert nichts mehr. Habe jetzt ins Debuglog geschaut.. und da steht auch ne Erklärung :-) 018-10-29 19:43:49.445 - ^[[32minfo^[[39m: tuya.0 starting. Version 0.1.1 in /opt/iobroker/node_modules/iobroker.tuya, node: v8.12.0 2018-10-29 19:43:49.455 - ^[[32minfo^[[39m: tuya.0 Existing devices initialized 2018-10-29 19:43:49.460 - ^[[32minfo^[[39m: tuya.0 Discover for local Tuya devices on port 6666 2018-10-29 19:43:49.553 - ^[[33mwarn^[[39m: tuya.0 0020097260019455f173.2: Value from device not defined in Schema: undefined 2018-10-29 19:43:49.610 - ^[[32minfo^[[39m: tuya.0 0020097260019455f173 Init with IP=192.168.178.114, Key=undefined 2018-10-29 19:43:49.613 - ^[[32minfo^[[39m: tuya.0 0020097260019455f173: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App! 2018-10-29 19:43:51.579 - ^[[33mwarn^[[39m: tuya.0 012002512c3ae844f84b.101: Value from device not defined in Schema: undefined 2018-10-29 19:43:51.580 - ^[[33mwarn^[[39m: tuya.0 012002512c3ae844f84b.102: Value from device not defined in Schema: undefined 2018-10-29 19:43:51.621 - ^[[32minfo^[[39m: tuya.0 012002512c3ae844f84b Init with IP=192.168.178.180, Key=undefined 2018-10-29 19:43:51.621 - ^[[32minfo^[[39m: tuya.0 012002512c3ae844f84b: No local encryption key available, get data using polling, controlling of device NOT possibe. Please sync with App! habe also den Proxy angeworfen, neues Zertifikat eingelesen, neues sync.. jetzt sehen die Objekte so aus, Namen stehen drin, die chinesen sind weg, und dafür die dropdowns.. aber.. er zieht sich die Daten von den Objekten, aber senden kann er nicht .. da stirbt die Instanz.. log kommt.. image

Nachdem ich einen Wert geändert hatte, ist die Instanz gestorben und hat sich neu gestartet, und siehe da, jetzt funktioniert es..

Logfile here: 2018-10-29 19:54:10.522 - ^[[31merror^[[39m: tuya.0 uncaught exception: Cannot read property 'set' of null 2018-10-29 19:54:10.536 - ^[[31merror^[[39m: Caught by controller[1]: TypeError: Cannot read property 'set' of null 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at Object.onChange [as 0020097260019455f173.1] (/opt/iobroker/node_modules/iobroker.tuya/main.js:121:47) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at Object.handleStateChange (/opt/iobroker/node_modules/iobroker.tuya/lib/objectHelper.js:259:31) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.tuya/main.js:61:18) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at emitTwo (events.js:126:13) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at Adapter.emit (events.js:214:7) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:3429:38) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at runCallback (timers.js:810:20) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at tryOnImmediate (timers.js:768:5) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[1]: at processImmediate [as _immediateCallback] (timers.js:745:5) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[2]: /opt/iobroker/node_modules/iobroker.tuya/node_modules/brotli/build/encode.js:3 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[2]: 1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program");b.arguments=process.argv.slice(2);"undefined"!==typeof module&&(module.exports=b);process.$ 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[2]: $ 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[2]: TypeError: Cannot read property 'set' of null 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[2]: at Object.onChange [as 0020097260019455f173.1] (/opt/iobroker/node_modules/iobroker.tuya/main.js:121:47) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[2]: at Object.handleStateChange (/opt/iobroker/node_modules/iobroker.tuya/lib/objectHelper.js:259:31) 2018-10-29 19:54:10.537 - ^[[31merror^[[39m: Caught by controller[2]: at Adapter.<anonymous> (/opt/iobroker/node_modules/iobroker.tuya/main.js:61:18) 2018-10-29 19:54:10.538 - ^[[31merror^[[39m: Caught by controller[2]: at emitTwo (events.js:126:13) 2018-10-29 19:54:10.538 - ^[[31merror^[[39m: Caught by controller[2]: at Adapter.emit (events.js:214:7) 2018-10-29 19:54:10.538 - ^[[31merror^[[39m: Caught by controller[2]: at Immediate._onImmediate (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:3429:38) 2018-10-29 19:54:10.538 - ^[[31merror^[[39m: Caught by controller[2]: at runCallback (timers.js:810:20) 2018-10-29 19:54:10.538 - ^[[31merror^[[39m: Caught by controller[2]: at tryOnImmediate (timers.js:768:5) 2018-10-29 19:54:10.538 - ^[[31merror^[[39m: Caught by controller[2]: at processImmediate [as _immediateCallback] (timers.js:745:5) 2018-10-29 19:54:10.538 - ^[[31merror^[[39m: host.iobroker instance system.adapter.tuya.0 terminated with code 7 (Adapter already running) 2018-10-29 19:54:10.538 - ^[[32minfo^[[39m: host.iobroker Restart adapter system.adapter.tuya.0 because enabled

Ilovegym66 commented 5 years ago

also kurzum, es funktioniert, und fehler sind im log keine mehr. Top!

Apollon77 commented 5 years ago

Auch steuern geht jetzt plötzlich?

Apollon77 commented 5 years ago

Ok, also der Fehler kam weil das Gerät nicht verbunden war als Du gesteuert hast. Nochmal vom Github und es ist gefixt.