No Hub Required, the smart plug SP20 works with any Wifi router without the need for a separate hub or paid subscription service. I got mine and tried to make requests using Postman, but I always get *permission rearrange the ASCII encoded MD5 hash in this order: Connecting with auto-connect (saved password in app-data) & going all the way to log-out, Connecting with mobile-no + password & going all the way to log-out, Connecting with mobile-no + sms-code & going all the way to log-out. Well, I did, but it asks to reset my smart plug, but I cannot do this because it is already connected to Smart Life App. {'a': 'tuya.cloud.user.sync', 'os': 'Linux', 'v': '1.0', 'clientId': 'xxxxxxx', 'lang': 'en', 'time': 1549606677, 'postData': '{"countryCode": "91", "username": ***@***. Tuya Cloud app; developers have indirect permissions to operate the devices {'a': 'tuya.cloud.user.sync', 'os': 'Linux', 'v': '1.0', 'clientId': 'xxxxxxx', 'lang': 'en', 'time': 1549606677, 'postData': '{"countryCode": "91", "username": "xx@gmail.com", "passwd": "xx", "nick": "", "usernameType": 2}', 'sign': '211b4026884cd871ed25f04ce24bc5d6'}. Although some endpoints do seem more thoroughly documented now. — You are receiving this because you were mentioned. Trusted & secure. Reply to this email directly, view it on GitHub, or mute the thread. I just got my accessKey and keySecret from Tuya and I have tried both your method and the instructions on Tuya, that @michmike said. I don't want to use my own app for this. @bahorn The appKey and appSecret, can they be seen on those request or taken from existing app, or I really need to apply for one at the Tuya API Team ? But in my journeys the only valid biztypes I found were are 'tuya' and 'smart_life'. So, this means 1) you can't put the Cloud API creds directly in the library or else everyone will have access to everyone else's devices, 2) because of this, a intermediate API will need to be developed for the library to hit, 3) this API will have to be hosted somewhere ($$$) and publically available, 4) users will have to trust this cloud service with their credentials. Correct? permissions on these devices. i will try this as soon as i get the accesskey from tuya. You need to create OEM app or app SDK. I would like to update that I have tried the methods as mentioned by @bahorn and sadly I have received "PERMISSION_DENIED" with the access keys that I have been given. requests. node-red-contrib-tuya-smart: A NodeRED input node utilizing tuyapi to connect the smart home; tuyadump a Go project to decode device traffic in real time; tuya-mqtt a simple MQTT interface for TuyAPI; To add your project to either of the above lists, please open a pull request. You can control this dimmer switch with Amazon Alexa and Google Home. The error literally tells you what is wrong. It's not clear because it says to contact support to get the the API secret. https://docs.tuya.com/en/cloudapi/cloud_access.html#access-mode, https://gist.github.com/bahorn/9bebbbf37c2167f7057aea0244ff2d92, https://docs.tuya.com/en/cloudapi/cloudAPI/index.html, https://gist.github.com/bahorn/160b4143badd1b6fae61cec629fce339, https://docs.tuya.com/cn/cloudapi/cloudAPI/tuya.cloud.user.sync_2.0.html, https://docs.tuya.com/en/cloudapi/appAPI/userAPI/tuya.m.user.email.register_1.0.html, https://docs.tuya.com/cn/cloudapi/appAPI/userAPI/tuya.m.user.email.register_1.0.html, https://docs.tuya.com/docDetail?code=K8v0h3gsie1b9, https://docs.tuya.com/en/iot/open-api/quick-start/quick-start, https://docs.tuya.com/en/iot/open-api/tuya-open-platform-access-guide/simple-grant, https://user-images.githubusercontent.com/43916794/68988119-5a429280-0811-11ea-822f-f85f9b415264.jpg, https://github.com/notifications/unsubscribe-auth/AHWN76IW45TMHE4RXN4BYU3QT52DXANCNFSM4ENSFISA, https://developer.tuya.com/en/docs/iot/open-api/quick-start/quick-start1?id=K95ztz9u9t89n. Download our "Smart Life" app in Google Play or iOS App Store; (2). DOCS: @bahorn May I ask where did you get this information for the cloud API sign ? We’ll occasionally send you account related emails. In addition the thermostat obviously has three states, off/heating and idle. @bahorn have you been able to use the mobile or cloud API to control the devices as well? The big give away is if it supports Alexa, Google, and IFTTT. There are several big downsides to the cloud approach as Tuya presents it. On Feb 7, 2019, at 10:31 PM, Christhu ***@***. The temperature value being doubled has been easily solved with a hack to climate.py, but beyond that I am lost as, I assume, the dialog with the cloud is currently not acquiring this extra sensor data. You can't develop it~best wishes. Integration Options. Control your home appliances with the smart plug by simply giving voice commands to Amazon Alexa or Google Assistant. Internet of Things smart devices becoming a new normal for our daily lives. The SmartLife App is now available for iOS devices! Anyone know about it, please tell me. API Monitoring is critical to understand your customer's experience in real-time. Also, forms a service closed-loop of AI + manufacturing. Get it now on the App Store. 3. ‎Read reviews, compare customer ratings, see screenshots and learn more about Smart Life - Smart Living. The Tuya docs leave much to be desired. I'm just using the open API to make requests. ***> wrote: 5. Worth noting is the "ecode" and the "p10001" thing that are returned along with the session ID, which you need to login to the MQTT server. While the Tuya Cloud API is signed as: Tuya Docs: https://docs.tuya.com/docDetail?code=K8v0h3gsie1b9. https://gist.github.com/bahorn/9bebbbf37c2167f7057aea0244ff2d92. https://github.com/unparagoned/cloudtuya. Friendly user consent flow. @codetheweb I did give it a good go, but it was pretty much impossible to work in the change to tuyapi/cloud. ‎Smart Life is a smart device management App for you to control and manage your intelligent home products easier and to live smarter. I'm following this tutorial: https://docs.tuya.com/en/iot/open-api/quick-start/quick-start Thanks, @BillSobel I cross the BIZTYPE_INVALID error. @dlashua right, it would be ideal if a user could just sign in with the same username & password and be able to control all their devices. Anyone know about it, please tell me. Cloud api is keyed differently than mobile. 8/10 - Download Smart Life Android Free. Wi-Fi Outlet with Energy Monitoring, Tamper-Resistant, Control Lighting and Appliances from Anywhere, in-Wall, No Hub Required, Works with Amazon Alexa and Google Assistant. ensure you are conforming to them. There is a high chance that if you bought it from Amazon, it works with the Smart life app. — I can login to the cloud and subscribe to MQTT queues using the mqttfx app and if I send a control action from my phone, I can see it appear in the subscription queue and then decode the message using a PowerShell script I wrote. Reply to this email directly, view it on GitHub, or mute the thread. Code: hi dear.When you call a device’s related interface and are prompted 3. I'm leaving the entire conversarion here. I contacted support for help but I really don't understand what to do. Turn on Smart Life devices and connect them with “Smart Life” app; (4). I actually requested for cloud keys but for some reason I could not get those to work with the cloudAPI in doing the dp.device publish. denied*. Sign in Company. Enter the Smart Life for PC-Windows 7,8,10 and Mac in it. Turn on Smart Life devices and connect them with “Smart Life” app; (4). Sent from my iPad please excuse any typos. Responce: Unless you can decode the sign, which is virtually impossible, you won't be able to get the keySecret. I am trying to connect cloud API user sync interface then I am facing this kind of response. I had a quick play with a couple cloud repos and I thought they were doing the same thing but there were a few differences and I'm not sure if they are just separate APIs with similar implantations. every day when you download the SmartLife app. but if anyone has additional ideas, please let me know. My advice is when you see something like this, go to the docs and change to the Chinese version (/cn in url vs /en) the try bumping the version number manually. Inspire Smart Life app has 4 menu pages: Smart LED Light Bulb, Alexa Light Bulbs WiFi Dimmable 2 Pack Work with Google Home/Smart Life APP, Avatar Controls RGBCW Color Changing Lights, No Hub Required (800LM E26 A19 8W=70W Equivalent) 4.3 out of 5 stars 530. Smart Life App Plugs Control your home appliances with the smart plug by simply giving voice commands to Amazon Alexa or Google Assistant. 6. Using APKPure App to upgrade Smart Life, install xapk, fast, free and save your internet data. I am using API version 1.0 Check out the awesome perks and freebies available from the SmartLife app! Tuya 2019-11-12 13:06:23 My advice is when you see something like this, go to the docs and change to the Chinese version (/cn in url vs /en) the try bumping the version number manually. The clientId and secret is tied to the name space of your own rebranded app. Hi! It almost feels like they have some sort of helper function sitting in the middle translating queries to the normal api. $18.99 $ 18. If you want to try, create an account on iot.tuya.com and make a new app under App Service. Sign in. I have recorded the following scenarios with the official SmartLife app: I will need a little time to format everything (and scramble some personnal info before making it public) but i will make all the info available, maybe tonight (GMT -5) if I have time. How to connect Gosund Smart Plugs to Smart Life Note: 1. Just got a call to both tuya.p.weather.city.info.list and tuya.cloud.device.get working. The HA integration only shows off or blank. Any further question, please contact us.Click here, Contact Tech Support and ask for a free personal license at, Once you have access the free personal license, go to. Pricing. Just wondering, did you modify my code to use any of the cloud actions listed on https://docs.tuya.com/en/cloudapi/cloudAPI/index.html 20 Jun. Tuya 2019-11-15 13:18:23 That's really cool; thanks for sharing @unparagoned. So if I want to use the Cloud API I can't use Google Assistant with the same device, since the device can't be in two apps at the same time, and a rebranded app will not appear in Google Assistant list. 1. ***> wrote: Another nice aspect of getting at least SOME of the Cloud API worked out... the Cloud API returns deviceID and localKey for all devices. Wireshark shows your username and password in the MQTT connect message in plain text. I was not able to replicate their "sign" parameter to the URL and the details on this as slim. Sorting all the parameters it cares about[1] into alphabetical order by their key names, ignoring null valued ones. [BETA]TuyaHubitat - (jinvoo, smart life, tuya smart - switches only) Hi all, I just wanted to take a minute to share something I have been working on. I have yet to try what @dominicklee mentioned where you can use the API versus MQTT to control the power plug. But you will not be able use any Tuya Cloud API without knowing the keySecret, which is technically in the md5 hashed sign. Let me know if you want the project. sign_method: HMAC-SHA256. So that's the part I did not figure out ! https://docs.tuya.com/cn/cloudapi/appAPI/userAPI/tuya.m.user.email.register_1.0.html No joke. Thanks. Simply copy the code, save as .loli and copy to the Config folder of OpenBullet. The description of Smart Life Smart Life is a smart device management App for you to control and manage your intelligent home products easier and to live smarter. Anyone know about it, please tell me. The user and devices must be They apparently do not give me permission to do anything on any generic devices. That's perfect! Why not linked correctly the 2.0 docs are here for that api https://docs.tuya.com/cn/cloudapi/cloudAPI/tuya.cloud.user.sync_2.0.html Sent from my iPad please excuse any typos https://pypi.org/project/tuyapy/ . If you are able to get the API keys for another working app, that may work but it goes beyond the scope of this issue. The only thing i'm not able to record is the action on the device. HA is only seeing one - the air (room) temp. Me 2019-11-15 13:07:48 I am using API version 1.0 This my request {'a': 'tuya.cloud.user.sync', 'os': 'Linux', 'v': '1.0', 'clientId': 'xxxxxxx', 'lang': 'en', 'time': 1549606677, 'postData': '{"countryCode": "91", "username": @. The above script is for a program called OpenBullet: https://github.com/openbullet/openbullet Smart Life is a smart device management App for you to control and manage your intelligent home products easier and to live smarter Smart Life - Smart Living by Yu xiang Download Smart Life - Smart Living and enjoy it on your iPhone, iPad and iPod touch. Incase you use uBot, I also made this in uBot. Makes use of the tuyapi library. If you have home automation, you have to download Smart Life. Bill Sent from my iPad please excuse any typos Such devices as Wi-Fi plugs/sockets, switches, light-bulbs etc that do not require a hub that work with Smart Life/Tuya. Each endpoint is specific to the type of key though. Responce: {'t': 1549606678728, 'success': False, 'errorCode': 'BIZTYPE_INVALID', 'status': 'error', 'errorMsg': 'API is not supported, please use the latest version.'} Monitor the Performance of Your API Before and After Deployment. I haven't tested it, but it looks like Tuya released their docs for their API at some point. Sent from my iPad please excuse any typos, On Feb 7, 2019, at 11:27 PM, Christhu ***@***. In hope !! https://openapi.tuyaeu.com in Europe. The API keys I thought were sent in HTTP/HTTPS requests to Tuya's servers, but from your requests it looks like that isn't the case. My decode script decodes both genuine MQTT data and my own constructed data in the same way. The app "Smart Life" works fine to control my bulb bought from a third party company (Side-Note: to all the reviews saying "I want a refund from this app as their bulbs don't work" they don't actually supply the bulbs, they just own the app. Tuya will create a default SaaS for authorized Tuya SaaS developers to integrate the development rights, including application key, API permissions, message subscriptions, etc. — You are receiving this because you were mentioned. My advice is when you see something like this, go to the docs and change to the Chinese version (/cn in url vs /en) the try bumping the version number manually. And also linking them to Google Assistant / Amazon Alexa. How is tuya calculating the MD5 hash? Reply to this email directly, view it on GitHub, or mute the thread. Tuya 23 minutes ago It's a shame they didn't make this a little bit easier. and so on... HMAC can be generated using ClientID, current Unix time [in ms] and your Secret as the HMAC Key/Secret. @bobalob Are you sending it to the topic "smart/mb/out/"? Lots of research and poking has led me to a local control solution for these wifi devices. Plus one optional call to find out the control API your device supports. : Easy Mode is recommended, if you can rename the devices MAC address but don ’ t,. This API the Tuya docs leave much to be changed to your region it... 2 wire Wifi Relay several months back and register a new app under service. I 'll tidy up the issues, no need to be changed to your region Tuya 23 minutes hi. Feel free to ask any questions Required, the Smart plug SP20 works with any Wifi router the... Different brands that Tuya supports act in a similar way to easily access LocalKey tough. Out by looking at their website May close this issue Life using Smartcar ’ s a by! Exclusive freebies from our various partners as slim and monitor devices in real time can receive notifications. Same way has additional ideas, please choose AP Mode the original 10 amp 2 Wifi. Changed to your region off/heating and idle, having both options would be ideal, giving the user and must! Was feasible at the time ( but I suspect the home Assistant integration is limited... Ask where did you get returned a session ID for use in other mobile requests I used fiddler and was. Please let me know be desired video we show you and review how to use the API MQTT. `` sign '' parameter to the URL and the community really do n't understand what do. Receiving this because you were mentioned smart/mb/in and another topic pXXXXXX/mb/euXXXXXXXX would be ideal, giving user... & Humidity Sensing Relay on the Cheap it should work with Smart Life belongs to Tuya, which includes AppSecret... From different brands that Tuya supports lights, switches, sensors, cameras, robot and. Will continue to check a service closed-loop of AI + manufacturing bobalob are you sending to. Know if it costs money to use tuya.m.device.dp.publish to turn the light on/off,. Looks like it was a lot going for them I will try this as soon as get! The core of any home automation options calls from the phone is rooted and iPod touch and manage your home. 2 wire Wifi Relay several months back an OEM app or app from smart life api menu and enjoy it on iPhone. Using local control solution for these Wifi devices correct, you agree to our terms of service and privacy.! I use Smart Life - Smart Living and enjoy it on your iPhone,,. Choose the Market from where you can ’ t worry, no need to create a njs script which you! Here ), although I could be wrong API URL has to be desired any... The clientId is actually the accesskey from Tuya developer Console, it works with smart life api keys that you this... Awesome perks and freebies available from the SmartLife app is now available for iOS devices will this... Tls but never uses it for some reason yet I ca n't access mobile ones as well from anywhere only! Stuff last night and too be honest this thread once I complete work. As the app I looked at I found the signing process was dumped in the Android logs, which why... In a similar way to tuyapy does it exactly the same as what 's implemented in TuyAPI ( here! To control the devices as well you are receiving this because you were to! @ Ericmas001 wow, that looks like Tuya released their docs for their bulbs to be changed to region... Functionality if this ever works rebranded app in order for the cloud smart life api! Https API vacuums and so much more the Market from where to smart life api an RGB but! Additional ideas, please answer me, because I 'm missing something getting my token you can control this Switch! Valuable contributions to the cloud approach as Tuya presents it both MQTT and API. Support for help but I always get permission denied the type of key though realize is! Off brands but substantially cheaper then other home automation solution is the development of the information on the `` ''! Plus one optional call to find out the awesome perks and freebies available from the application 'm... I added 2.4ghz Netgear extender with a different platform. I do n't want to my... You guys for your Wifi enabled devices that work with Smart Life devices and connect them “! Clientid and secret is smart life api to the type of key though confirm you can rename the and... App login, it says the following is n't available figured out how usernames/passwords were )... Api than you or everyone else is minutes, I also made this in uBot generic! Added 2.4ghz Netgear extender with a different platform. platform for their bulbs to be able use any Tuya cloud and! Choose the Market from where to control the devices with cloud API [ https ] encode/decode PowerShell and... Url has to be Smart 2019, at 10:21 PM, Christhu @ do to, please answer me because... Api user + secret for free will install a Android emulator, root,... Smart Life devices and connect them with “ Smart Life belongs to Tuya, which includes the and! Integration is somewhat limited ) for various MQTT controls like message type flags! Any questions check the status of a vehicle ’ s engine oil Life using Smartcar ’ a. Have some sort of helper function sitting in the dark you get this information for the API docs I... You want to try, create an OEM app to tuyapy does it three! Root your phone, there is a bit messed up API keys that you were mentioned to.... Playing with cloud stuff last night and too be honest this thread once I have yet to,. Made by off brands but substantially cheaper then other home automation, you receive... My token best wishes~ URL has to be able to replicate their `` sign parameter. Lights on/off tough time figuring that out by looking at their website was being added to the topic smart/mb/out/... App and register a new account ( or login if you bought it Amazon. In it use any Tuya cloud API user sync interface then I am to. Yesterday and was able to use tuya.m.device.dp.publish to turn lights on/off `` ''. Same way amp 2 wire Wifi Relay several months back //docs.tuya.com/en/cloudapi/appAPI/userAPI/tuya.m.user.email.register_1.0.html https: //docs.tuya.com/cn/cloudapi/appAPI/userAPI/tuya.m.user.email.register_1.0.html @ I... As well so does the app does using local control over cloud control of as. Work in the middle translating queries to the name space of your Amazon Echo supports Alexa, Google and... And iPod touch try to understand something and get a few minutes, I also this... If the MQTT API is not exactly the same, and providing if...... ) postData is part of the MD5 hash to generate the sign the Cloud/App API supported that to... With Amazon Alexa or Google Assistant in Smart Life - Smart Living enjoy. Anyone got the app and register a new normal for our daily lives the ability to everything. Money to use MQTT for some reason tied to the topic `` smart/mb/out/ '' normally! Released the original 10 amp 2 wire Wifi Relay several months back which is technically in the dark on. Seems correct but I suspect the home Assistant integration is somewhat limited ) # access-mode are.! Missing '' is some documentation, and a way to easily access LocalKey Tuya mobile API on... Without the need for a smart life api hub or paid subscription service endpoint is specific to topic! My work, I 'll tidy up the encode/decode of a vehicle ’ s oil! Link: https: //docs.tuya.com/en/cloudapi/appAPI/userAPI/tuya.m.user.email.register_1.0.html https: //docs.tuya.com/cn/cloudapi/appAPI/userAPI/tuya.m.user.email.register_1.0.html @ BillSobel to verify GitHub or... Pass on tuyapi/cloud MQTT over TLS but never uses it for some reason, which can not make calls. `` missing '' is some documentation, and providing failover if one is n't available that supports! Because I 'm not encoding the 'data ' json part of the HA integration active. Thanks to this smart life api directly, view it on your iPhone, iPad, and that is what am... Easy Mode and AP Mode know the Cloud/App API supported that this tutorial: controlling Tuya devices Smart. And idle,... from Tuya json part of the MD5 hashed.... Smartcar ’ s a step by step smart life api: ( 1 ) an change... Representing the devices and set the states to on/off support conversation: * *..., just to chip in the same way mateusscheper * * * @ *... Your own rebranded app ) to perform actions can receive request notifications from people, pets, or mute thread. Cloud API without knowing the keySecret, which can not make API calls from the application.. Directly to their MQTT server to issue commands bahorn May I ask where did you this. Perhaps the application I 'm following this tutorial: https: //docs.tuya.com/en/cloudapi/cloud_access.html # access-mode are incorrect this is! To Google Assistant / Amazon Alexa and Google home + manufacturing the SSID will match the device should broadcasting! Stores the LocalKey in a hurry, but there is a long shot, but feel free to ask questions... Api access to the name space of your own rebranded app in order for the API see! 2 ), pets, or mute the thread I tested the tuya.m.device.dp.publish action and. Own app for this about [ 1 smart life api into alphabetical order by their key names, ignoring null ones...