Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot control device and instance is yellow #221

Closed
TeaJAge opened this issue Sep 30, 2020 · 51 comments
Closed

Cannot control device and instance is yellow #221

TeaJAge opened this issue Sep 30, 2020 · 51 comments
Labels
enhancement New feature or request

Comments

@TeaJAge
Copy link

TeaJAge commented Sep 30, 2020

Describe the bug
When I add my Device, I cannot controle it and the IP value is empty.
https://www.amazon.de/gp/product/B08962GMNT/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

Status: 1 Geräte im Netzwerk gefunden, 0 Geräte verbunden, 1 mit bekanntem Schema, 1 initialisiert für Echtzeit-Updates und zur Steuerung

Can you help me? Or is this Device ot supported?

Expected behavior
Adding Device with availability to control it.

Screenshots
image

Versions:
Version 3.3.14 in /opt/iobroker/node_modules/iobroker.tuya, node: v12.18.2, js-controller: 3.1.6

Operatingsystem:

Platform
linux
Betriebssystem
linux
Architektur
x64
CPUs
4
Geschwindigkeit
2096 MHz
Modell
AMD Opteron 22xx (Gen 2 Class Opteron)
RAM
6.27 GB
System Betriebszeit
1 T. 00:40:36
Node.js
v12.18.2 (Es gibt eine neuere Version: v12.18.4)
NPM
6.14.2
Anzahl der Adapter
369
Festplatte Größe
245.07 GB
Festplatte frei
216.61 GB
Betriebszeit
1 T. 00:39:07
Aktive Instanzen
33
Hostname
UbuntuHomeAutomation

