Trouble in TUYA Land? The tuya-smart-device node can't find devices? I had to change my wifi security cofniguration, namely the SSID and passphrase. So I had to update all my IoT plugs. This of course changed the tuya keys. So I when into my flow, updated the keys.
Via the tuya cli wizard all devices are registered, and device virtual ids correct. In the tuya app, I can control all devices on/off as expected. So as far as tuya (cloud) everything is fine. But the tuya-smart-device NR node is not happy.
Anyone seen this behavior before? I have tried bounding the NR service, I have tried explicit disconnect and reconnects, the NR node is responding to commands just not find the IoT plugs? The app finds them just fine. The cli finds them just fine.
Would it be the nodes or the underlying Tuya-api ?
Based on following the link you provided it looks like (for example) the homebridge plugin was trying to sanitize the key input - i guess this could be at the tuya-smart-device level but i think it would more likely be in the tuya-api code
I was thinking that so I did an explicit get via the tuya-cli, and they all worked with the 'new' keys. So if the tuya-cli works, and the app works in parallel, then the only component not working is the NR node.
For example...
# tuya-cli get --id '31006440bcddc25393cf' --key 'Vf-IsW:bww%A07+4'
{ '1': false, '2': 0 }
Clearly the tuya-cli connects, and gets the state of the wifi plug. The NR node can't even connect. (Of course the example above, the actual tested, id and key has been changed to protect access).
OK good one - i started working through that yesterday also and got to about the same point - it is somewhere in the tuya-smart-device node
I was going to try and look through it at some stage today as i assume (much the same as the Homethings fix) they will be sanitizing the key input with a regex or some such that will need updating or removing)
Yep i only have one Tuya device (a critical one my hydronic heatpump) so have no intention of breaking anything with that flow !
I immensly dislike the Tuya stuff and intend to bypass their wifi interface on this heatpump (once our winter is done in Australia) and run it through Modbus instead
But will try and get a look at it over the weekend