Closed 9SL9 closed 5 years ago
The raw message looks valid; the culprit must be a bad key
.
~Also, make sure you don't have version
in your config for this device.~
332e33
: this is a 3.3.
I thought I'd try to reinstall everything from scratch and get the key etc again. However when I follow the instructions to get the id and key again and launch the Tuya-lan-find I see the q code but nothing appears underneath it. I just get a 'Network is unavailable error on my phone'. I don't think this is a happening thing for my brand of plug. thanks anyway.
Just thought I'd try again, I get this string of errors when I launch the app that controls my plug
Can you please get the latest rc
release using npm i -g homebridge-tuya-lan@rc
. That should solve many of the problems.
I see "Intercepted certificate request". On my device I see "Network is unavailable". Then eventually I get this error on my home bridge box (which I'm not sure if this is related to your app or not as I also get other terminal output from the system):
NB: using RC9
Which app are you using to control your plug and can you use safari to access a https page with Safari while using the proxy?
I’m using this app: Brilliant Smart by Brilliant Lighting (Aust) Pty Ltd
The id
and key
extraction only works with the Tuya Smart app. I have never tried but you could install the Tuya Smart app, add the device to it, extract the id
and key
, and get rid of the Tuya Smart app afterwards.
Just tried it by adding the device to the Tuya app with same results. Is there a way to put a different firmware on this thing? Looking at the firmware version on it from within the Tuya app it says I have version 1.0.3. And this is the latest for the brilliant device.
@9SL9 using the Tuya Smart app, the one with the red icon, did it not give you any id
and key
? Did you have the app killed before running tuya-lan-find
? Did you open the Tuya Smart app afterwards to get an error after roughly a minute about network errors? Also, can you please recheck if you missed any steps while going through the Setup Instructions? I ask because even though I wrote those instructions, and even though I have executed them tens of times, I still occasionally miss a step here and there.
PS, any error you see about timeout
during tuya-lan-find
can be ignored; they are irrelevant.
The version you see, 1.0.3, must be the latest your manufacturer has deployed; the older the better :)
Close the issue, I now have it working, thanks. Yes, indeed I did miss a step - the certificate trust step. Thx
@9SL9, I am glad your problem is solved. Best of luck.
Here is the log output:
Slowing down retry attempts; if you see this happening often, it could mean some sort of incompatibility. [TuyaAccessory] Odd message from Tuya switch with command 8: A\�bd9b�^!gʡn�h�Q}� S^�M����nU#���o��E�PE�'���^S� :�bT�WMbQ y�.(C [TuyaAccessory] Raw message from Tuya switch (3.3) with command 8: 000055aa00000000000000080000006b00000000332e33000000000000001b00000001415c5c9562643962d15e2167caa16edeb58d68f9517da700535ebf154de1d6fdf76e55071a2382f2ca6ff09ff74591504507f327d9e6ea5e1b5e0053d70c3aa36254e3b1574d6251070b79bd072e2843c1e0affa0000aa55