Issue with Tuya Smart Life integration – RESOLVED

EDIT: This issue is now resolved. You may need to unlink and link your Tuya account via the linked services page in order to restore you Tuya devices in your SEQUEmatic account.

If you continue to experience issues please let me know.


An issue has recently arisen with the link to some Tuya Smart Life accounts breaking. This means that Tuya devices may not trigger as expected and some sequences may not appear correctly when viewing the steps.

In some cases, unlinking and linking your account can resolve the issue, but not always.

I’m currently working with the Tuya support team to find a resolution and will post an update here once it’s resolved.

If this happens to your account, please don’t delete or modify your SEQUEmatic sequences. The steps may not appear correctly now with device names and statuses missing (see the screenshot below), but should be restored once the Tuya integration issue is resolved so it would be best to leave the sequence as it is for the moment.

Thanks for your patience while I work through this.

How to connect IFTTT to Tuya Smart Life

How to connect IFTTT to Tuya Smart Life

With the recent shutdown of the Tuya Smart Life service on IFTTT, many people are left wondering how to integrate their Tuya Smart Life devices with other smart devices around the home.

SEQUEmatic now supports direct integration with Tuya Smart Life. Combined with the IFTTT webhook service, SEQUEmatic can bridge that gap! Read on to learn how.

Link your Tuya account

First, you need to link your SEQUEmatic account to Tuya. Navigate to your settings page and click the Linked Services button.

Next, click Link account next to the description of the Tuya Smart Life service.

You will be redirected to the secure Tuya Smart Life login page, where you should login with your Tuya credentials.

Tuya will explain what it means to link your account, then you will need to click Confirm authorization to complete linking.

Once linking is complete, you will be redirected back to the Linked services page. You’ll notice the link which previous read Link account now reads Unlink account, confirming your account was successfully linked.

If you ever wish to disconnect your Tuya account from SEQUEmatic, you should return to this page and click the Unlink account link.

Create your sequence

If all you want to do is hook a service from IFTTT into your Tuya Smart Life device, then the SEQUEmatic sequence is very simple. However, if you’re new to SEQUEmatic I’d encourage you to explore the other step types and see what else you can achieve. Sequences can be very powerful and you might be able to create an even better home automation than you had before!

Anyway, the sequence you need will look like this. You can also view this here in the shared sequence library.

Let’s go through this step by step. First you should select the IFTTT webhook trigger. Enter anything for the event name, as long as it’s meaningful to you. Leave all the parameter fields blank. Here’s what I used in the sample sequence:

Then, you just need one other step which is the Tuya Smart Life step. I’ve chosen a single device, but you could also use a device group or scene. Select the action you want to perform or the property to modify as well as the new value, and that’s it! Here’s the step I created in the sample sequence.

While you’re here, if you want multiple Tuya Smart Life devices to be triggered, you can add any number of Tuya Smart Life steps to the sequence.

The IFTTT applet

Next head to IFTTT and create a new applet. The trigger, or if this component, should be the other smart device which should cause your Tuya Smart Life device to be triggered. In this example I’m using an eWeLink plug. Set up the trigger as you need, and then click next to create your action.

The action, or then that component, will use the webhooks service. There’s only one action available in this service, the make a web request action.

The only field you need to set in this action is the URL field. Head back to the SEQUEmatic sequence, and copy the URL provide in the trigger. Once copied, paste it into IFTTT.

Copy the URL highlighted here
Then paste it into this part of the IFTTT webhook service

Click through to save the applet, and your finished product should look something like this.

Now, when the other device (in this example the eWeLink plug called water feature) fires, it will make a webhook call to SEQUEmatic and trigger the sequence. The SEQUEmatic sequence will then control your Tuya Smart Life device!

If you have any questions getting set up, head over to the Q&A forums, post in the comments below or contact me here.

Tuya Smart Life integration

Tuya Smart Life integration

As many people are aware, the integration between Tuya Smart Life and IFTTT has now ceased. This has left a lot of people unable to run the handy automations they previously had set up between the Tuya Smart Life devices and other smart devices supported by IFTTT.

Following user feedback, I’m please to announce that SEQUEmatic now supports direct integration with Tuya Smart Life!

EDIT: It is now possible to control any property of any Tuya smart device direct from SEQUEmatic. Not all Tuya Smart Life devices are created equally, so if you run into any problems either post in the Q&A Forums or send me an email.

So how do you set up your sequences with Tuya Smart Life? Read on for the step-by-step process.

Connecting your SEQUEmatic account to Tuya

First, you need to link your SEQUEmatic account to Tuya. Navigate to your settings page and click the Linked Services button.

