[REQUEST] Plugin for Tuya
Moderator: leecollings
-
- Posts: 53
- Joined: Saturday 24 September 2016 18:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
For the moment I do not find bugs but I'll try to make some more tests with scenes etc...
For the 1/2/3 On/Off yes I think It should be usefull as in domoticz Master/slave does not work (the switchs on DZ changes but the sockets do not activate/desactivate). If I use group mode it works but it's not clean. In fact this multiplug is quite usefull for the price but there is no "keep USB ON or Off" in the app. Each time you switch off in the app you switch everything, it should be better to be able to switch only the 220v sockets without switching USB. As I can see you could do it using your code.
Really thanks for all that work, I was going to wire another model of esp, or rewriting the code of the original one but I would have lost the Tuya apps fonctions. Your work is really great to avoid the DIY mods on a 220V hardware (that should be risky)
Have a good rest
Eric
For the 1/2/3 On/Off yes I think It should be usefull as in domoticz Master/slave does not work (the switchs on DZ changes but the sockets do not activate/desactivate). If I use group mode it works but it's not clean. In fact this multiplug is quite usefull for the price but there is no "keep USB ON or Off" in the app. Each time you switch off in the app you switch everything, it should be better to be able to switch only the 220v sockets without switching USB. As I can see you could do it using your code.
Really thanks for all that work, I was going to wire another model of esp, or rewriting the code of the original one but I would have lost the Tuya apps fonctions. Your work is really great to avoid the DIY mods on a 220V hardware (that should be risky)
Have a good rest
Eric
-
- Posts: 52
- Joined: Monday 10 September 2018 23:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
I put a new version on github where i removed hard coded stuff.
Do not try to use domoticz groups with the multiplug version, it may result in anormal behavior.
When i will have time, i will try to provide groups inside the plugin.
I guess 2 optional and configurable groups is enough, 1 for outlet and 1 for usb. what do you think?
Do not try to use domoticz groups with the multiplug version, it may result in anormal behavior.
When i will have time, i will try to provide groups inside the plugin.
I guess 2 optional and configurable groups is enough, 1 for outlet and 1 for usb. what do you think?
-
- Posts: 5
- Joined: Monday 08 January 2018 12:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
How can you add slaves plug ??
frenchyyii tu es français ? Peux-tu m'aider ?
frenchyyii tu es français ? Peux-tu m'aider ?
-
- Posts: 52
- Joined: Monday 10 September 2018 23:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Once again I put a new version for multiplug.
I guess now the domoticz's group function can be used.
Like before, I cannot test it so let me know for bugs.
Seidel, you should be able to use slave for single and multi plug like for other devices.
I guess now the domoticz's group function can be used.
Like before, I cannot test it so let me know for bugs.
Seidel, you should be able to use slave for single and multi plug like for other devices.
-
- Posts: 5
- Joined: Monday 08 January 2018 12:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Code: Select all
sudo python3 get_dps.py 192.168.0.15 DEVID
Code: Select all
Plug State Information:
{'devId': 'xxxxxxxxxxxxxxx', 'dps': {'1': True, '2': 0}}
Plug DPS List:
1
Why not here ?
-
- Posts: 5
- Joined: Monday 08 January 2018 12:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Code: Select all
2018-11-06 20:03:34.024 (Tuya SmartPlug) Pushing 'onHeartbeatCallback' on to queue
2018-11-06 20:03:34.041 (Tuya SmartPlug) Processing 'onHeartbeatCallback' message
2018-11-06 20:03:34.041 (Tuya SmartPlug) Calling message handler 'onHeartbeat'.
2018-11-06 20:03:34.043 (Tuya SmartPlug) Pushing 'WriteDirective' on to queue
2018-11-06 20:03:34.043 (Tuya SmartPlug) Processing 'WriteDirective' message
2018-11-06 20:03:34.043 (Tuya SmartPlug) Sending 86 bytes of data
2018-11-06 20:03:34.043 (Tuya SmartPlug) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 46 7b 22 67 77 ..U�...........F{"gw
2018-11-06 20:03:34.043 (Tuya SmartPlug) 49 64 22 3a 22 30 32 37 35 30 38 30 31 38 34 66 33 65 62 35 Id":"0275080184f3eb5
2018-11-06 20:03:34.043 (Tuya SmartPlug) 32 34 35 64 33 22 2c 22 64 65 76 49 64 22 3a 22 30 32 37 35 245d3","devId":"0275
2018-11-06 20:03:34.043 (Tuya SmartPlug) 30 38 30 31 38 34 66 33 65 62 35 32 34 35 64 33 22 7d 00 00 080184f3eb5245d3"}..
2018-11-06 20:03:34.044 (Tuya SmartPlug) 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....�U
2018-11-06 20:03:34.048 (Tuya SmartPlug) Pushing 'ReadEvent' on to queue
2018-11-06 20:03:34.094 (Tuya SmartPlug) Processing 'ReadEvent' message
2018-11-06 20:03:34.094 (Tuya SmartPlug) Received 83 bytes of data
2018-11-06 20:03:34.094 (Tuya SmartPlug) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 43 00 00 00 00 ..U�...........C....
2018-11-06 20:03:34.095 (Tuya SmartPlug) 7b 22 64 65 76 49 64 22 3a 22 30 32 37 35 30 38 30 31 38 34 {"devId":"0275080184
2018-11-06 20:03:34.095 (Tuya SmartPlug) 66 33 65 62 35 32 34 35 64 33 22 2c 22 64 70 73 22 3a 7b 22 f3eb5245d3","dps":{"
2018-11-06 20:03:34.095 (Tuya SmartPlug) 31 22 3a 74 72 75 65 2c 22 32 22 3a 30 7d 7d 4c 3d af 89 00 1":true,"2":0}}L=��.
2018-11-06 20:03:34.095 (Tuya SmartPlug) 00 aa 55 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .�U
2018-11-06 20:03:34.095 (Tuya SmartPlug) Pushing 'onMessageCallback' on to queue
2018-11-06 20:03:34.095 (Tuya SmartPlug) Processing 'onMessageCallback' message
2018-11-06 20:03:34.095 (Tuya SmartPlug) Calling message handler 'onMessage'.
2018-11-06 20:03:34.096 (Tuya SmartPlug) onMessage called: 192.168.0.15:6668 b'\x00\x00U\xaa\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00C\x00\x00\x00\x00{"devId":"0275080184f3eb5245d3","dps":{"1":true,"2":0}}L=\xaf\x89\x00\x00\xaaU'
2018-11-06 20:03:34.096 Error: (Tuya SmartPlug) 'onMessage' failed 'KeyError'.
2018-11-06 20:03:34.096 Error: (Tuya SmartPlug) ----> Line 306 in '/home/pi/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin/plugin.py', function onMessage
2018-11-06 20:03:34.096 Error: (Tuya SmartPlug) ----> Line 229 in '/home/pi/domoticz/plugins/Domoticz-Tuya-SmartPlug-Plugin/plugin.py', function onMessage
-
- Posts: 52
- Joined: Monday 10 September 2018 23:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Seidel, can you send me a link to have the description of your devices.
The log and get_dps.py script show that you have a single plug.
Are you using the single plug version of the plugin or the multiplug version?
How many physical plugs do you have?
Can you describe a bit more what you want to achieve?
The log and get_dps.py script show that you have a single plug.
Are you using the single plug version of the plugin or the multiplug version?
How many physical plugs do you have?
Can you describe a bit more what you want to achieve?
-
- Posts: 67
- Joined: Saturday 19 November 2016 17:02
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Hi,
I have one of those multiplug devices that works with the Tuya app. This one has 4 plugs and a group of USBs.
My Domoticz runs on a Synology. I installed the plugin following the procedure and modifying the necessary paths accordingly. pycrypto can not be installed in Synology but I have installed pycryptodome. The plugin is apparently starting but only one device is created for the full device. If I turn debug on I get a long list of messages but no errors; however after some minutes domoticz just hangs.
Is there anyone that is running this plugin into a synology box that can help me?
Thx!
I have one of those multiplug devices that works with the Tuya app. This one has 4 plugs and a group of USBs.
My Domoticz runs on a Synology. I installed the plugin following the procedure and modifying the necessary paths accordingly. pycrypto can not be installed in Synology but I have installed pycryptodome. The plugin is apparently starting but only one device is created for the full device. If I turn debug on I get a long list of messages but no errors; however after some minutes domoticz just hangs.
Is there anyone that is running this plugin into a synology box that can help me?
Thx!
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: [REQUEST] Plugin for Tuya
hello!
i have a new smart plug (4 plugs and 4 usb) and im trying to configure this plugin.
In firs place sorry for my poor english, is not my natural languaje.
I install this plugin:
https://github.com/tixi/Domoticz-Tuya-SmartPlug-Plugin
is this the correct? or this is for single plug and there is another for multiplug?
thanks!
i have a new smart plug (4 plugs and 4 usb) and im trying to configure this plugin.
In firs place sorry for my poor english, is not my natural languaje.
I install this plugin:
https://github.com/tixi/Domoticz-Tuya-SmartPlug-Plugin
is this the correct? or this is for single plug and there is another for multiplug?
thanks!
-
- Posts: 52
- Joined: Monday 10 September 2018 23:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
For multiplug, the version to use is:
https://github.com/tixi/Domoticz-Tuya-S ... /multiplug
But have in mind that this version is still in test mostly because I do not have such a kind of plug.
Bug report are welcome.
For bug report, please provide:
- the domoticz version,
- the platform you are using (rpi...) If possible an url to the description of the product if it is not rpi (I need the processor description and the amount of ram)
- an url to the plug (amazon...)
- description of the problem
- logs with debug mode
https://github.com/tixi/Domoticz-Tuya-S ... /multiplug
But have in mind that this version is still in test mostly because I do not have such a kind of plug.
Bug report are welcome.
For bug report, please provide:
- the domoticz version,
- the platform you are using (rpi...) If possible an url to the description of the product if it is not rpi (I need the processor description and the amount of ram)
- an url to the plug (amazon...)
- description of the problem
- logs with debug mode
-
- Posts: 52
- Joined: Monday 10 September 2018 23:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Can you send the description of the synology box you are using? and the domoticz version?manutremo wrote: ↑Thursday 08 November 2018 8:37 Hi,
I have one of those multiplug devices that works with the Tuya app. This one has 4 plugs and a group of USBs.
My Domoticz runs on a Synology. I installed the plugin following the procedure and modifying the necessary paths accordingly. pycrypto can not be installed in Synology but I have installed pycryptodome. The plugin is apparently starting but only one device is created for the full device. If I turn debug on I get a long list of messages but no errors; however after some minutes domoticz just hangs.
Is there anyone that is running this plugin into a synology box that can help me?
Thx!
You can try to use pyaes:
https://github.com/ricmoo/pyaes
Instead of pycrypto since the pytuya library is also defined for it.
If the problem still exist, can you try to change the value of __HB_BASE_FREQ to 6 inside the plugin
-
- Posts: 67
- Joined: Saturday 19 November 2016 17:02
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
My synology is a DS1513+. Domoticz is v4.10078.
I have unistalled pycrytodome and installed pyaes. No I get error:
In synology, python modules are installed in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages. Now there is no Crypto folder here of course since no pyCrypto nor pyCryptodome are installed.
Should I create a symbolic link in the plugin folder like:
or
I have unistalled pycrytodome and installed pyaes. No I get error:
Code: Select all
2018-11-09 15:19:36.614 Error: (tixi_tuya_smartplug_plugin) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/Domoticz-Tuya-SmartPlug-Plugin-multiplug/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2018-11-09 15:19:36.614 Error: (Regleta) Module Import failed, exception: 'ImportError'
2018-11-09 15:19:36.614 Error: (Regleta) Module Import failed: ' Name: pyaes'
2018-11-09 15:19:36.614 Error: (Regleta) Error Line details not available.
Should I create a symbolic link in the plugin folder like:
Code: Select all
ln -s /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/pyaes Crypto
Code: Select all
ln -s /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/pyaes pyaes
-
- Posts: 67
- Joined: Saturday 19 November 2016 17:02
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Ok I respond to myself - I managed to make it work installing pyaes and then doing
in the plugin folder.
However I don't think this was the cause of my problems. I also discovered as part of the investigation that my localKey was wrong ... so it may also work with pycryptodome... I just didn't try, if it works do not touch it.
Now it is working perfectly with this device:
https://www.amazon.es/gp/product/B078W2 ... TF8&psc=1
Great work, many thanks!
Code: Select all
ln -s /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/pyaes pyaes
However I don't think this was the cause of my problems. I also discovered as part of the investigation that my localKey was wrong ... so it may also work with pycryptodome... I just didn't try, if it works do not touch it.
Now it is working perfectly with this device:
https://www.amazon.es/gp/product/B078W2 ... TF8&psc=1
Great work, many thanks!
-
- Posts: 15
- Joined: Wednesday 13 December 2017 10:12
- Target OS: Linux
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Hi,
I've a tuya bulb.
I've installed the Smart-Bulb plugin and it does not give me errors.
I've added the lamp switch but i cannot power on and off the bulb.
If i power on and off the bulb via the tuya app it works well and the status on the domoticz switch is updated.
Also,after some minutes, Domoticz stop working and i need to restart it.
Can you help me to solve the problem?
Regards.
vrega
I've a tuya bulb.
I've installed the Smart-Bulb plugin and it does not give me errors.
I've added the lamp switch but i cannot power on and off the bulb.
If i power on and off the bulb via the tuya app it works well and the status on the domoticz switch is updated.
Also,after some minutes, Domoticz stop working and i need to restart it.
Can you help me to solve the problem?
Regards.
vrega
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: [REQUEST] Plugin for Tuya
EDIT my message:
I delete the previous installal and make a new git clone -b with the branch of multiplug.
Now im testing.
EDIT AGAIN:
Now i have the 4 switches in my domoticz. and if i turn on or off in the tuya android app, the domoticz update the status of the switches.
But if i change the status in domoticz (power on, or power off) nothing ocurrs. I think the problem is mine, maybe i forget something?
For bug report:
- the domoticz version: beta: 4.10198
- the platform you are using: Raspberry pi3b+
- an url to the plug: https://es.aliexpress.com/item/Cable-de ... 86078.html
- description of the problem: i push the power on in a switch and nothing occurs
- logs with debug mode
thanks
I delete the previous installal and make a new git clone -b with the branch of multiplug.
Now im testing.
EDIT AGAIN:
Now i have the 4 switches in my domoticz. and if i turn on or off in the tuya android app, the domoticz update the status of the switches.
But if i change the status in domoticz (power on, or power off) nothing ocurrs. I think the problem is mine, maybe i forget something?
For bug report:
- the domoticz version: beta: 4.10198
- the platform you are using: Raspberry pi3b+
- an url to the plug: https://es.aliexpress.com/item/Cable-de ... 86078.html
- description of the problem: i push the power on in a switch and nothing occurs
- logs with debug mode
Code: Select all
2018-11-11 22:00:33.860 Status: User: Admin initiated a switch command (248/Fri_Regleta - Tuya SmartPlug #7/On)
2018-11-11 22:00:35.792 (Fri_Regleta) 31 22 3a 74 72 75 65 2c 22 32 22 3a 74 72 75 65 2c 22 33 22 1":true,"2":true,"3"
2018-11-11 22:00:35.792 (Fri_Regleta) 3a 74 72 75 65 2c 22 34 22 3a 74 72 75 65 2c 22 37 22 3a 66 :true,"4":true,"7":f
2018-11-11 22:00:35.792 (Fri_Regleta) 61 6c 73 65 2c 22 31 30 31 22 3a 30 2c 22 31 30 32 22 3a 30 alse,"101":0,"102":0
2018-11-11 22:00:35.792 (Fri_Regleta) 2c 22 31 30 33 22 3a 30 2c 22 31 30 34 22 3a 30 2c 22 31 30 ,"103":0,"104":0,"10
2018-11-11 22:00:35.792 (Fri_Regleta) 35 22 3a 30 7d 7d 60 bc 99 33 00 00 aa 55 .. .. .. .. .. .. 5":0}}`��3..�U
2018-11-11 22:00:35.793 (Fri_Regleta) Pushing 'onMessageCallback' on to queue
2018-11-11 22:00:35.793 (Fri_Regleta) Processing 'onMessageCallback' message
2018-11-11 22:00:35.793 (Fri_Regleta) Calling message handler 'onMessage'.
2018-11-11 22:00:35.793 (Fri_Regleta) onMessage called: 192.168.1.85:6668 b'\x00\x00U\xaa\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x00\x00\x00\x00{"devId":"17007751600194afc4b0","dps":{"1":true,"2":true,"3":true,"4":true,"7":false,"101":0,"102":0,"103":0,"104":0,"105":0}}`\xbc\x993\x00\x00\xaaU'
2018-11-11 22:00:35.794 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:35.795 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:35.795 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:35.795 (Fri_Regleta) Sending 171 bytes of data
2018-11-11 22:00:35.795 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 07 00 00 00 9b 33 2e 31 35 ..U�...........�3.15
2018-11-11 22:00:35.795 (Fri_Regleta) 62 66 35 64 66 65 36 37 38 31 63 63 66 31 32 76 38 2b 6f 50 bf5dfe6781ccf12v8+oP
2018-11-11 22:00:35.795 (Fri_Regleta) 57 57 53 48 7a 77 46 4b 77 41 59 7a 65 72 35 6f 70 57 65 73 WWSHzwFKwAYzer5opWes
2018-11-11 22:00:35.795 (Fri_Regleta) 69 74 32 56 2b 45 56 5a 4e 36 58 33 59 72 6d 39 56 4a 57 68 it2V+EVZN6X3Yrm9VJWh
2018-11-11 22:00:35.795 (Fri_Regleta) 2b 72 61 58 54 4f 53 4d 79 4a 38 42 65 4d 4c 57 75 6b 4b 6e +raXTOSMyJ8BeMLWukKn
2018-11-11 22:00:35.795 (Fri_Regleta) 57 72 2f 37 39 33 61 79 6d 42 6a 6e 74 49 2f 4d 34 35 44 70 Wr/793aymBjntI/M45Dp
2018-11-11 22:00:35.795 (Fri_Regleta) 34 63 79 74 42 6d 55 6d 48 67 73 41 6e 77 6d 59 56 64 67 79 4cytBmUmHgsAnwmYVdgy
2018-11-11 22:00:35.795 (Fri_Regleta) 53 30 33 7a 37 51 49 41 68 75 71 75 35 73 6d 59 34 35 41 59 S03z7QIAhuqu5smY45AY
2018-11-11 22:00:35.795 (Fri_Regleta) 64 4b 2b 00 00 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. dK+......�U
2018-11-11 22:00:35.799 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:35.800 (Fri_Regleta) Sending 86 bytes of data
2018-11-11 22:00:35.800 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 46 7b 22 64 65 ..U�...........F{"de
2018-11-11 22:00:35.800 (Fri_Regleta) 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 30 31 39 34 vId":"17007751600194
2018-11-11 22:00:35.800 (Fri_Regleta) 61 66 63 34 62 30 22 2c 22 67 77 49 64 22 3a 22 31 37 30 30 afc4b0","gwId":"1700
2018-11-11 22:00:35.800 (Fri_Regleta) 37 37 35 31 36 30 30 31 39 34 61 66 63 34 62 30 22 7d 00 00 7751600194afc4b0"}..
2018-11-11 22:00:35.800 (Fri_Regleta) 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....�U
2018-11-11 22:00:35.998 (Fri_Regleta) Pushing 'ReadEvent' on to queue
2018-11-11 22:00:36.001 (Fri_Regleta) Processing 'ReadEvent' message
2018-11-11 22:00:36.001 (Fri_Regleta) Received 154 bytes of data
2018-11-11 22:00:36.001 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 8a 00 00 00 00 ..U�...........�....
2018-11-11 22:00:36.001 (Fri_Regleta) 7b 22 64 65 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 {"devId":"1700775160
2018-11-11 22:00:36.001 (Fri_Regleta) 30 31 39 34 61 66 63 34 62 30 22 2c 22 64 70 73 22 3a 7b 22 0194afc4b0","dps":{"
2018-11-11 22:00:36.001 (Fri_Regleta) 31 22 3a 74 72 75 65 2c 22 32 22 3a 74 72 75 65 2c 22 33 22 1":true,"2":true,"3"
2018-11-11 22:00:36.001 (Fri_Regleta) 3a 74 72 75 65 2c 22 34 22 3a 74 72 75 65 2c 22 37 22 3a 66 :true,"4":true,"7":f
2018-11-11 22:00:36.001 (Fri_Regleta) 61 6c 73 65 2c 22 31 30 31 22 3a 30 2c 22 31 30 32 22 3a 30 alse,"101":0,"102":0
2018-11-11 22:00:36.001 (Fri_Regleta) 2c 22 31 30 33 22 3a 30 2c 22 31 30 34 22 3a 30 2c 22 31 30 ,"103":0,"104":0,"10
2018-11-11 22:00:36.001 (Fri_Regleta) 35 22 3a 30 7d 7d 60 bc 99 33 00 00 aa 55 .. .. .. .. .. .. 5":0}}`��3..�U
2018-11-11 22:00:36.001 (Fri_Regleta) Pushing 'onMessageCallback' on to queue
2018-11-11 22:00:36.001 (Fri_Regleta) Processing 'onMessageCallback' message
2018-11-11 22:00:36.001 (Fri_Regleta) Calling message handler 'onMessage'.
2018-11-11 22:00:36.001 (Fri_Regleta) onMessage called: 192.168.1.85:6668 b'\x00\x00U\xaa\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x00\x00\x00\x00{"devId":"17007751600194afc4b0","dps":{"1":true,"2":true,"3":true,"4":true,"7":false,"101":0,"102":0,"103":0,"104":0,"105":0}}`\xbc\x993\x00\x00\xaaU'
2018-11-11 22:00:36.003 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:36.004 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:36.004 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:36.004 (Fri_Regleta) Sending 171 bytes of data
2018-11-11 22:00:36.004 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 07 00 00 00 9b 33 2e 31 36 ..U�...........�3.16
2018-11-11 22:00:36.004 (Fri_Regleta) 33 66 35 38 61 62 62 34 64 61 33 33 65 31 30 76 38 2b 6f 50 3f58abb4da33e10v8+oP
2018-11-11 22:00:36.004 (Fri_Regleta) 57 57 53 48 7a 77 46 4b 77 41 59 7a 65 72 35 6f 70 57 65 73 WWSHzwFKwAYzer5opWes
2018-11-11 22:00:36.004 (Fri_Regleta) 69 74 32 56 2b 45 56 5a 4e 36 58 33 59 72 6d 39 56 4a 57 68 it2V+EVZN6X3Yrm9VJWh
2018-11-11 22:00:36.004 (Fri_Regleta) 2b 72 61 58 54 4f 53 4d 79 4a 38 42 65 4d 4c 57 75 6b 4b 6e +raXTOSMyJ8BeMLWukKn
2018-11-11 22:00:36.004 (Fri_Regleta) 57 72 2f 37 39 33 61 79 6d 42 6a 6e 74 49 2f 4d 34 35 44 70 Wr/793aymBjntI/M45Dp
2018-11-11 22:00:36.004 (Fri_Regleta) 34 63 79 74 42 6d 55 6d 48 67 73 41 6e 77 6d 59 56 64 67 79 4cytBmUmHgsAnwmYVdgy
2018-11-11 22:00:36.004 (Fri_Regleta) 53 32 42 6d 41 79 57 6c 4a 7a 56 65 51 5a 65 2b 76 63 6c 4d S2BmAyWlJzVeQZe+vclM
2018-11-11 22:00:36.004 (Fri_Regleta) 35 4e 30 00 00 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. 5N0......�U
2018-11-11 22:00:36.005 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:36.005 (Fri_Regleta) Sending 86 bytes of data
2018-11-11 22:00:36.005 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 46 7b 22 64 65 ..U�...........F{"de
2018-11-11 22:00:36.005 (Fri_Regleta) 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 30 31 39 34 vId":"17007751600194
2018-11-11 22:00:36.005 (Fri_Regleta) 61 66 63 34 62 30 22 2c 22 67 77 49 64 22 3a 22 31 37 30 30 afc4b0","gwId":"1700
2018-11-11 22:00:36.005 (Fri_Regleta) 37 37 35 31 36 30 30 31 39 34 61 66 63 34 62 30 22 7d 00 00 7751600194afc4b0"}..
2018-11-11 22:00:36.005 (Fri_Regleta) 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....�U
2018-11-11 22:00:36.032 (Fri_Regleta) Pushing 'ReadEvent' on to queue
2018-11-11 22:00:36.055 (Fri_Regleta) Processing 'ReadEvent' message
2018-11-11 22:00:36.055 (Fri_Regleta) Received 154 bytes of data
2018-11-11 22:00:36.055 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 8a 00 00 00 00 ..U�...........�....
2018-11-11 22:00:36.055 (Fri_Regleta) 7b 22 64 65 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 {"devId":"1700775160
2018-11-11 22:00:36.055 (Fri_Regleta) 30 31 39 34 61 66 63 34 62 30 22 2c 22 64 70 73 22 3a 7b 22 0194afc4b0","dps":{"
2018-11-11 22:00:36.055 (Fri_Regleta) 31 22 3a 74 72 75 65 2c 22 32 22 3a 74 72 75 65 2c 22 33 22 1":true,"2":true,"3"
2018-11-11 22:00:36.056 (Fri_Regleta) 3a 74 72 75 65 2c 22 34 22 3a 74 72 75 65 2c 22 37 22 3a 66 :true,"4":true,"7":f
2018-11-11 22:00:36.056 (Fri_Regleta) 61 6c 73 65 2c 22 31 30 31 22 3a 30 2c 22 31 30 32 22 3a 30 alse,"101":0,"102":0
2018-11-11 22:00:36.056 (Fri_Regleta) 2c 22 31 30 33 22 3a 30 2c 22 31 30 34 22 3a 30 2c 22 31 30 ,"103":0,"104":0,"10
2018-11-11 22:00:36.056 (Fri_Regleta) 35 22 3a 30 7d 7d 60 bc 99 33 00 00 aa 55 .. .. .. .. .. .. 5":0}}`��3..�U
2018-11-11 22:00:36.056 (Fri_Regleta) Pushing 'onMessageCallback' on to queue
2018-11-11 22:00:36.056 (Fri_Regleta) Processing 'onMessageCallback' message
2018-11-11 22:00:36.056 (Fri_Regleta) Calling message handler 'onMessage'.
2018-11-11 22:00:36.056 (Fri_Regleta) onMessage called: 192.168.1.85:6668 b'\x00\x00U\xaa\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x00\x00\x00\x00{"devId":"17007751600194afc4b0","dps":{"1":true,"2":true,"3":true,"4":true,"7":false,"101":0,"102":0,"103":0,"104":0,"105":0}}`\xbc\x993\x00\x00\xaaU'
2018-11-11 22:00:36.057 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:36.058 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:36.058 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:36.058 (Fri_Regleta) Sending 171 bytes of data
2018-11-11 22:00:36.058 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 07 00 00 00 9b 33 2e 31 36 ..U�...........�3.16
2018-11-11 22:00:36.058 (Fri_Regleta) 33 66 35 38 61 62 62 34 64 61 33 33 65 31 30 76 38 2b 6f 50 3f58abb4da33e10v8+oP
2018-11-11 22:00:36.058 (Fri_Regleta) 57 57 53 48 7a 77 46 4b 77 41 59 7a 65 72 35 6f 70 57 65 73 WWSHzwFKwAYzer5opWes
2018-11-11 22:00:36.058 (Fri_Regleta) 69 74 32 56 2b 45 56 5a 4e 36 58 33 59 72 6d 39 56 4a 57 68 it2V+EVZN6X3Yrm9VJWh
2018-11-11 22:00:36.058 (Fri_Regleta) 2b 72 61 58 54 4f 53 4d 79 4a 38 42 65 4d 4c 57 75 6b 4b 6e +raXTOSMyJ8BeMLWukKn
2018-11-11 22:00:36.058 (Fri_Regleta) 57 72 2f 37 39 33 61 79 6d 42 6a 6e 74 49 2f 4d 34 35 44 70 Wr/793aymBjntI/M45Dp
2018-11-11 22:00:36.058 (Fri_Regleta) 34 63 79 74 42 6d 55 6d 48 67 73 41 6e 77 6d 59 56 64 67 79 4cytBmUmHgsAnwmYVdgy
2018-11-11 22:00:36.058 (Fri_Regleta) 53 32 42 6d 41 79 57 6c 4a 7a 56 65 51 5a 65 2b 76 63 6c 4d S2BmAyWlJzVeQZe+vclM
2018-11-11 22:00:36.058 (Fri_Regleta) 35 4e 30 00 00 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. 5N0......�U
2018-11-11 22:00:36.059 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:36.059 (Fri_Regleta) Sending 86 bytes of data
2018-11-11 22:00:36.059 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 46 7b 22 64 65 ..U�...........F{"de
2018-11-11 22:00:36.059 (Fri_Regleta) 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 30 31 39 34 vId":"17007751600194
2018-11-11 22:00:36.059 (Fri_Regleta) 61 66 63 34 62 30 22 2c 22 67 77 49 64 22 3a 22 31 37 30 30 afc4b0","gwId":"1700
2018-11-11 22:00:36.059 (Fri_Regleta) 37 37 35 31 36 30 30 31 39 34 61 66 63 34 62 30 22 7d 00 00 7751600194afc4b0"}..
2018-11-11 22:00:36.059 (Fri_Regleta) 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....�U
2018-11-11 22:00:36.226 (Fri_Regleta) Pushing 'ReadEvent' on to queue
2018-11-11 22:00:40.749 (Fri_Regleta) 61 6c 73 65 2c 22 31 30 31 22 3a 30 2c 22 31 30 32 22 3a 30 alse,"101":0,"102":0
2018-11-11 22:00:40.750 (Fri_Regleta) 2c 22 31 30 33 22 3a 30 2c 22 31 30 34 22 3a 30 2c 22 31 30 ,"103":0,"104":0,"10
2018-11-11 22:00:40.750 (Fri_Regleta) 35 22 3a 30 7d 7d 60 bc 99 33 00 00 aa 55 .. .. .. .. .. .. 5":0}}`��3..�U
2018-11-11 22:00:40.750 (Fri_Regleta) Pushing 'onMessageCallback' on to queue
2018-11-11 22:00:40.750 (Fri_Regleta) Processing 'onMessageCallback' message
2018-11-11 22:00:40.750 (Fri_Regleta) Calling message handler 'onMessage'.
2018-11-11 22:00:40.750 (Fri_Regleta) onMessage called: 192.168.1.85:6668 b'\x00\x00U\xaa\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x00\x00\x00\x00{"devId":"17007751600194afc4b0","dps":{"1":true,"2":true,"3":true,"4":true,"7":false,"101":0,"102":0,"103":0,"104":0,"105":0}}`\xbc\x993\x00\x00\xaaU'
2018-11-11 22:00:40.753 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:40.754 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:40.754 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:40.754 (Fri_Regleta) Sending 171 bytes of data
2018-11-11 22:00:40.754 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 07 00 00 00 9b 33 2e 31 66 ..U�...........�3.1f
2018-11-11 22:00:40.754 (Fri_Regleta) 63 63 65 38 35 34 66 35 34 66 38 30 63 33 32 76 38 2b 6f 50 cce854f54f80c32v8+oP
2018-11-11 22:00:40.754 (Fri_Regleta) 57 57 53 48 7a 77 46 4b 77 41 59 7a 65 72 35 6f 70 57 65 73 WWSHzwFKwAYzer5opWes
2018-11-11 22:00:40.754 (Fri_Regleta) 69 74 32 56 2b 45 56 5a 4e 36 58 33 59 72 6d 39 56 4a 57 68 it2V+EVZN6X3Yrm9VJWh
2018-11-11 22:00:40.754 (Fri_Regleta) 2b 72 61 58 54 4f 53 4d 79 4a 38 42 65 4d 4c 57 75 6b 4b 6e +raXTOSMyJ8BeMLWukKn
2018-11-11 22:00:40.755 (Fri_Regleta) 57 72 2f 37 39 33 61 79 6d 42 6a 6e 74 49 2f 4d 34 35 44 70 Wr/793aymBjntI/M45Dp
2018-11-11 22:00:40.755 (Fri_Regleta) 34 63 79 74 42 6d 55 6d 48 67 73 41 6e 77 6d 59 56 64 67 79 4cytBmUmHgsAnwmYVdgy
2018-11-11 22:00:40.755 (Fri_Regleta) 53 31 6d 69 55 57 76 66 2f 43 34 6f 58 4f 76 77 44 68 66 38 S1miUWvf/C4oXOvwDhf8
2018-11-11 22:00:40.755 (Fri_Regleta) 2b 4a 73 00 00 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. +Js......�U
2018-11-11 22:00:40.755 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:40.755 (Fri_Regleta) Sending 86 bytes of data
2018-11-11 22:00:40.755 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 46 7b 22 64 65 ..U�...........F{"de
2018-11-11 22:00:40.756 (Fri_Regleta) 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 30 31 39 34 vId":"17007751600194
2018-11-11 22:00:40.756 (Fri_Regleta) 61 66 63 34 62 30 22 2c 22 67 77 49 64 22 3a 22 31 37 30 30 afc4b0","gwId":"1700
2018-11-11 22:00:40.756 (Fri_Regleta) 37 37 35 31 36 30 30 31 39 34 61 66 63 34 62 30 22 7d 00 00 7751600194afc4b0"}..
2018-11-11 22:00:40.756 (Fri_Regleta) 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....�U
2018-11-11 22:00:40.977 (Fri_Regleta) Pushing 'ReadEvent' on to queue
2018-11-11 22:00:41.006 (Fri_Regleta) Processing 'ReadEvent' message
2018-11-11 22:00:41.007 (Fri_Regleta) Received 154 bytes of data
2018-11-11 22:00:41.007 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 8a 00 00 00 00 ..U�...........�....
2018-11-11 22:00:41.007 (Fri_Regleta) 7b 22 64 65 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 {"devId":"1700775160
2018-11-11 22:00:41.007 (Fri_Regleta) 30 31 39 34 61 66 63 34 62 30 22 2c 22 64 70 73 22 3a 7b 22 0194afc4b0","dps":{"
2018-11-11 22:00:41.007 (Fri_Regleta) 31 22 3a 74 72 75 65 2c 22 32 22 3a 74 72 75 65 2c 22 33 22 1":true,"2":true,"3"
2018-11-11 22:00:41.007 (Fri_Regleta) 3a 74 72 75 65 2c 22 34 22 3a 74 72 75 65 2c 22 37 22 3a 66 :true,"4":true,"7":f
2018-11-11 22:00:41.007 (Fri_Regleta) 61 6c 73 65 2c 22 31 30 31 22 3a 30 2c 22 31 30 32 22 3a 30 alse,"101":0,"102":0
2018-11-11 22:00:41.007 (Fri_Regleta) 2c 22 31 30 33 22 3a 30 2c 22 31 30 34 22 3a 30 2c 22 31 30 ,"103":0,"104":0,"10
2018-11-11 22:00:41.008 (Fri_Regleta) 35 22 3a 30 7d 7d 60 bc 99 33 00 00 aa 55 .. .. .. .. .. .. 5":0}}`��3..�U
2018-11-11 22:00:41.008 (Fri_Regleta) Pushing 'onMessageCallback' on to queue
2018-11-11 22:00:41.008 (Fri_Regleta) Processing 'onMessageCallback' message
2018-11-11 22:00:41.008 (Fri_Regleta) Calling message handler 'onMessage'.
2018-11-11 22:00:41.008 (Fri_Regleta) onMessage called: 192.168.1.85:6668 b'\x00\x00U\xaa\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x00\x00\x00\x00{"devId":"17007751600194afc4b0","dps":{"1":true,"2":true,"3":true,"4":true,"7":false,"101":0,"102":0,"103":0,"104":0,"105":0}}`\xbc\x993\x00\x00\xaaU'
2018-11-11 22:00:41.011 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:41.011 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:41.012 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:41.012 (Fri_Regleta) Sending 171 bytes of data
2018-11-11 22:00:41.012 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 07 00 00 00 9b 33 2e 31 66 ..U�...........�3.1f
2018-11-11 22:00:41.012 (Fri_Regleta) 32 63 36 66 32 36 30 66 61 61 31 31 64 61 65 76 38 2b 6f 50 2c6f260faa11daev8+oP
2018-11-11 22:00:41.012 (Fri_Regleta) 57 57 53 48 7a 77 46 4b 77 41 59 7a 65 72 35 6f 70 57 65 73 WWSHzwFKwAYzer5opWes
2018-11-11 22:00:41.012 (Fri_Regleta) 69 74 32 56 2b 45 56 5a 4e 36 58 33 59 72 6d 39 56 4a 57 68 it2V+EVZN6X3Yrm9VJWh
2018-11-11 22:00:41.012 (Fri_Regleta) 2b 72 61 58 54 4f 53 4d 79 4a 38 42 65 4d 4c 57 75 6b 4b 6e +raXTOSMyJ8BeMLWukKn
2018-11-11 22:00:41.012 (Fri_Regleta) 57 72 2f 37 39 33 61 79 6d 42 6a 6e 74 49 2f 4d 34 35 44 70 Wr/793aymBjntI/M45Dp
2018-11-11 22:00:41.013 (Fri_Regleta) 34 63 79 74 42 6d 55 6d 48 67 73 41 6e 77 6d 59 56 64 67 79 4cytBmUmHgsAnwmYVdgy
2018-11-11 22:00:41.013 (Fri_Regleta) 53 30 4b 30 46 65 50 31 66 67 73 30 34 2f 4f 57 53 49 6e 4e S0K0FeP1fgs04/OWSInN
2018-11-11 22:00:41.013 (Fri_Regleta) 33 7a 39 00 00 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. 3z9......�U
2018-11-11 22:00:41.013 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:41.013 (Fri_Regleta) Sending 86 bytes of data
2018-11-11 22:00:41.013 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 46 7b 22 64 65 ..U�...........F{"de
2018-11-11 22:00:41.013 (Fri_Regleta) 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 30 31 39 34 vId":"17007751600194
2018-11-11 22:00:41.013 (Fri_Regleta) 61 66 63 34 62 30 22 2c 22 67 77 49 64 22 3a 22 31 37 30 30 afc4b0","gwId":"1700
2018-11-11 22:00:41.014 (Fri_Regleta) 37 37 35 31 36 30 30 31 39 34 61 66 63 34 62 30 22 7d 00 00 7751600194afc4b0"}..
2018-11-11 22:00:41.014 (Fri_Regleta) 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....�U
2018-11-11 22:00:41.157 (Fri_Regleta) Pushing 'onHeartbeatCallback' on to queue
2018-11-11 22:00:41.164 (Fri_Regleta) Processing 'onHeartbeatCallback' message
2018-11-11 22:00:41.164 (Fri_Regleta) Calling message handler 'onHeartbeat'.
2018-11-11 22:00:41.197 (Fri_Regleta) Pushing 'ReadEvent' on to queue
2018-11-11 22:00:41.214 (Fri_Regleta) Processing 'ReadEvent' message
2018-11-11 22:00:41.215 (Fri_Regleta) Received 154 bytes of data
2018-11-11 22:00:41.215 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 8a 00 00 00 00 ..U�...........�....
2018-11-11 22:00:41.215 (Fri_Regleta) 7b 22 64 65 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 {"devId":"1700775160
2018-11-11 22:00:41.215 (Fri_Regleta) 30 31 39 34 61 66 63 34 62 30 22 2c 22 64 70 73 22 3a 7b 22 0194afc4b0","dps":{"
2018-11-11 22:00:41.215 (Fri_Regleta) 31 22 3a 74 72 75 65 2c 22 32 22 3a 74 72 75 65 2c 22 33 22 1":true,"2":true,"3"
2018-11-11 22:00:41.215 (Fri_Regleta) 3a 74 72 75 65 2c 22 34 22 3a 74 72 75 65 2c 22 37 22 3a 66 :true,"4":true,"7":f
2018-11-11 22:00:41.215 (Fri_Regleta) 61 6c 73 65 2c 22 31 30 31 22 3a 30 2c 22 31 30 32 22 3a 30 alse,"101":0,"102":0
2018-11-11 22:00:41.215 (Fri_Regleta) 2c 22 31 30 33 22 3a 30 2c 22 31 30 34 22 3a 30 2c 22 31 30 ,"103":0,"104":0,"10
2018-11-11 22:00:41.216 (Fri_Regleta) 35 22 3a 30 7d 7d 60 bc 99 33 00 00 aa 55 .. .. .. .. .. .. 5":0}}`��3..�U
2018-11-11 22:00:41.216 (Fri_Regleta) Pushing 'onMessageCallback' on to queue
2018-11-11 22:00:41.216 (Fri_Regleta) Processing 'onMessageCallback' message
2018-11-11 22:00:41.216 (Fri_Regleta) Calling message handler 'onMessage'.
2018-11-11 22:00:41.216 (Fri_Regleta) onMessage called: 192.168.1.85:6668 b'\x00\x00U\xaa\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x00\x00\x00\x00{"devId":"17007751600194afc4b0","dps":{"1":true,"2":true,"3":true,"4":true,"7":false,"101":0,"102":0,"103":0,"104":0,"105":0}}`\xbc\x993\x00\x00\xaaU'
2018-11-11 22:00:41.219 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:41.220 (Fri_Regleta) Pushing 'WriteDirective' on to queue
2018-11-11 22:00:41.220 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:41.220 (Fri_Regleta) Sending 171 bytes of data
2018-11-11 22:00:41.220 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 07 00 00 00 9b 33 2e 31 66 ..U�...........�3.1f
2018-11-11 22:00:41.220 (Fri_Regleta) 32 63 36 66 32 36 30 66 61 61 31 31 64 61 65 76 38 2b 6f 50 2c6f260faa11daev8+oP
2018-11-11 22:00:41.220 (Fri_Regleta) 57 57 53 48 7a 77 46 4b 77 41 59 7a 65 72 35 6f 70 57 65 73 WWSHzwFKwAYzer5opWes
2018-11-11 22:00:41.220 (Fri_Regleta) 69 74 32 56 2b 45 56 5a 4e 36 58 33 59 72 6d 39 56 4a 57 68 it2V+EVZN6X3Yrm9VJWh
2018-11-11 22:00:41.220 (Fri_Regleta) 2b 72 61 58 54 4f 53 4d 79 4a 38 42 65 4d 4c 57 75 6b 4b 6e +raXTOSMyJ8BeMLWukKn
2018-11-11 22:00:41.220 (Fri_Regleta) 57 72 2f 37 39 33 61 79 6d 42 6a 6e 74 49 2f 4d 34 35 44 70 Wr/793aymBjntI/M45Dp
2018-11-11 22:00:41.221 (Fri_Regleta) 34 63 79 74 42 6d 55 6d 48 67 73 41 6e 77 6d 59 56 64 67 79 4cytBmUmHgsAnwmYVdgy
2018-11-11 22:00:41.221 (Fri_Regleta) 53 30 4b 30 46 65 50 31 66 67 73 30 34 2f 4f 57 53 49 6e 4e S0K0FeP1fgs04/OWSInN
2018-11-11 22:00:41.221 (Fri_Regleta) 33 7a 39 00 00 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. 3z9......�U
2018-11-11 22:00:41.221 (Fri_Regleta) Processing 'WriteDirective' message
2018-11-11 22:00:41.221 (Fri_Regleta) Sending 86 bytes of data
2018-11-11 22:00:41.221 (Fri_Regleta) 00 00 55 aa 00 00 00 00 00 00 00 0a 00 00 00 46 7b 22 64 65 ..U�...........F{"de
2018-11-11 22:00:41.221 (Fri_Regleta) 76 49 64 22 3a 22 31 37 30 30 37 37 35 31 36 30 30 31 39 34 vId":"17007751600194
2018-11-11 22:00:41.221 (Fri_Regleta) 61 66 63 34 62 30 22 2c 22 67 77 49 64 22 3a 22 31 37 30 30 afc4b0","gwId":"1700
2018-11-11 22:00:41.222 (Fri_Regleta) 37 37 35 31 36 30 30 31 39 34 61 66 63 34 62 30 22 7d 00 00 7751600194afc4b0"}..
2018-11-11 22:00:41.222 (Fri_Regleta) 00 00 00 00 aa 55 .. .. .. .. .. .. .. .. .. .. .. .. .. .. ....�U
2018-11-11 22:00:42.336 (Fri_Regleta) Debug logging mask set to: NONE
-
- Posts: 15
- Joined: Wednesday 13 December 2017 10:12
- Target OS: Linux
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
DAVIZINHO,
it's the same problem that i've witch the smart-bulb plugin.
it's the same problem that i've witch the smart-bulb plugin.
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: [REQUEST] Plugin for Tuya
hello, maybe the problem is that i configure the smart plug with this DPS:
1;7;3;2;4
and now, im thinking... my smart plug have 6 options:
- the complet smartplug
- four plugs
- one multiusb
all this sum 6 ids, not?
1;7;3;2;4
and now, im thinking... my smart plug have 6 options:
- the complet smartplug
- four plugs
- one multiusb
all this sum 6 ids, not?
-
- Posts: 52
- Joined: Monday 10 September 2018 23:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: [REQUEST] Plugin for Tuya
Sorry for the delay, I didn't get mail notifications from the forum...
For the smart plug i put a script on github to get the dps values (get_dps.py present in the multiplug branch).
It is a simple script that get the state and returns dps values with a boolean field.
Some comments for the bug that seems to be present in multi socket and bulb:
- You have to close the tuya app before using the plugin otherwise the plugin will not be able to connect to the device. Be sure that the app is not running in background. This is mandatory since the device support only one connection at a time.
It may be the cause of the plugin crash and unfortunately domoticz as well. If it is your case and you do not get an error when the tuya app is close, please can you send me the domoticz version you use (for a bug report to domoticz)
- If you see the update in domoticz it means that the devID and dps is valid.
- If you are not able to change the state from domoticz, the first thing to do is to double check the Local Key. The local key is needed only to change the state.
Now if the problem persist:
- you can try the turnON.py and turnOFF.py. (present in the multiplug branch) you have to provide : <IP> <DevID> <Local key> <DPS value>
for smartbulb the dps value should be 1 but please check before with the get_dps.py script.
These scripts will do exactly the job but outside domoticz. You have to deactivate the device in domoticz first.
If with the script, the problem persist, it means that it is not plugin related but the library. I guess your problem is related to the issue discussed here: https://github.com/codetheweb/tuyapi/is ... -437593018
In this case, I will not be able to fix it until they found a way to deal with such devices.
For the smart plug i put a script on github to get the dps values (get_dps.py present in the multiplug branch).
It is a simple script that get the state and returns dps values with a boolean field.
Some comments for the bug that seems to be present in multi socket and bulb:
- You have to close the tuya app before using the plugin otherwise the plugin will not be able to connect to the device. Be sure that the app is not running in background. This is mandatory since the device support only one connection at a time.
It may be the cause of the plugin crash and unfortunately domoticz as well. If it is your case and you do not get an error when the tuya app is close, please can you send me the domoticz version you use (for a bug report to domoticz)
- If you see the update in domoticz it means that the devID and dps is valid.
- If you are not able to change the state from domoticz, the first thing to do is to double check the Local Key. The local key is needed only to change the state.
Now if the problem persist:
- you can try the turnON.py and turnOFF.py. (present in the multiplug branch) you have to provide : <IP> <DevID> <Local key> <DPS value>
for smartbulb the dps value should be 1 but please check before with the get_dps.py script.
These scripts will do exactly the job but outside domoticz. You have to deactivate the device in domoticz first.
If with the script, the problem persist, it means that it is not plugin related but the library. I guess your problem is related to the issue discussed here: https://github.com/codetheweb/tuyapi/is ... -437593018
In this case, I will not be able to fix it until they found a way to deal with such devices.
-
- Posts: 234
- Joined: Sunday 27 August 2017 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Spain
- Contact:
Re: [REQUEST] Plugin for Tuya
hello,
thanks for the info.
Yesterday i make some test and install de tuya-cli for testing. In the instalation of tuya-cli I obtain the key again with the certificate method and qr. The key was diferent that the previous I obtain ( i dont know why).
I put this local key in domoticz and now works!!.
The info that i must close the tuya app in the phone was very important too! because if not, i receive errors when i test the .py scripts (poweron, poweroff)
NOW ITS WORKING!. thanks a lot.
And i only have one more question:
The multiplug in the app have 6 options for power on/off but with the plugin i only have 5:
- the complet multiplug
- 4 plugs
- 1 multiusb
Its posible to control the complet multiplug poweron/off?
thanks again!
thanks for the info.
Yesterday i make some test and install de tuya-cli for testing. In the instalation of tuya-cli I obtain the key again with the certificate method and qr. The key was diferent that the previous I obtain ( i dont know why).
I put this local key in domoticz and now works!!.
The info that i must close the tuya app in the phone was very important too! because if not, i receive errors when i test the .py scripts (poweron, poweroff)
NOW ITS WORKING!. thanks a lot.
And i only have one more question:
The multiplug in the app have 6 options for power on/off but with the plugin i only have 5:
- the complet multiplug
- 4 plugs
- 1 multiusb
Its posible to control the complet multiplug poweron/off?
thanks again!
Who is online
Users browsing this forum: No registered users and 0 guests