homebridge-tuya-lan
homebridge-tuya-lan copied to clipboard
Odd message with Command 8
My homebridge app is seeing the smart bulb but is unable to control it and it shows as “no response” within the home app. When controlling my smart bulb from the tuya app I get this odd message
[TuyaAccessory] Odd message from Ikea Lamp with command 8: { cmd: 8, data: '\u0011FÑ$LïÉ@àßØÐ\u0007t-\u0014Õ2þ0e\u000f\u00193?¿Ûé'o¶Ù^¦V2Hu\u0007Á;\u000e\b\b¨kÏî¥rWe@y=¡a4>ÔÊtÔ%\u0014´Uw°' }
The tuya app communicates fine with the bulb. My config file for the bulb is
"platforms" : [
{
"platform" : "TuyaLan”
"name" : "Ikea lamp",
"devices" : [
{
"manufacturer" : "Lohas",
"model" : "Smart Wifi Bulb Socket E26",
"id" : "XXXXXXXXXXXXXXXXX",
"name" : "Ikea Lamp",
"type" : "RGBTWLight",
"key" : "XXXXXXXXXXXXXX"
}
],
},
] }
Please give the latest rc
release a shot by doing npm i -g homebridge-tuya-lan@rc
. It includes logic to understand this newer API.
A known issue is that the current state is not reported by some devices; they however work fine as soon as you interact with them. I have reached out to Tuya for a solution.
The Setup Instructions have changed in case you need to obtain a fresh id
and key
.
Hey, I got the same error message with the official release of this plugin.
Before the multioutlet was online, but I just could not power on/power off any device. Only in the Tuya app. As soon as I installed the latest .rc7 update the multioutlet shows with no response. I tried to check for a new ID/KEY with your service without any success. I always get:
Intercepted certificate request Failed to intercept secure communications. This could happen due to bad CA certificate.
So right now I have a "dead" device in my homebridge, which is not a big deal, I just don't know what steps I should try to get it working!
EDIT:
After a while homebridge discovered the outlet:
[2019-9-7 19:10:33] [TuyaLan] Discovered Steckdosenleiste (86371672dc4f22e58ac8) identified as MultiOutlet (3.1) [2019-9-7 19:10:33] [TuyaLan] Connected to Steckdosenleiste [TuyaAccessory] Sending first query to Steckdosenleiste (3.1) [2019-9-7 19:10:33] [TuyaLan] Ready to handle Steckdosenleiste (MultiOutlet:3.1) with signature {"1":true,"2":true,"3":true,"4":true,"7":true,"101":0,"102":0,"103":0,"104":0,"105":0}
IU see now that if I power off one outlet, it triggers the state in homebridge log, but it does not execute. If I change the state of one outlet on the Tuya app, homebridge immediately crashes with this error log:
[2019-9-7 19:17:53] Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt at Decipheriv.final (crypto.js:183:26) at TuyaAccessory._msgHandler_3_1 (/usr/local/lib/node_modules/homebridge-tuya-lan/lib/TuyaAccessory.js:201:42) at queue (/usr/local/lib/node_modules/homebridge-tuya-lan/node_modules/async/dist/async.js:3205:13) at Object.process (/usr/local/lib/node_modules/homebridge-tuya-lan/node_modules/async/dist/async.js:1431:21) at setImmediate$1 (/usr/local/lib/node_modules/homebridge-tuya-lan/node_modules/async/dist/async.js:1289:23) at Immediate.defer [as _onImmediate] (/usr/local/lib/node_modules/homebridge-tuya-lan/node_modules/async/dist/async.js:73:45) at runCallback (timers.js:810:20) at tryOnImmediate (timers.js:768:5) at processImmediate [as _immediateCallback] (timers.js:745:5)
I hope that helps you!
After installing the certificate, did you get a chance to go to About
and switch the trust on? Delete this from your phone by following the Cleanup Instructions and then start from scratch following the Setup Instructions again. Despite knowing the steps by heart, I still miss a step sometimes.
The third part of you message is just an indicator of a bad key.
I have heard about devices going nuts when they receive garbage a lot; our bad key was causing us to send a ton of garbage to the device. Power-cycling a device should get it out of the limbo.
Right now, our primary goal is to get you a good key
and for that we need to get your device correctly talking to the proxy. By the way, don't stop the setup instruction if you see any error in the tuya-lan-find
console; just continue as if nothing happened.
Dammit, I forgot to give the cert root privileges. That was the issue all the time :D hahaha. It took 1-2 Min until the multioutlet worked.
[2019-9-7 21:38:24] [TuyaLan] Failed to discover Steckdosenleiste (86371672dc4f22e58ac8) in time but will keep looking.
[2019-9-7 21:40:54] [TuyaLan] Discovered Steckdosenleiste (86371672dc4f22e58ac8) identified as MultiOutlet (3.1) [2019-9-7 21:40:54] [TuyaLan] Connected to Steckdosenleiste [TuyaAccessory] Sending first query to Steckdosenleiste (3.1) [2019-9-7 21:40:54] [TuyaLan] Ready to handle Steckdosenleiste (MultiOutlet:3.1) with signature {"1":true,"2":true,"3":true,"4":true,"7":true,"101":0,"102":0,"103":0,"104":0,"105":0} I also changed it no successfully to CustomMultiOutlet.
Excellent. We are at a great place now. Can please you share your config block for the CustomMultiOutlet
? Black out your key
though.
{ "platform": "TuyaLan", "devices": [ { "name": "Steckdosenleiste", "type": "CustomMultiOutlet", "manufacturer": "Unknown", "model": "Steckdosenleiste", "id": "xxxxxxx", "key": "xxxxxxxx", "outlets": [ { "name": "Wireless Charger", "dp": 1 }, { "name": "Nachttischlampe", "dp": 2 }, { "name": "USB-C Charger", "dp": 3 }, { "name": "Hue", "dp": 4 }, { "name": "USB", "dp": 7 } ] } ] }
Now everything is fine. Just too bad, that the outlets do not support amp, volt, watt information....
I am glad we were able to solve your problem. Let's hope @dekuwrangler will also check this out and tell us if that problem is solved too.
I've gone through setup instructions twice and still having a similar issue after starting from scratch each time. I get lots of ECONNRESET errors when I open the Tuya app (which I assume are ignorable?) but nothing seems to come through with in the console (or the homebridge log file).
In Home app i can see my heater online (it shows the temperature) but its not responding to on-off commands. I've tried a bunch of different override commands in the config.json (doesn't seem to do it).
Please help @AMoo-Miki
edit: also the tuya app can send commands fine - just not from home app.
Unfortunately I am receiving the same [Tuya] Heard back from My Power Strip with command 8. In the HomeKit app I am always receiving no response. Though via the home bridge ui I can switch them on and off This is my config. Could you please help? { "type": "CustomMultiOutlet", "name": "My Power Strip", "id": "hidden", "key": "hidden", "manufacturer": "GOSUND", "model": "P1", "outletCount": 4, "outlets": [ { "name": "First", "dp": 1 }, { "name": "Second", "dp": 2 }, { "name": "Third", "dp": 3 }, { "name": "Usb", "dp": 7 } ] }