Logfile
tuya.0 2020-09-30 22:27:49.765 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:27:49.765 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":265,"ack":false,"time":1601497669763},"_id":69005910} tuya.0 2020-09-30 22:27:06.780 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:27:06.779 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":264,"ack":false,"time":1601497626772},"_id":69005909} tuya.0 2020-09-30 22:26:49.764 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:26:49.764 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":263,"ack":false,"time":1601497609762},"_id":69005908} tuya.0 2020-09-30 22:26:05.899 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:26:05.899 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":262,"ack":false,"time":1601497565897},"_id":69005907} tuya.0 2020-09-30 22:25:48.837 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:25:48.836 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":261,"ack":false,"time":1601497548834},"_id":69005906} tuya.0 2020-09-30 22:25:05.816 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:25:05.816 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":260,"ack":false,"time":1601497505765},"_id":69005905} tuya.0 2020-09-30 22:24:48.762 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:24:48.761 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":259,"ack":false,"time":1601497488760},"_id":69005904} tuya.0 2020-09-30 22:24:04.785 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:24:04.783 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":258,"ack":false,"time":1601497444766},"_id":69005903} tuya.0 2020-09-30 22:23:47.980 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:23:47.979 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":257,"ack":false,"time":1601497427977},"_id":69005902} tuya.0 2020-09-30 22:23:04.763 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:23:04.763 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":256,"ack":false,"time":1601497384761},"_id":69005901} tuya.0 2020-09-30 22:22:47.760 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:22:47.760 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":255,"ack":false,"time":1601497367758},"_id":69005900} tuya.0 2020-09-30 22:22:04.760 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:22:04.760 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":254,"ack":false,"time":1601497324758},"_id":69005899} tuya.0 2020-09-30 22:21:46.808 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:21:46.807 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":253,"ack":false,"time":1601497306806},"_id":69005898} tuya.0 2020-09-30 22:21:04.759 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:21:04.759 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":252,"ack":false,"time":1601497264757},"_id":69005897} tuya.0 2020-09-30 22:20:46.759 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:20:46.758 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":251,"ack":false,"time":1601497246756},"_id":69005896} tuya.0 2020-09-30 22:20:03.764 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:20:03.763 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":250,"ack":false,"time":1601497203761},"_id":69005895} tuya.0 2020-09-30 22:19:45.780 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:19:45.780 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":249,"ack":false,"time":1601497185778},"_id":69005894} tuya.0 2020-09-30 22:19:03.026 debug (18572) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:19:03.025 debug (18572) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":248,"ack":false,"time":1601497143023},"_id":69005893} tuya.0 2020-09-30 22:18:56.708 debug (18572) Discovered encrypted device and store for later usage: 192.168.10.171:49153 - U���Зfgo3i�����2��*�+�¸ @��f�N��=�2��X�G�X�#R�=�#k7ŝ*'�U�;m���� Y�Y��&Օ������7�@���m��Eo?~(�ԓ+�5a' tuya.0 2020-09-30 22:18:53.213 info (18572) Listen for encrypted local Tuya devices on port 6667 tuya.0 2020-09-30 22:18:53.212 info (18572) Listen for local Tuya devices on port 6666 tuya.0 2020-09-30 22:18:53.209 info (18572) Existing devices initialized tuya.0 2020-09-30 22:18:53.209 info (18572) bf81dc320ccb0f71f9kqny: None of the discovered devices matches :-( tuya.0 2020-09-30 22:18:53.207 debug (18572) bf81dc320ccb0f71f9kqny: Try to initialize encrypted device with received UDP messages (#IPs: 0): version=undefined, key=b57c0bb19314405f tuya.0 2020-09-30 22:18:52.819 debug (18572) connected set to false tuya.0 2020-09-30 22:18:52.801 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 32 tuya.0 2020-09-30 22:18:52.801 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 31 tuya.0 2020-09-30 22:18:52.800 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 28 tuya.0 2020-09-30 22:18:52.800 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 27 tuya.0 2020-09-30 22:18:52.799 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 26 tuya.0 2020-09-30 22:18:52.798 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 25 tuya.0 2020-09-30 22:18:52.798 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 24 tuya.0 2020-09-30 22:18:52.797 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 23 tuya.0 2020-09-30 22:18:52.797 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 22 tuya.0 2020-09-30 22:18:52.795 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 21 tuya.0 2020-09-30 22:18:52.795 debug (18572) bf81dc320ccb0f71f9kqny Register onChange for 20 tuya.0 2020-09-30 22:18:52.793 debug (18572) bf81dc320ccb0f71f9kqny: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_led","id":20,"role":"switch"},{"type":"number","states":{"0":"white","1":"colour","2":"scene","3":"mu tuya.0 2020-09-30 22:18:52.791 debug (18572) bf81dc320ccb0f71f9kqny: Create device objects if not exist tuya.0 2020-09-30 22:18:52.788 debug (18572) init 1 known devices tuya.0 2020-09-30 22:18:52.744 info (18572) starting. Version 3.3.14 in /opt/iobroker/node_modules/iobroker.tuya, node: v12.18.2, js-controller: 3.1.6 tuya.0 2020-09-30 22:18:52.609 debug (18572) Plugin sentry Initialize Plugin (enabled=true) tuya.0 2020-09-30 22:18:46.901 info (21134) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason tuya.0 2020-09-30 22:18:46.901 debug (21134) Plugin sentry destroyed tuya.0 2020-09-30 22:18:46.899 info (21134) terminating tuya.0 2020-09-30 22:18:45.757 debug (21134) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:18:45.756 debug (21134) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":246,"ack":false,"time":1601497125754},"_id":69005891} tuya.0 2020-09-30 22:18:43.889 info (21134) Got terminate signal TERMINATE_YOURSELF tuya.0 2020-09-30 22:18:39.407 debug (21134) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:18:39.406 debug (21134) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":245,"ack":false,"time":1601497119404},"_id":69005890} tuya.0 2020-09-30 22:17:45.330 debug (21134) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:17:45.330 debug (21134) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":244,"ack":false,"time":1601497065328},"_id":69005889} tuya.0 2020-09-30 22:17:39.799 debug (21134) sendTo "stopProxy" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:17:39.796 debug (21134) Message: {"command":"stopProxy","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":242,"ack":false,"time":1601497059794},"_id":69005887} tuya.0 2020-09-30 22:17:25.450 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.32 {"val":"AAA=","ack":true,"ts":1601497045444,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223835} tuya.0 2020-09-30 22:17:25.448 info (21134) bf81dc320ccb0f71f9kqny: None of the discovered devices matches :-( tuya.0 2020-09-30 22:17:25.448 debug (21134) bf81dc320ccb0f71f9kqny: No relevant Data for decrypt try: {"payload":"Зfgo3i�\u0010���2��*�+\u0002¸ @��f�N��=�2��X�G�X�#R�=�#k7ŝ*'�U�;m���\u001b Y�Y�\u001c&Օ������7�@�\u0005�m��Eo?~(�ԓ+�5a'\u tuya.0 2020-09-30 22:17:25.447 debug (21134) bf81dc320ccb0f71f9kqny: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=b57c0bb19314405f tuya.0 2020-09-30 22:17:25.364 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.31 {"val":"AAA=","ack":true,"ts":1601497045352,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223798} tuya.0 2020-09-30 22:17:25.361 info (21134) bf81dc320ccb0f71f9kqny: None of the discovered devices matches :-( tuya.0 2020-09-30 22:17:25.361 debug (21134) bf81dc320ccb0f71f9kqny: No relevant Data for decrypt try: {"payload":"Зfgo3i�\u0010���2��*�+\u0002¸ @��f�N��=�2��X�G�X�#R�=�#k7ŝ*'�U�;m���\u001b Y�Y�\u001c&Օ������7�@�\u0005�m��Eo?~(�ԓ+�5a'\u tuya.0 2020-09-30 22:17:25.357 debug (21134) bf81dc320ccb0f71f9kqny: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=b57c0bb19314405f tuya.0 2020-09-30 22:17:25.354 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.28 {"val":"","ack":true,"ts":1601497045351,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223764} tuya.0 2020-09-30 22:17:25.337 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.27 {"val":"","ack":true,"ts":1601497045332,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223708} tuya.0 2020-09-30 22:17:25.334 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.26 {"val":0,"ack":true,"ts":1601497045331,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223629} tuya.0 2020-09-30 22:17:25.324 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.25 {"val":"000e0d0000000000000000c80000","ack":true,"ts":1601497045318,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":160149622 tuya.0 2020-09-30 22:17:25.321 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.24 {"val":"000003e803e8","ack":true,"ts":1601497045317,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223532} tuya.0 2020-09-30 22:17:25.303 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.23 {"val":1000,"ack":true,"ts":1601497045298,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223367} tuya.0 2020-09-30 22:17:25.296 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.22 {"val":1000,"ack":true,"ts":1601497045287,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223292} tuya.0 2020-09-30 22:17:25.232 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.21 {"val":"0","ack":true,"ts":1601497045228,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223269} tuya.0 2020-09-30 22:17:25.226 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.20 {"val":true,"ack":true,"ts":1601497045220,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223210} tuya.0 2020-09-30 22:17:25.209 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.32 {"val":"AAA=","ack":true,"ts":1601497045204,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223835} tuya.0 2020-09-30 22:17:25.143 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.31 {"val":"AAA=","ack":true,"ts":1601497045134,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223798} tuya.0 2020-09-30 22:17:25.137 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.28 {"val":"","ack":true,"ts":1601497045134,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223764} tuya.0 2020-09-30 22:17:25.117 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.27 {"val":"","ack":true,"ts":1601497045108,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223708} tuya.0 2020-09-30 22:17:25.112 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.26 {"val":0,"ack":true,"ts":1601497045106,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223629} tuya.0 2020-09-30 22:17:25.090 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.25 {"val":"000e0d0000000000000000c80000","ack":true,"ts":1601497045079,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":160149622 tuya.0 2020-09-30 22:17:25.084 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.24 {"val":"000003e803e8","ack":true,"ts":1601497045078,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223532} tuya.0 2020-09-30 22:17:25.023 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.23 {"val":1000,"ack":true,"ts":1601497045018,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223367} tuya.0 2020-09-30 22:17:25.013 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.22 {"val":1000,"ack":true,"ts":1601497045008,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223292} tuya.0 2020-09-30 22:17:24.950 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.online {"val":false,"ack":true,"ts":1601497044909,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223141} tuya.0 2020-09-30 22:17:24.946 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.21 {"val":"0","ack":true,"ts":1601497044909,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223269} tuya.0 2020-09-30 22:17:24.904 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 32 tuya.0 2020-09-30 22:17:24.903 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 31 tuya.0 2020-09-30 22:17:24.900 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 28 tuya.0 2020-09-30 22:17:24.900 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 27 tuya.0 2020-09-30 22:17:24.899 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 26 tuya.0 2020-09-30 22:17:24.898 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 25 tuya.0 2020-09-30 22:17:24.898 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 24 tuya.0 2020-09-30 22:17:24.897 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 23 tuya.0 2020-09-30 22:17:24.897 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 22 tuya.0 2020-09-30 22:17:24.896 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 21 tuya.0 2020-09-30 22:17:24.895 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 20 tuya.0 2020-09-30 22:17:24.895 debug (21134) bf81dc320ccb0f71f9kqny: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_led","id":20,"role":"switch"},{"type":"number","states":{"0":"white","1":"colour","2":"scene","3":"m tuya.0 2020-09-30 22:17:24.894 debug (21134) bf81dc320ccb0f71f9kqny: Create device objects if not exist tuya.0 2020-09-30 22:17:24.893 debug (21134) bf81dc320ccb0f71f9kqny: Schema found for w8mijl9lbbuh8li4: {"schema":[{"mode":"rw","code":"switch_led","name":"开关","property":{"type":"bool"},"iconname":"icon-dp_power","id":20,"type":"obj"}, tuya.0 2020-09-30 22:17:24.892 debug (21134) Found 1 devices tuya.0 2020-09-30 22:17:24.892 debug (21134) Found 1 device schema information tuya.0 2020-09-30 22:17:24.865 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.20 {"val":true,"ack":true,"ts":1601497044861,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223210} tuya.0 2020-09-30 22:17:24.826 debug (21134) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:17:24.825 debug (21134) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":241,"ack":false,"time":1601497044804},"_id":69005886} tuya.0 2020-09-30 22:17:24.822 debug (21134) stateChange tuya.0.bf81dc320ccb0f71f9kqny.online {"val":false,"ack":true,"ts":1601497044784,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1601496223141} tuya.0 2020-09-30 22:17:24.768 debug (21134) sendTo "getProxyResult" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:17:24.765 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 32 tuya.0 2020-09-30 22:17:24.764 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 31 tuya.0 2020-09-30 22:17:24.764 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 28 tuya.0 2020-09-30 22:17:24.764 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 27 tuya.0 2020-09-30 22:17:24.763 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 26 tuya.0 2020-09-30 22:17:24.763 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 25 tuya.0 2020-09-30 22:17:24.762 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 24 tuya.0 2020-09-30 22:17:24.762 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 23 tuya.0 2020-09-30 22:17:24.761 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 22 tuya.0 2020-09-30 22:17:24.761 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 21 tuya.0 2020-09-30 22:17:24.760 debug (21134) bf81dc320ccb0f71f9kqny Register onChange for 20 tuya.0 2020-09-30 22:17:24.759 debug (21134) bf81dc320ccb0f71f9kqny: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_led","id":20,"role":"switch"},{"type":"number","states":{"0":"white","1":"colour","2":"scene","3":"m tuya.0 2020-09-30 22:17:24.756 debug (21134) bf81dc320ccb0f71f9kqny: Create device objects if not exist tuya.0 2020-09-30 22:17:24.754 debug (21134) bf81dc320ccb0f71f9kqny: Schema found for w8mijl9lbbuh8li4: {"schema":[{"mode":"rw","code":"switch_led","name":"开关","property":{"type":"bool"},"iconname":"icon-dp_power","id":20,"type":"obj"}, tuya.0 2020-09-30 22:17:24.752 debug (21134) Found 1 devices tuya.0 2020-09-30 22:17:24.737 info (21134) {"schemaExt":"[]","schema":"[{\"mode\":\"rw\",\"code\":\"switch_led\",\"name\":\"开关\",\"property\":{\"type\":\"bool\"},\"iconname\":\"icon-dp_power\",\"id\":20,\"type\":\"obj\"},{\"mode\":\"r tuya.0 2020-09-30 22:17:24.736 info (21134) new Schema added for product type w8mijl9lbbuh8li4. Please send next line from logfile on disk to developer! tuya.0 2020-09-30 22:17:24.731 debug (21134) Found 1 device schema information tuya.0 2020-09-30 22:16:49.215 debug (21134) Message: {"command":"getProxyResult","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":240,"ack":false,"time":1601497009213},"_id":69005885} tuya.0 2020-09-30 22:16:49.201 debug (21134) sendTo "startProxy" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:16:49.078 info (21134) SSL-Proxy ready to receive requests tuya.0 2020-09-30 22:16:49.052 debug (21134) Use first network interface (192.168.10.101) tuya.0 2020-09-30 22:16:49.051 debug (21134) Message: {"command":"startProxy","message":{"proxyPort":"8888","proxyWebPort":"8889"},"from":"system.adapter.admin.0","callback":{"message":{"proxyPort":"8888","proxyWebPort":"8889"},"id":239 tuya.0 2020-09-30 22:16:47.727 debug (21134) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:16:47.727 debug (21134) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":238,"ack":false,"time":1601497007726},"_id":69005883} tuya.0 2020-09-30 22:15:45.756 debug (21134) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0 tuya.0 2020-09-30 22:15:45.755 debug (21134) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":237,"ack":false,"time":1601496945754},"_id":69005882}