Next, click Link account next to the description of the Tuya Smart Life service.

You will be redirected to the secure Tuya Smart Life login page, where you should login with your Tuya credentials.

Tuya will explain what it means to link your account, then you will need to click Confirm authorization to complete linking.

Once linking is complete, you will be redirected back to the Linked services page. You’ll notice the link which previous read Link account now reads Unlink account, confirming your account was successfully linked.

If you ever wish to disconnect your Tuya account from SEQUEmatic, you should return to this page and click the Unlink account link.

Using Tuya Smart Life in sequences

Once your account is linked, using Tuya Smart Life in sequences is simple.

Either create a new sequence, or edit an existing sequence and click the Add step button. From the Step type dropdown select Tuya Smart Life. The form will update, displaying available devices by default.

Select the device name, the action to perform or property to modify, and the new value to set.

In addition to devices, you can also control device groups. Simply change the Type to Device Group and a list of available groups will display. Finally, you can also trigger Scenes which have been set up within your Tuya Smart Life home. Using scenes you can create some very complex and powerful automations to trigger from your sequences.

You can learn more about the Tuya Smart Life integration here in the docs. And if you need help getting set up, head to the Q&A Forum, post your questions in the comments below or contact me here.

If you do start using the Tuya Smart Life integration, I’d love to hear how you’re putting it to use in the comments below!

Incorporating the weather in your sequences

A couple of weeks ago we added a new option in the variable value condition which allows you to check if a variable contains a particular value. This can be useful if you have variables which hold a string of text and there’s something in particular you’re looking for in that text, without it needing to be an exact match.

One example a user came up with for this was to use the Weather Underground service at IFTTT to pull the current weather into their sequences. The set up is quite simple, and can allow you to add some handy conditions to your sequences.

Accessing parameters from a webhook call

Let’s get started by setting up the sequence in SEQUEmatic. There’s a handy feature which allows you to access values from webhook parameters directly in your sequence. All you have to do is enclose the parameter names in curly brackets like this – {weather_conditions}.

Firstly, add the IFTTT webhook trigger to your sequence. For any parameters you want to access in your sequence, you should specify their names in the step. In the example below we will be passing the current weather condition in the first parameter and the current temperature in the second parameter.

With this configuration, you can access the value of those two parameters when updating a variable or checking a condition by referencing them as {weather_condition} or {temperature}. Note that these values are only available for the current sequence, so to use them in other sequences you should store them in one of your SEQUEmatic variables.

You can do this easily using the change variable step as follows. Add a step to change a variable. Set a name for your variable, such as temp, and then set the change to ={temperature}. If we break this down, the = sign tells SEQUEmatic to set the value of the variable and {temperature} will take the value passed in the second parameter from IFTTT.

You can add another step to capture the weather conditions as well. Overall your sequence should look something like this.

With the weather conditions now stored safely in your variables, you can reference them in any other sequence using the variable names! Here’s an example of what you might see in your variable page after the sequence has run:

Setting up the IFTTT applet

The final step to get this working is to put the correct URL in the IFTTT applet. Firstly, take the URL provided in the first step of your sequence. In our example this is:

http://sequematic.com/trigger-ifttt-webhook/ABCDEFGHIJK/12345/forecast

And now you need to add IFTTT ingredients for the two parameters. Parameters should be added on the end of the URL, separated by a forward slash / . So, to pass the current conditions and current temperature, your URL would look like this:

http://sequematic.com/trigger-ifttt-webhook/ABCDEFGHIJK/12345/forecast/{{CurrentCondition}}/ {{CurrentTempCelsius}}

You can view the full IFTTT applet below. Just click the thumbnail to view the full image.

Using the contains condition

Now you have this set up, how can you build the weather into your sequences?

An example of a comparison might be that if it’s cloudy then you want to open your blinds. There are many different weather conditions which can come from the Weather Underground service, so it may not always be cloudy, but instead something like partly cloudy. Using the contains feature we mentioned at the start of this post you can cover all the different cloudy variations. Here’s what your sequence might look like:

Every day at sunrise this sequence will check if it’s cloudy and then either open or close the blinds

If you have any questions setting up the sequence and IFTTT applet, or some ideas on how to use it differently, please post in the comments below!

Welcome

Welcome to the SEQUEmatic blog. I’ll be using this blog to share news and updates to SEQUEmatic and also walkthrough some examples of how you get use SEQUEmatic to get the most out of your home automation.

The blog is still under construction, but will be up and running shortly with more content so please check back soon!

If there’s something you’d like to learn about, just leave a question in the comments below or contact me and I’ll do my best to address your question in a future post.