Little update.
Yesterday i released version 1.0.4 to the stable channel. In this version i have moved some code around so there is less clutter and duplication in the driver files and i updated the TuyAPI dependency to the latest version. That should adding more devices in the future more easy and should also make the app a more stable. (version 1.0.3 for me crashed once every 48 hours 1.04 runs now for 4 days without incident so hope same goes for you to).
Then some questions:
About Key, IP and ID.
I get a lot of questions regarding the key, IP and ID. A little background information. Tuya uses a ID in combination with a key to connect there devices with the Tuya cloud service. The key is a secret 16 digit code that secures the connection between the device and the Tuya cloud. The key can also be used to connect with the devices localy and that is what the TuyAPI does. For the record this is not the way Tuya thinks there devices should be used but it works and its faster than the IFTT integration.
For this reason getting the key is not shown anywhere in the "smartlife " app and the only way you can get it is by cheating a little bit in the readme you can find different ways how. I know its not ideal but unless Athom makes a phonecall to Tuya in China and makes direct integration possible this is the only way to go apart from IFTT and Alexa / Google home options.
Therefore filling in the key is mandatory.
As for ID and IP. One of the two needs to be filled, you can chose the one you like best.
Personally i connect all devices based on ID. Why? well first of all because the ID can be found in the app and that makes it more easy to know what device is what and i don’t have to look in my router what IP address it decided to assign to the plug today. Also if the IP address for whatever reason changes it keeps working. Note. The IP address shown in the "smartlife " app is your external IP address, so that is no use for use with this app.
The only reason i added the IP address option is because its a requirement for the Athom appstore to be able to add the devices based on IP address.
Can you add “this” device / Your app sucks because my device is not in the list
To say the supported devices list is incomplete is an understatement. Tuya supports thousands of
devices by hundreds of brands almost nobody has ever heard of and most of them are dirt cheap from China.
So no, i’m not going to buy every device on the market just to make this app support more devices. And no i’m not going to make the devices more generic because that would not honour the wish of Athom to make and test drivers specificity for every type of device and will fill up my mailbox with app crashes in no time at all.
But
Yes, i am willing to add more devices provided i get the right information and someone is willing tot test it.
Its a battery powerd device forget it, the TuyAPI can’t connect with those because they don’t power up long enough.
Wallplugs or any on/off device If you have a wallplug without power meter. Just add it as the LSC smartplug or NEO Coolcam 2000W version. (They are the same). If you have one with power meter add it as NEO Coolcam 3600W.
RGB Devices Add the device as LSC Smart LED Light Strip.
White / Fillement leds i haven’t tested these myself but big chance these will work with the LSC Smart LED Light Strip. if so, let me know i will make a device with just a dim option then.
If it does work correctly that’s great. If you like a bulb icon and the right name just PM me the name and brand of the device and what kind of device it is and i will add it to the app for you.
If it does not work or functionality is missing and you like a little bit of tinkering. Just go to https://github.com/codetheweb/tuyapi and run the Asynchronous test code. change some values (min, max different collors ect) in the app and and find out what number in the data component corresponds with what app, PM me those and i try to build a app for it or even better do a pull request and i will merge it when i have the time.
But please remember:
1 - I have a fulltime ++ job, a wife two kids. This is a hobby not a job just have a little bit of patience. I will come back to you as soon as i can. This is a community supported app.
2- Yes getting the key sucks. I did not think of this, complains can be written to Tuya…
3 - If you don’t want to go true the trouble of getting the key, please don’t complain, just spend the extra 10 euro on a KaKu, Zwave or Zigbee plug / lamp.
4- If your not willing or able to provide the information needed to add a new type of device. Wait untill anyone that can does. Or take the advice writen under 3.