@derAlff
Copy link

derAlff commented Oct 1, 2020

Same Problem here with an half year old LSC RGB Bulp. But i think this issue is the same like #218

@derAlff
Copy link

derAlff commented Oct 1, 2020

Found a workaround:
You can click under Options/tuya.0 od the folder of your devices. On the right side you can see a liitle pencil. When you click on the pencil, then you see the settings of the device. Now you can click on the tab (RAW (ONLY EXPERTS)). You see the JSON of this datapoint/device. By my JSON i found an setting named "version". I set it to 3.3. Then i created a setting "ip": "ipaddress-of-device",
Now the adapter works 👍
tuya_raw

@TeaJAge
Copy link
Author

TeaJAge commented Oct 1, 2020

Thank very much you for this hint it also works in my case!

Version and IP was empty.

Maybe somebody can fix it in the code.

@Apollon77
Copy link
Owner

Then it seems like that the UDP packages are not send or invalid or such ... then yes this is a good woorkaround.

@necotec am I allowed to reuse the image above for the README?

@Apollon77
Copy link
Owner

Maybe somebody can fix it in the code.

The code works when the UDP packages are correctly coming and are correctly encoded and this seems to be the issue here. To fix the code I would need such a device here with me ad much time to find out why it can not be found as expected ... andf if the device sends invalid packages then I have no chance at all ...

@TeaJAge
Copy link
Author

TeaJAge commented Oct 1, 2020

If it helps you to fix it I can do a Wireshark trace. If you don‘t want to change something you can close the issue.

@derAlff
Copy link

derAlff commented Oct 1, 2020

@Apollon77 yes, no problem. You can use the image for your README.

hmz.... UDP is allowed inside my Network :)
I don't know, how the version and ip not set...

@derAlff
Copy link

derAlff commented Oct 1, 2020

@Apollon77 i can send you my Bulb per "Deutsche Post" ;P

@Apollon77
Copy link
Owner

It kind of works the following way: With the Proxy sync the "localKey" is grabbed out from the cloud data on tuyya for the devices.This localKey is then used to decrypt the locally sent UDP packages ... you see that in the log ... there comes a UDP package and the adapter tries sll encryption keys if he can decrypt the package ... if not then he do not know what do do with the UDP package. If it cn be decrypted then the version is read from that and the IP is so also known ... then this is persisted in the object so that it can be used directly on next start.

Sending would be an idea, but honestly I do not know when I will find time for it ... could take a while because js.controller 3.2 will come soon and so my prios will be more there. Sorry. So up to you :-) If you want send me an email please to iobroker@fischer-ka.de for adress.

@derAlff
Copy link

derAlff commented Oct 1, 2020

If it helps you to fix it I can do a Wireshark trace. If you don‘t want to change something you can close the issue.

Uuuh... If you want, do that remotely on my PC ;).

@derAlff
Copy link

derAlff commented Oct 8, 2020

Sooooooooo.... The Tuya adaptor runs. I do some tests at the moment. I can set Brightness and temperature and also the color on my LSC Bulb from Action market :) (with a little Node red script)

Only one Problem.... After some hours, the Bulb is offline (no connection to my WiFi). Do anybody knows why?

@sekinooo
Copy link

I installed today your adapter, synchronized devices with Smartlife App 3.12.6, all devices are loaded in iobroker but all are offline. In log file I have "None of the discovered devices matches :-(" next to every device. Tuya inastance has yellow light next to it saying : connected to tuya: false.
Any help?

@derAlff
Copy link

derAlff commented Oct 11, 2020

Found a workaround:
You can click under Options/tuya.0 od the folder of your devices. On the right side you can see a liitle pencil. When you click on the pencil, then you see the settings of the device. Now you can click on the tab (RAW (ONLY EXPERTS)). You see the JSON of this datapoint/device. By my JSON i found an setting named "version". I set it to 3.3. Then i created a setting "ip": "ipaddress-of-device",
Now the adapter works 👍
tuya_raw

This is my workaround.

@sekinooo
Copy link

So I need to fill in IP of every device manually? I have 22 devices on DHCP.

@derAlff
Copy link

derAlff commented Oct 11, 2020

Maybe as a first solution. I can't find the issue in the code of the adaptor.

@sekinooo
Copy link

Any idea how can I ifind local IP of exact device? In app I only see same external address for every device.

@TeaJAge
Copy link
Author

TeaJAge commented Oct 11, 2020

You can use a IP scanner or the overview in your router.

@sekinooo
Copy link

OK, I can see MAC address in app so I will pair with IP scanner and will try for some devices...

@sekinooo
Copy link

sekinooo commented Oct 11, 2020

Now I have green light in tuya adapter and in log I have: Init with IP=192.168.1.157, Key=xxxxxxxxxxxxxx, Version=undefined.
What version should I put in? Version of smarthome app? Or what it means?
I now have indicator.reachable=true, but still can't control light bulb and not showing live states.

@derAlff
Copy link

derAlff commented Oct 11, 2020

Version 3.3 ist the right one

@sekinooo
Copy link

sekinooo commented Oct 11, 2020

Looks like it deleted version number, so I put 3.3 again but still not working.
I got log: IP=192.168.1.157, Key=xxxxxxxxxxxxxx, Version=3.3
then second later I got 20x message for the same device: "None of the discovered devices matches :-("

@derAlff
Copy link

derAlff commented Oct 11, 2020

Is it possible, that you remove all devices and connect then every device step by step? What I mean, connect in App, take changes in the raw.... Connect next device, take changes....

That for all 22 devices :)

@sekinooo
Copy link

sekinooo commented Oct 11, 2020

I tried minute later and I can control the bulb 👍 I will test more later tonight. thanks for now :)
next I will need to set static IPs for all devices in router :(

@sekinooo
Copy link

One more question, do you know if those IPs will be deleted when I will add new device and synchronize again from app?

@derAlff
Copy link

derAlff commented Oct 11, 2020

Puuuuh... That's possible. But, DHCP servers have lease times. I don't know 🤷😅

@sekinooo
Copy link

Puuuuh... That's possible. But, DHCP servers have lease times. I don't know 🤷😅

I meant if IPs which I put in objects settings in iobroker will be deleted after synchro? I will set static IPs in router so DHCP will not affect devices IP.

@derAlff
Copy link

derAlff commented Oct 11, 2020

Ah ok. I don't know. You can test it easy ;) Delete one device and add it again :)

This was referenced Oct 21, 2020
@Apollon77 Apollon77 added the enhancement New feature or request label Oct 28, 2020
@Plenium-ui
Copy link

Habe es heute auch endlich hinbekommen mit dem Nox Android Emulator auf meinem Mac mit der Smart Life App (3.12.x) und anschließendem ergänzen der Version und IP-Geräte-Adresse in den Objekteinstellungen. Besten Dank @Apollon77

@Apollon77
Copy link
Owner

Hey, es wäre cool wenn jemand bei so einem (am besten echt nur eins) Gerät mal die IP und version wieder aus der Konfig rauswirft und den Adapter vom Github installiert (versionsnummer ist gleich). Dann bitte debug log posten. Ich hab das Logging mal geändert das ist die verschlüsselte nachricht korrekt bekomme und dann mal schauen kann

@Apollon77
Copy link
Owner

Bzw noch besser, hab nochwas geändert ... vllt tuts jetzt auch wieder :-) Also bitte mal testen!

@Plenium-ui
Copy link

Bzw noch besser, hab nochwas geändert ... vllt tuts jetzt auch wieder :-) Also bitte mal testen!

Ich habe jetzt über https://github.com/Apollon77/ioBroker.tuya.git den Adapter geupdatet und bin nun auf Version 3.4.0
In den RAW-Settings der Objekte ist noch meine IP und die Version drin. Was brauchst du? Was soll ich tun?

@Apollon77
Copy link
Owner

Am besten Adapter stoppen, das Objekt wieder so ändern wie es vorher war - also ip und version auf undefined setzen oder so... Dann adapter starten. Dann sollte er ggf beim ersten UDP Paket alles korrekt setzen

