tuyapi: Timeout waiting for status response from device
Hello, I can easily connect to my device and retrieve its data but when I set the data, I always get this Timeout error.
My code is the same as in the example with a change to put ‘20’ instead of ‘1’ in the dps data.
I want to control these lights. I use the app Smart Life.
LOG:
Connected to device Data from device: { devId: 'xxxxxxxxxxxxxxxxx', dps: { '20': false, '21': 'colour', '22': 1000, '23': 1000, '24': '00de03e803e8', '25': '06464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000', '26': 0 } } Boolean status of default property: false. Error! Timeout waiting for status response from device id: xxxxxxxxxxxxxxxxx Disconnected from device.
Desktop:**
- OS: Windows 10
- Node Version: 10.19.0
I hope I have given all the necessary information, thank you in advance for your help.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
It looks like your code isn’t quite right.
Instead of
try
Solved it, filling in the new generated key fixes the problem.
The majority of devices I’ve seen so far have their on/off property at index 1.
I added a note about index 20 as well to the README.