@Plenium-ui
Copy link

Am besten Adapter stoppen, das Objekt wieder so ändern wie es vorher war - also ip und version auf undefined setzen oder so... Dann adapter starten. Dann sollte er ggf beim ersten UDP Paket alles korrekt setzen

Okay, habe den Adapter gestoppt, Version und IP rausgenommen und Adapter wieder gestartet:

  • Adapter-Status= grün
  • Objekt-Daten werden nicht übermittelt (true/false, kW/h etc.)
  • Version und IP bleiben leer

@Apollon77
Copy link
Owner

Dann Loglevel auf Debug bitte (Instanzen - Expertenmodus - SPalte Logstufe) und dann Log vom Start ... aber nicht aus Admin kopieren sondern aus dem Logfile auf der Platte

@derAlff
Copy link

derAlff commented Nov 2, 2020

@Apollon77 können wir noch irgendwie helfen?

@Plenium-ui
Copy link

@Apollon77: habe dir meinen Log als Mail geschickt. Von meinen Geräten habe ich jedoch nur 1/6 die Version und IP gelöscht: "Steckdose". Wenn du noch was brauchst, melde dich.

@elzershark
Copy link

funzt wieder alles über github. thx

@Apollon77
Copy link
Owner

@Plenium-ui thank you ... can ypu please checl GitHub version again ...

@elzershark
Copy link

Tuya deinstalliert. Über Katze installiert. Alle Geräte funzen. Die Vorher nicht funktionierten, haben jetzt die IP und Version 3.3

@Apollon77
Copy link
Owner

@elzershark Nochmal hier: Geht es OHNE manuelles editieren von Objekten? Wenn ja super wenn nein dann muss das nochmal geprüft werden und brauche Debug Log

@elzershark
Copy link

elzershark commented Nov 3, 2020

Versuche jemanden zu finden der ein Bew. Melder hat.. ich finde meinen nicht mehr.. Alle anderen Geräte funzen.. Abe es sind ja auch "offline" Geräte.. Bei mir.. Alle Lampen, Steckdosen, Fernbedienung(Funzt ja nicht, aber IP u. Version sind vorhanden), Wasserkocher, u.s.w.) funzen alle. Was ich nicht testen kann, sind offline Geräte

@elzershark
Copy link

Ja, alles "ohne" Editieren..

@elzershark
Copy link

elzershark commented Nov 4, 2020

offline Gerät. Bewegungsmelder. mit Version 3.3 geht es nicht. Muss 3.1 sein.

Debug-LOG
2020-11-04 10:41:27.176 - info: host.raspberrypi "system.adapter.tuya.0" enabled
2020-11-04 10:41:27.242 - info: host.raspberrypi instance system.adapter.tuya.0 started with pid 25936
2020-11-04 10:41:28.367 - debug: tuya.0 (25936) Redis Objects: Use Redis connection: 127.0.0.1:9001
2020-11-04 10:41:28.419 - debug: tuya.0 (25936) Objects client ready ... initialize now
2020-11-04 10:41:28.422 - debug: tuya.0 (25936) Objects create System PubSub Client
2020-11-04 10:41:28.424 - debug: tuya.0 (25936) Objects create User PubSub Client
2020-11-04 10:41:28.425 - debug: tuya.0 (25936) Objects client initialize lua scripts
2020-11-04 10:41:28.436 - debug: tuya.0 (25936) Objects connected to redis: 127.0.0.1:9001
2020-11-04 10:41:28.443 - debug: tuya.0 (25936) objectDB connected
2020-11-04 10:41:28.445 - debug: tuya.0 (25936) Redis States: Use Redis connection: 127.0.0.1:9000
2020-11-04 10:41:28.453 - debug: tuya.0 (25936) States create User PubSub Client
2020-11-04 10:41:28.456 - debug: tuya.0 (25936) States create System PubSub Client
2020-11-04 10:41:28.465 - debug: tuya.0 (25936) States connected to redis: 127.0.0.1:9000
2020-11-04 10:41:28.466 - debug: tuya.0 (25936) statesDB connected
2020-11-04 10:41:28.960 - debug: tuya.0 (25936) Plugin sentry Initialize Plugin (enabled=true)
2020-11-04 10:41:29.156 - info: tuya.0 (25936) starting. Version 3.4.0 in /opt/iobroker/node_modules/iobroker.tuya, node: v12.19.0, js-controller: 3.1.6
2020-11-04 10:41:29.208 - info: tuya.0 (25936) Existing devices initialized
2020-11-04 10:41:29.218 - info: tuya.0 (25936) Listen for local Tuya devices on port 6666
2020-11-04 10:41:29.219 - info: tuya.0 (25936) Listen for encrypted local Tuya devices on port 6667
2020-11-04 10:41:29.236 - debug: tuya.0 (25936) connected set to false
2020-11-04 10:41:30.216 - debug: tuya.0 (25936) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":959,"ack":false,"time":1604486490212},"_id":7555499}
2020-11-04 10:41:30.218 - debug: tuya.0 (25936) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0
2020-11-04 10:41:30.428 - debug: tuya.0 (25936) Discovered encrypted device and store for later usage: 192.168.188.50:49153 - 000055aa00000000000000130000009c00000000d09766676f3369eb10b5e9f132fd802a0eb593d996bc4bf516fce23a5108089cd59ad1a8bb27785f14a64478dca26560eaa079dbb6e8e20de4a799bdb9a4ec9659bd59981c26d5958da187e096d937c840b1058c6d8cd9456f3f7e28eed4932b8b61a5bd8b93767084c7558115779cb63f47dd1ab96db69d5ef593733b4326ed8494c932e298de410f638ed8bf10587a3e5c3ca70000aa55
2020-11-04 10:41:33.530 - debug: tuya.0 (25936) Message: {"command":"startProxy","message":{"proxyPort":"8888","proxyWebPort":"8889"},"from":"system.adapter.admin.0","callback":{"message":{"proxyPort":"8888","proxyWebPort":"8889"},"id":960,"ack":false,"time":1604486492218},"_id":7555500}
2020-11-04 10:41:33.532 - debug: tuya.0 (25936) Use first network interface (192.168.188.37)
2020-11-04 10:41:33.605 - info: tuya.0 (25936) SSL-Proxy ready to receive requests
2020-11-04 10:41:33.813 - debug: tuya.0 (25936) sendTo "startProxy" to system.adapter.admin.0 from system.adapter.tuya.0
2020-11-04 10:41:33.851 - debug: tuya.0 (25936) Message: {"command":"getProxyResult","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":961,"ack":false,"time":1604486493849},"_id":7555501}
2020-11-04 10:41:45.284 - debug: tuya.0 (25936) Found 2 device schema information
2020-11-04 10:41:45.286 - debug: tuya.0 (25936) Found 4 devices
2020-11-04 10:41:45.289 - debug: tuya.0 (25936) 20401777500291cf4c2e: Schema found for wqz93nrdomectyoz: {"schema":[{"mode":"ro","code":"pir_state","name":"人体感应状态","property":{"range":["pir"],"type":"enum"},"iconname":"icon-yundong","id":1,"type":"obj","desc":"【必选】1:有人触发\n"},{"mode":"ro","code":"battery_state","name":"电池电量状态","property":{"range":["low","middle","high"],"type":"enum"},"iconname":"icon-dianliang","id":3,"type":"obj","desc":"【非必选】\n0:低电量\n1:中电量\n2:高电量"}],"schemaExt":[]}
2020-11-04 10:41:45.294 - debug: tuya.0 (25936) 20401777500291cf4c2e: Create device objects if not exist
2020-11-04 10:41:45.300 - debug: tuya.0 (25936) 20401777500291cf4c2e: Objects [{"type":"number","states":{"0":"pir"},"read":true,"write":false,"name":"pir_state","id":1,"role":"value"},{"type":"number","states":{"0":"low","1":"middle","2":"high"},"read":true,"write":false,"name":"battery_state","id":3,"role":"value"}]
2020-11-04 10:41:45.305 - debug: tuya.0 (25936) 20401777500291cfef59: Schema found for wqz93nrdomectyoz: {"schema":[{"mode":"ro","code":"pir_state","name":"人体感应状态","property":{"range":["pir"],"type":"enum"},"iconname":"icon-yundong","id":1,"type":"obj","desc":"【必选】1:有人触发\n"},{"mode":"ro","code":"battery_state","name":"电池电量状态","property":{"range":["low","middle","high"],"type":"enum"},"iconname":"icon-dianliang","id":3,"type":"obj","desc":"【非必选】\n0:低电量\n1:中电量\n2:高电量"}],"schemaExt":[]}
2020-11-04 10:41:45.308 - debug: tuya.0 (25936) 20401777500291cfef59: Create device objects if not exist
2020-11-04 10:41:45.310 - debug: tuya.0 (25936) 20401777500291cfef59: Objects [{"type":"number","states":{"0":"pir"},"read":true,"write":false,"name":"pir_state","id":1,"role":"value"},{"type":"number","states":{"0":"low","1":"middle","2":"high"},"read":true,"write":false,"name":"battery_state","id":3,"role":"value"}]
2020-11-04 10:41:45.312 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Schema found for jams1ipuwvvgfak4: {"schema":[{"mode":"rw","code":"switch_1","name":"开关1","property":{"type":"bool"},"iconname":"icon-dp_power2","id":1,"type":"obj"},{"mode":"rw","code":"countdown_1","name":"开关1倒计时","property":{"unit":"s","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_time2","id":9,"type":"obj"},{"mode":"rw","code":"relay_status","name":"设备重启状态设置","property":{"range":["off","on","memory"],"type":"enum"},"iconname":"icon-dp_battery","id":38,"type":"obj"}],"schemaExt":[{"complexType":"","id":9,"inputStyle":"plain","inputType":"countdown"}]}
2020-11-04 10:41:45.315 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Create device objects if not exist
2020-11-04 10:41:45.317 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_1","id":1,"role":"switch"},{"type":"number","unit":"s","max":86400,"read":true,"write":true,"name":"countdown_1","id":9,"role":"level"},{"type":"number","states":{"0":"off","1":"on","2":"memory"},"read":true,"write":true,"name":"relay_status","id":38,"role":"level"}]
2020-11-04 10:41:45.317 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5 Register onChange for 1
2020-11-04 10:41:45.318 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5 Register onChange for 9
2020-11-04 10:41:45.319 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5 Register onChange for 38
2020-11-04 10:41:45.320 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm: Schema found for jams1ipuwvvgfak4: {"schema":[{"mode":"rw","code":"switch_1","name":"开关1","property":{"type":"bool"},"iconname":"icon-dp_power2","id":1,"type":"obj"},{"mode":"rw","code":"countdown_1","name":"开关1倒计时","property":{"unit":"s","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_time2","id":9,"type":"obj"},{"mode":"rw","code":"relay_status","name":"设备重启状态设置","property":{"range":["off","on","memory"],"type":"enum"},"iconname":"icon-dp_battery","id":38,"type":"obj"}],"schemaExt":[{"complexType":"","id":9,"inputStyle":"plain","inputType":"countdown"}]}
2020-11-04 10:41:45.321 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm: Create device objects if not exist
2020-11-04 10:41:45.322 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_1","id":1,"role":"switch"},{"type":"number","unit":"s","max":86400,"read":true,"write":true,"name":"countdown_1","id":9,"role":"level"},{"type":"number","states":{"0":"off","1":"on","2":"memory"},"read":true,"write":true,"name":"relay_status","id":38,"role":"level"}]
2020-11-04 10:41:45.323 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm Register onChange for 1
2020-11-04 10:41:45.324 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm Register onChange for 9
2020-11-04 10:41:45.324 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm Register onChange for 38
2020-11-04 10:41:45.328 - debug: tuya.0 (25936) sendTo "getProxyResult" to system.adapter.admin.0 from system.adapter.tuya.0
2020-11-04 10:41:45.363 - debug: tuya.0 (25936) Message: {"command":"getDeviceInfo","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":962,"ack":false,"time":1604486505350},"_id":7555502}
2020-11-04 10:41:45.364 - debug: tuya.0 (25936) sendTo "getDeviceInfo" to system.adapter.admin.0 from system.adapter.tuya.0
2020-11-04 10:41:45.392 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cf4c2e.online {"val":false,"ack":true,"ts":1604486505385,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505385}
2020-11-04 10:41:45.399 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cf4c2e.1 {"val":"0","ack":true,"ts":1604486505385,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505385}
2020-11-04 10:41:45.412 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cf4c2e.3 {"val":"0","ack":true,"ts":1604486505404,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505404}
2020-11-04 10:41:45.422 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cfef59.online {"val":false,"ack":true,"ts":1604486505416,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505416}
2020-11-04 10:41:45.430 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cfef59.1 {"val":"0","ack":true,"ts":1604486505424,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505424}
2020-11-04 10:41:45.435 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cfef59.3 {"val":"2","ack":true,"ts":1604486505431,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505431}
2020-11-04 10:41:45.448 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.online {"val":false,"ack":true,"ts":1604486505442,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505442}
2020-11-04 10:41:45.458 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.1 {"val":true,"ack":true,"ts":1604486505450,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505450}
2020-11-04 10:41:45.463 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.9 {"val":0,"ack":true,"ts":1604486505459,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505459}
2020-11-04 10:41:45.468 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.38 {"val":"0","ack":true,"ts":1604486505460,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505460}
2020-11-04 10:41:45.486 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=a545737c40f9f3c9
2020-11-04 10:41:45.490 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Schema found for keya4gvchmtapm8n: null
2020-11-04 10:41:45.491 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Create device objects if not exist
2020-11-04 10:41:45.493 - debug: tuya.0 (25936) stateChange tuya.0.bf369c61d48fcb1650jalm.online {"val":false,"ack":true,"ts":1604486505479,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505479}
2020-11-04 10:41:45.495 - debug: tuya.0 (25936) 20401777500291cfef59: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=598c91e8fdedb3b9
2020-11-04 10:41:45.495 - info: tuya.0 (25936) 20401777500291cfef59: None of the discovered devices matches :-(
2020-11-04 10:41:45.503 - debug: tuya.0 (25936) stateChange tuya.0.bf369c61d48fcb1650jalm.1 {"val":true,"ack":true,"ts":1604486505481,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505481}
2020-11-04 10:41:45.506 - debug: tuya.0 (25936) stateChange tuya.0.bf369c61d48fcb1650jalm.9 {"val":0,"ack":true,"ts":1604486505496,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505496}
2020-11-04 10:41:45.515 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=090e4c3b8840216c
2020-11-04 10:41:45.516 - info: tuya.0 (25936) bf369c61d48fcb1650jalm: None of the discovered devices matches :-(
2020-11-04 10:41:45.517 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.online {"val":false,"ack":true,"ts":1604486505496,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505442}
2020-11-04 10:41:45.520 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.ip {"val":"192.168.188.50","ack":true,"ts":1604486505496,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505496}
2020-11-04 10:41:45.525 - debug: tuya.0 (25936) stateChange tuya.0.bf369c61d48fcb1650jalm.38 {"val":"0","ack":true,"ts":1604486505522,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505522}
2020-11-04 10:41:45.527 - debug: tuya.0 (25936) 20401777500291cf4c2e: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=be25ae53c16141dd
2020-11-04 10:41:45.528 - info: tuya.0 (25936) 20401777500291cf4c2e: None of the discovered devices matches :-(
2020-11-04 10:41:45.572 - info: tuya.0 (25936) bf78223d12332bd03bn4b5 Init with IP=192.168.188.50, Key=a545737c40f9f3c9, Version=3.3
2020-11-04 10:41:45.579 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Connected to device
2020-11-04 10:41:45.588 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.online {"val":true,"ack":true,"ts":1604486505585,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505585}
2020-11-04 10:41:45.590 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Received data: {"1":true,"9":0,"38":"off"}
2020-11-04 10:41:45.594 - debug: tuya.0 (25936) connected set to true
2020-11-04 10:41:45.597 - debug: tuya.0 (25936) stateChange tuya.0.info.connection {"val":true,"ack":true,"ts":1604486505585,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505585}
2020-11-04 10:41:45.601 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.1 {"val":true,"ack":true,"ts":1604486505597,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505450}
2020-11-04 10:41:45.604 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.9 {"val":0,"ack":true,"ts":1604486505599,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505459}
2020-11-04 10:41:45.607 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.38 {"val":"0","ack":true,"ts":1604486505599,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505460}
2020-11-04 10:41:47.039 - debug: tuya.0 (25936) Found 2 device schema information
2020-11-04 10:41:47.040 - debug: tuya.0 (25936) Found 4 devices
2020-11-04 10:41:47.040 - debug: tuya.0 (25936) 20401777500291cf4c2e: Schema found for wqz93nrdomectyoz: {"schema":[{"mode":"ro","code":"pir_state","name":"人体感应状态","property":{"range":["pir"],"type":"enum"},"iconname":"icon-yundong","id":1,"type":"obj","desc":"【必选】1:有人触发\n"},{"mode":"ro","code":"battery_state","name":"电池电量状态","property":{"range":["low","middle","high"],"type":"enum"},"iconname":"icon-dianliang","id":3,"type":"obj","desc":"【非必选】\n0:低电量\n1:中电量\n2:高电量"}],"schemaExt":[]}
2020-11-04 10:41:47.041 - debug: tuya.0 (25936) 20401777500291cf4c2e: Create device objects if not exist
2020-11-04 10:41:47.042 - debug: tuya.0 (25936) 20401777500291cf4c2e: Objects [{"type":"number","states":{"0":"pir"},"read":true,"write":false,"name":"pir_state","id":1,"role":"value"},{"type":"number","states":{"0":"low","1":"middle","2":"high"},"read":true,"write":false,"name":"battery_state","id":3,"role":"value"}]
2020-11-04 10:41:47.044 - debug: tuya.0 (25936) 20401777500291cfef59: Schema found for wqz93nrdomectyoz: {"schema":[{"mode":"ro","code":"pir_state","name":"人体感应状态","property":{"range":["pir"],"type":"enum"},"iconname":"icon-yundong","id":1,"type":"obj","desc":"【必选】1:有人触发\n"},{"mode":"ro","code":"battery_state","name":"电池电量状态","property":{"range":["low","middle","high"],"type":"enum"},"iconname":"icon-dianliang","id":3,"type":"obj","desc":"【非必选】\n0:低电量\n1:中电量\n2:高电量"}],"schemaExt":[]}
2020-11-04 10:41:47.045 - debug: tuya.0 (25936) 20401777500291cfef59: Create device objects if not exist
2020-11-04 10:41:47.046 - debug: tuya.0 (25936) 20401777500291cfef59: Objects [{"type":"number","states":{"0":"pir"},"read":true,"write":false,"name":"pir_state","id":1,"role":"value"},{"type":"number","states":{"0":"low","1":"middle","2":"high"},"read":true,"write":false,"name":"battery_state","id":3,"role":"value"}]
2020-11-04 10:41:47.047 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Schema found for jams1ipuwvvgfak4: {"schema":[{"mode":"rw","code":"switch_1","name":"开关1","property":{"type":"bool"},"iconname":"icon-dp_power2","id":1,"type":"obj"},{"mode":"rw","code":"countdown_1","name":"开关1倒计时","property":{"unit":"s","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_time2","id":9,"type":"obj"},{"mode":"rw","code":"relay_status","name":"设备重启状态设置","property":{"range":["off","on","memory"],"type":"enum"},"iconname":"icon-dp_battery","id":38,"type":"obj"}],"schemaExt":[{"complexType":"","id":9,"inputStyle":"plain","inputType":"countdown"}]}
2020-11-04 10:41:47.051 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Create device objects if not exist
2020-11-04 10:41:47.053 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_1","id":1,"role":"switch"},{"type":"number","unit":"s","max":86400,"read":true,"write":true,"name":"countdown_1","id":9,"role":"level"},{"type":"number","states":{"0":"off","1":"on","2":"memory"},"read":true,"write":true,"name":"relay_status","id":38,"role":"level"}]
2020-11-04 10:41:47.054 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5 Register onChange for 1
2020-11-04 10:41:47.055 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5 Register onChange for 9
2020-11-04 10:41:47.056 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5 Register onChange for 38
2020-11-04 10:41:47.058 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm: Schema found for jams1ipuwvvgfak4: {"schema":[{"mode":"rw","code":"switch_1","name":"开关1","property":{"type":"bool"},"iconname":"icon-dp_power2","id":1,"type":"obj"},{"mode":"rw","code":"countdown_1","name":"开关1倒计时","property":{"unit":"s","min":0,"max":86400,"scale":0,"step":1,"type":"value"},"iconname":"icon-dp_time2","id":9,"type":"obj"},{"mode":"rw","code":"relay_status","name":"设备重启状态设置","property":{"range":["off","on","memory"],"type":"enum"},"iconname":"icon-dp_battery","id":38,"type":"obj"}],"schemaExt":[{"complexType":"","id":9,"inputStyle":"plain","inputType":"countdown"}]}
2020-11-04 10:41:47.061 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm: Create device objects if not exist
2020-11-04 10:41:47.063 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_1","id":1,"role":"switch"},{"type":"number","unit":"s","max":86400,"read":true,"write":true,"name":"countdown_1","id":9,"role":"level"},{"type":"number","states":{"0":"off","1":"on","2":"memory"},"read":true,"write":true,"name":"relay_status","id":38,"role":"level"}]
2020-11-04 10:41:47.064 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm Register onChange for 1
2020-11-04 10:41:47.065 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm Register onChange for 9
2020-11-04 10:41:47.066 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm Register onChange for 38
2020-11-04 10:41:47.084 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Disconnected from device
2020-11-04 10:41:47.107 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cf4c2e.online {"val":false,"ack":true,"ts":1604486507088,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505385}
2020-11-04 10:41:47.110 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cfef59.online {"val":false,"ack":true,"ts":1604486507089,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505416}
2020-11-04 10:41:47.114 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.online {"val":false,"ack":true,"ts":1604486507089,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486507089}
2020-11-04 10:41:47.120 - debug: tuya.0 (25936) stateChange tuya.0.bf369c61d48fcb1650jalm.online {"val":false,"ack":true,"ts":1604486507089,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505479}
2020-11-04 10:41:47.134 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.online {"val":false,"ack":true,"ts":1604486507117,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486507117}
2020-11-04 10:41:47.137 - debug: tuya.0 (25936) connected set to false
2020-11-04 10:41:47.149 - debug: tuya.0 (25936) stateChange tuya.0.info.connection {"val":false,"ack":true,"ts":1604486507123,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486507123}
2020-11-04 10:41:47.169 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cf4c2e.1 {"val":"0","ack":true,"ts":1604486507166,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505385}
2020-11-04 10:41:47.172 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cf4c2e.3 {"val":"0","ack":true,"ts":1604486507167,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505404}
2020-11-04 10:41:47.208 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cfef59.1 {"val":"0","ack":true,"ts":1604486507204,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505424}
2020-11-04 10:41:47.211 - debug: tuya.0 (25936) stateChange tuya.0.20401777500291cfef59.3 {"val":"2","ack":true,"ts":1604486507204,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505431}
2020-11-04 10:41:47.219 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.1 {"val":true,"ack":true,"ts":1604486507206,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505450}
2020-11-04 10:41:47.232 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.9 {"val":0,"ack":true,"ts":1604486507223,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505459}
2020-11-04 10:41:47.238 - debug: tuya.0 (25936) 20401777500291cf4c2e: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=be25ae53c16141dd
2020-11-04 10:41:47.239 - info: tuya.0 (25936) 20401777500291cf4c2e: None of the discovered devices matches :-(
2020-11-04 10:41:47.239 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.38 {"val":"0","ack":true,"ts":1604486507234,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505460}
2020-11-04 10:41:47.241 - info: tuya.0 (25936) bf78223d12332bd03bn4b5 Init with IP=192.168.188.50, Key=a545737c40f9f3c9, Version=3.3
2020-11-04 10:41:47.245 - debug: tuya.0 (25936) stateChange tuya.0.bf369c61d48fcb1650jalm.1 {"val":true,"ack":true,"ts":1604486507236,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505481}
2020-11-04 10:41:47.248 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Connected to device
2020-11-04 10:41:47.257 - debug: tuya.0 (25936) bf369c61d48fcb1650jalm: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=090e4c3b8840216c
2020-11-04 10:41:47.258 - info: tuya.0 (25936) bf369c61d48fcb1650jalm: None of the discovered devices matches :-(
2020-11-04 10:41:47.258 - debug: tuya.0 (25936) stateChange tuya.0.bf369c61d48fcb1650jalm.9 {"val":0,"ack":true,"ts":1604486507253,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505496}
2020-11-04 10:41:47.261 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Received data: {"1":true,"9":0,"38":"off"}
2020-11-04 10:41:47.263 - debug: tuya.0 (25936) connected set to true
2020-11-04 10:41:47.264 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.online {"val":true,"ack":true,"ts":1604486507254,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486507254}
2020-11-04 10:41:47.269 - debug: tuya.0 (25936) 20401777500291cfef59: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=598c91e8fdedb3b9
2020-11-04 10:41:47.269 - info: tuya.0 (25936) 20401777500291cfef59: None of the discovered devices matches :-(
2020-11-04 10:41:47.270 - debug: tuya.0 (25936) stateChange tuya.0.info.connection {"val":true,"ack":true,"ts":1604486507254,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486507254}
2020-11-04 10:41:47.273 - debug: tuya.0 (25936) stateChange tuya.0.bf369c61d48fcb1650jalm.38 {"val":"0","ack":true,"ts":1604486507264,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505522}
2020-11-04 10:41:47.275 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.1 {"val":true,"ack":true,"ts":1604486507268,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505450}
2020-11-04 10:41:47.276 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.9 {"val":0,"ack":true,"ts":1604486507268,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505459}
2020-11-04 10:41:47.279 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.38 {"val":"0","ack":true,"ts":1604486507268,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505460}
2020-11-04 10:41:52.432 - debug: tuya.0 (25936) Message: {"command":"stopProxy","message":null,"from":"system.adapter.admin.0","callback":{"message":null,"id":963,"ack":false,"time":1604486512429},"_id":7555503}
2020-11-04 10:41:52.435 - debug: tuya.0 (25936) sendTo "stopProxy" to system.adapter.admin.0 from system.adapter.tuya.0
2020-11-04 10:41:59.124 - info: host.raspberrypi "system.adapter.tuya.0" disabled
2020-11-04 10:41:59.135 - info: host.raspberrypi stopInstance system.adapter.tuya.0 (force=false, process=true)
2020-11-04 10:41:59.139 - info: host.raspberrypi stopInstance system.adapter.tuya.0 send kill signal
2020-11-04 10:41:59.148 - info: tuya.0 (25936) Got terminate signal TERMINATE_YOURSELF
2020-11-04 10:41:59.154 - debug: tuya.0 (25936) bf78223d12332bd03bn4b5: Disconnected from device
2020-11-04 10:41:59.161 - debug: tuya.0 (25936) connected set to false
2020-11-04 10:41:59.162 - debug: tuya.0 (25936) stateChange tuya.0.info.connection {"val":false,"ack":true,"ts":1604486519156,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486519156}
2020-11-04 10:41:59.167 - debug: tuya.0 (25936) stateChange tuya.0.bf78223d12332bd03bn4b5.online {"val":false,"ack":true,"ts":1604486519158,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486519158}
2020-11-04 10:42:02.148 - info: host.raspberrypi "system.adapter.tuya.0" enabled
2020-11-04 10:42:02.149 - info: host.raspberrypi stopInstance system.adapter.tuya.0 (force=false, process=true)
2020-11-04 10:42:02.150 - info: host.raspberrypi stopInstance system.adapter.tuya.0 send kill signal
2020-11-04 10:42:02.154 - info: tuya.0 (25936) Got terminate signal TERMINATE_YOURSELF
2020-11-04 10:42:02.157 - info: tuya.0 (25936) terminating
2020-11-04 10:42:02.158 - debug: tuya.0 (25936) Plugin sentry destroyed
2020-11-04 10:42:02.159 - info: tuya.0 (25936) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
2020-11-04 10:42:02.690 - info: host.raspberrypi instance system.adapter.tuya.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
2020-11-04 10:42:09.692 - info: host.raspberrypi instance system.adapter.tuya.0 started with pid 25996
2020-11-04 10:42:10.795 - debug: tuya.0 (25996) Redis Objects: Use Redis connection: 127.0.0.1:9001
2020-11-04 10:42:10.829 - debug: tuya.0 (25996) Objects client ready ... initialize now
2020-11-04 10:42:10.833 - debug: tuya.0 (25996) Objects create System PubSub Client
2020-11-04 10:42:10.835 - debug: tuya.0 (25996) Objects create User PubSub Client
2020-11-04 10:42:10.836 - debug: tuya.0 (25996) Objects client initialize lua scripts
2020-11-04 10:42:10.857 - debug: tuya.0 (25996) Objects connected to redis: 127.0.0.1:9001
2020-11-04 10:42:10.864 - debug: tuya.0 (25996) objectDB connected
2020-11-04 10:42:10.866 - debug: tuya.0 (25996) Redis States: Use Redis connection: 127.0.0.1:9000
2020-11-04 10:42:10.874 - debug: tuya.0 (25996) States create User PubSub Client
2020-11-04 10:42:10.877 - debug: tuya.0 (25996) States create System PubSub Client
2020-11-04 10:42:10.886 - debug: tuya.0 (25996) States connected to redis: 127.0.0.1:9000
2020-11-04 10:42:10.887 - debug: tuya.0 (25996) statesDB connected
2020-11-04 10:42:11.264 - debug: tuya.0 (25996) Plugin sentry Initialize Plugin (enabled=true)
2020-11-04 10:42:11.463 - info: tuya.0 (25996) starting. Version 3.4.0 in /opt/iobroker/node_modules/iobroker.tuya, node: v12.19.0, js-controller: 3.1.6
2020-11-04 10:42:11.515 - debug: tuya.0 (25996) init 4 known devices
2020-11-04 10:42:11.519 - debug: tuya.0 (25996) 20401777500291cf4c2e: Create device objects if not exist
2020-11-04 10:42:11.522 - debug: tuya.0 (25996) 20401777500291cf4c2e: Objects [{"type":"number","states":{"0":"pir"},"read":true,"write":false,"name":"pir_state","id":1,"role":"value"},{"type":"number","states":{"0":"low","1":"middle","2":"high"},"read":true,"write":false,"name":"battery_state","id":3,"role":"value"}]
2020-11-04 10:42:11.526 - debug: tuya.0 (25996) 20401777500291cfef59: Create device objects if not exist
2020-11-04 10:42:11.527 - debug: tuya.0 (25996) 20401777500291cfef59: Objects [{"type":"number","states":{"0":"pir"},"read":true,"write":false,"name":"pir_state","id":1,"role":"value"},{"type":"number","states":{"0":"low","1":"middle","2":"high"},"read":true,"write":false,"name":"battery_state","id":3,"role":"value"}]
2020-11-04 10:42:11.529 - debug: tuya.0 (25996) bf78223d12332bd03bn4b5: Create device objects if not exist
2020-11-04 10:42:11.530 - debug: tuya.0 (25996) bf78223d12332bd03bn4b5: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_1","id":1,"role":"switch"},{"type":"number","unit":"s","max":86400,"read":true,"write":true,"name":"countdown_1","id":9,"role":"level"},{"type":"number","states":{"0":"off","1":"on","2":"memory"},"read":true,"write":true,"name":"relay_status","id":38,"role":"level"}]
2020-11-04 10:42:11.531 - debug: tuya.0 (25996) bf78223d12332bd03bn4b5 Register onChange for 1
2020-11-04 10:42:11.531 - debug: tuya.0 (25996) bf78223d12332bd03bn4b5 Register onChange for 9
2020-11-04 10:42:11.532 - debug: tuya.0 (25996) bf78223d12332bd03bn4b5 Register onChange for 38
2020-11-04 10:42:11.533 - debug: tuya.0 (25996) bf369c61d48fcb1650jalm: Create device objects if not exist
2020-11-04 10:42:11.534 - debug: tuya.0 (25996) bf369c61d48fcb1650jalm: Objects [{"type":"boolean","read":true,"write":true,"name":"switch_1","id":1,"role":"switch"},{"type":"number","unit":"s","max":86400,"read":true,"write":true,"name":"countdown_1","id":9,"role":"level"},{"type":"number","states":{"0":"off","1":"on","2":"memory"},"read":true,"write":true,"name":"relay_status","id":38,"role":"level"}]
2020-11-04 10:42:11.534 - debug: tuya.0 (25996) bf369c61d48fcb1650jalm Register onChange for 1
2020-11-04 10:42:11.535 - debug: tuya.0 (25996) bf369c61d48fcb1650jalm Register onChange for 9
2020-11-04 10:42:11.535 - debug: tuya.0 (25996) bf369c61d48fcb1650jalm Register onChange for 38
2020-11-04 10:42:11.552 - debug: tuya.0 (25996) connected set to false
2020-11-04 10:42:11.642 - debug: tuya.0 (25996) bf369c61d48fcb1650jalm: Try to initialize encrypted device with received UDP messages (#IPs: 0): version=undefined, key=090e4c3b8840216c
2020-11-04 10:42:11.643 - info: tuya.0 (25996) bf369c61d48fcb1650jalm: None of the discovered devices matches :-(
2020-11-04 10:42:11.691 - debug: tuya.0 (25996) 20401777500291cfef59: Try to initialize encrypted device with received UDP messages (#IPs: 0): version=undefined, key=598c91e8fdedb3b9
2020-11-04 10:42:11.692 - info: tuya.0 (25996) 20401777500291cfef59: None of the discovered devices matches :-(
2020-11-04 10:42:11.697 - debug: tuya.0 (25996) 20401777500291cf4c2e: Try to initialize encrypted device with received UDP messages (#IPs: 0): version=undefined, key=be25ae53c16141dd
2020-11-04 10:42:11.698 - info: tuya.0 (25996) 20401777500291cf4c2e: None of the discovered devices matches :-(
2020-11-04 10:42:11.703 - info: tuya.0 (25996) bf78223d12332bd03bn4b5 Init with IP=192.168.188.50, Key=a545737c40f9f3c9, Version=3.3
2020-11-04 10:42:11.708 - info: tuya.0 (25996) Existing devices initialized
2020-11-04 10:42:11.715 - info: tuya.0 (25996) Listen for local Tuya devices on port 6666
2020-11-04 10:42:11.715 - info: tuya.0 (25996) Listen for encrypted local Tuya devices on port 6667
2020-11-04 10:42:11.719 - debug: tuya.0 (25996) bf78223d12332bd03bn4b5: Connected to device
2020-11-04 10:42:11.735 - debug: tuya.0 (25996) bf78223d12332bd03bn4b5: Received data: {"1":true,"9":0,"38":"off"}
2020-11-04 10:42:11.739 - debug: tuya.0 (25996) connected set to true
2020-11-04 10:42:11.743 - debug: tuya.0 (25996) stateChange tuya.0.bf78223d12332bd03bn4b5.online {"val":true,"ack":true,"ts":1604486531727,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486531727}
2020-11-04 10:42:11.744 - debug: tuya.0 (25996) stateChange tuya.0.info.connection {"val":true,"ack":true,"ts":1604486531728,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486531728}
2020-11-04 10:42:11.747 - debug: tuya.0 (25996) stateChange tuya.0.bf78223d12332bd03bn4b5.1 {"val":true,"ack":true,"ts":1604486531740,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505450}
2020-11-04 10:42:11.750 - debug: tuya.0 (25996) stateChange tuya.0.bf78223d12332bd03bn4b5.9 {"val":0,"ack":true,"ts":1604486531740,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505459}
2020-11-04 10:42:11.750 - debug: tuya.0 (25996) stateChange tuya.0.bf78223d12332bd03bn4b5.38 {"val":"0","ack":true,"ts":1604486531740,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":1604486505460}
2020-11-04 10:42:15.452 - debug: tuya.0 (25996) Discovered encrypted device and store for later usage: 192.168.188.50:49153 - 000055aa00000000000000130000009c00000000d09766676f3369eb10b5e9f132fd802a0eb593d996bc4bf516fce23a5108089cd59ad1a8bb27785f14a64478dca26560eaa079dbb6e8e20de4a799bdb9a4ec9659bd59981c26d5958da187e096d937c840b1058c6d8cd9456f3f7e28eed4932b8b61a5bd8b93767084c7558115779cb63f47dd1ab96db69d5ef593733b4326ed8494c932e298de410f638ed8bf10587a3e5c3ca70000aa55
2020-11-04 10:42:15.454 - debug: tuya.0 (25996) 20401777500291cf4c2e: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=be25ae53c16141dd
2020-11-04 10:42:15.456 - info: tuya.0 (25996) 20401777500291cf4c2e: None of the discovered devices matches :-(
2020-11-04 10:42:15.457 - debug: tuya.0 (25996) 20401777500291cfef59: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=598c91e8fdedb3b9
2020-11-04 10:42:15.459 - info: tuya.0 (25996) 20401777500291cfef59: None of the discovered devices matches :-(
2020-11-04 10:42:15.459 - debug: tuya.0 (25996) bf369c61d48fcb1650jalm: Try to initialize encrypted device with received UDP messages (#IPs: 1): version=undefined, key=090e4c3b8840216c
2020-11-04 10:42:15.461 - info: tuya.0 (25996) bf369c61d48fcb1650jalm: None of the discovered devices matches :-(

@Apollon77
Copy link
Owner

Wo kommt das 3.1 vs 3.3her? Das system erkennt das an sich. Verschlüsselte Kommunikation ist 3.3 (by definition) :-) ... es sei denn irgendein device ist mal wieder ganz anders implementiert

@elzershark
Copy link

elzershark commented Nov 4, 2020

Die genaue Funktion kenne ich ja nicht, wie der Adapter die Daten bekommt. Ich gehe davon aus, spekuliere,. das die Bewegungsmelder Geräte sind, die "eigendlich" ganz normal funktionieren. Da sie aber nicht "online" sind, beim integrieren in den Adapter, wenn man die Sachen macht mit dem QR-Code, das dann einfach die IP nicht übermittelt wird. Somit auch nicht die Version. Alle Geräte die funktionieren, sind alles Version 3.1. Die nicht funktionieren sind 3.3. Der Bewegungsmelder funktioniert nicht, wenn man auf 3.3 stellt. Installiert man jetzt den Adapter über Github, gehen alle Geräte. 3.3 halt, die vorher nicht gingen. Die vorher gingen sind alle 3.1.. wie die Bewegungsmelder.. halt aber ohne IP und Version. Hoffe man versteht das 😁

@elzershark
Copy link

elzershark commented Nov 4, 2020

Grad mal so getestet. Reagiert genau so wie beim Bewegungsmelder. Ich habe eine Steckdose Stromlos gemacht. Diese Steckdose funktionierte "vorher" schon immer über Tuya Adapter. Tuya Adapter gelöscht. QR-Code gemacht. Alle Geräte funktionieren. alle mit 3.1 und die "neuen" mit 3.3 funktionieren. Das offline Gerät, also die Steckdose die 3.1 ist, wird ohne IP und Version integriert.
Ich denke, die Bewegungsmelder müssen 1x ausgelöst werden. So das sie im Router (FritzBox) 1x online kommen. Danach 1x den Tuya Adapter neu starten. Danach gehen alle Geräte.

@elzershark
Copy link

elzershark commented Nov 4, 2020

Ok. Also offline Geräte, Batteriebetriebene, funzen nur mit nachträglichem eintragen der IP + Version 3.1

@derAlff
Copy link

derAlff commented May 28, 2021

@elzershark funktioniert das nun bei dir mit den Versionen?
Habe nun keine Leuchtmittel mehr, die sich per Tasmota-Convert flashen lassen (und das Bad ohne Licht ist doof). Also habe ich mich heute nochmal an den Tuya Adapter gewagt. Ergebnis: Gerät wird gefunden (die Glühbirne aus meinem Post ganz oben) allerdings ist die MAC-Adresse falsch, die Version nicht gesetzt und auch die IP ist nicht vorhanden (in der RAW Ansicht). Habe dann versucht, mit manuellem bearbeiten das Leuchtmittel zu integrieren -> ohne Erfolg.
Ich weiß nicht, ob da die Version eine Rolle spielt, da es ja vor X Monaten funktionierte. Allerdings habe ich die Vermutung, dass die Subnetzmaske hier mit herein spielt, da ich ein 23er Netz (255.255.254.0) betreibe. @Apollon77 kann das sein?

@elzershark
Copy link

elzershark commented May 28, 2021

@necotec Also bis jetzt funktioniert alles besten. Hab noch keine Geräte "neuerdings" gehabt, die Probleme machten. Ich richte die Geräte mit Android smartlife version 3.12.6. Tuya Adapter 3.6.2. Sollte aber auch mit der stable 3.5.9 ohne Probleme laufen.

@derAlff
Copy link

derAlff commented May 28, 2021

@elzershark danke für die Info. Ich versuche dann morgen nochmal mein Glück. Allerdings habe ich tatsächlich die Vermutung, dass die Subnetzmaske da ein Wörtchen mitredet.

Notfalls muss ich mir dann doch mal anschauen, wie die Adapter programmiert werden. Habe davon noch nicht wirklich Ahnung... Eventuell finde ich ja dann noch etwas 😅

Edit: Der Adapter ist im Übrigen grün...

@derAlff
Copy link

derAlff commented May 31, 2021

So, nach ein paar Tagen hin und her funktioniert es nun. Warum? Ehrlich gesagt, keine Ahnung. Hatte nun zum Schluss die Tuya App in Version 3.12.6........ die konnte keine Geräte hinzufügen (Netzwerkfehler) aber das Gerät war dennoch online. Nun kann ich auch schalten und walten wie ich will 😎

Das nur als Info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants