Diary of a newbie - you can learn from my mistakes

I don’t what I’m doing but thought I would record lightbulb moments for others to learn from. Apologies if I am leading you astray, my intentions are good, and maybe more experienced Apilions will reply with a redirect!

2 Likes

DEVICES: This option is the last on the dashboard. Go here to sync your internet widgets, little white boxes to Apilio. This I did using the sign-in details that I have used to install my widgets (eg Tuya App log in) and was soothed when all my Tuya devices immediately loaded.

However I have been finding I can get a logicblock to run as intended once and never again, and have begun to use the times in conditions to try and get ahead. All very frustrating.

Tonight I returned to DEVICES and discovered if I click on the name of one, there is an edit button at the bottom of the screen whereby you can turn on monitoring. I am guessing that this means Apilio will monitor that facility on that widget. So slide the button across to switch on monitoring. You can even drag the facility to the top of the list.

Don’t forget to save.

So maybe now I can make progress.

:shushing_face: I won’t tell if you don’t

3 Likes

MY VERY FIRST TUYA RECIPE:

Using 2 internet sockets, with nightlights of different colours, my aim was that if the red plug is turned on using the Tuya App, then Apilio would turn on the orange plug.

1 condition, 1 logicblock

CONDITION - Select TUYA as the type. Give title. Select the device, for me its Red Plug ( as that’s how I have named it in the Tuya app) This should load a couple more fields, Status: and then and “it must be” I think different manufacturers may have different variations available. For mine the Status is “switch one” and it must be is “on”

Finally tick the box that means that if this condition is met it can trigger a logic block

LOGICBLOCK So I started a new logicblock and labelled it. Next all the conditions I have created as triggers were listed, so I ticked in the box with the right name.

Going down to the actionchain I selected TUYA and again selected my device - mine is the orange plug - and this time you choose an action and a value. Again these vary from device to device, mine were switch 1 and on.

Save.

Finally using my phone, I turned the red socket on, using your tuya app and… Ta da… orange plug comes on and the celebrations start.

:partying_face:

(as usual, if I have got this wrong, please will someone experienced correct me)

2 Likes

Awesome - thanks for sharing! :star_struck:

1 Like

This sort of post is so helpful for newbies, thanks so much for sharing!

RECIPE 2 - Using Temperature as a condition, with a logicblock with an action designated for if the condition is true OR if the condition is false The emboldened text is the differences between my first recipe and this one.

Using a temperature sensor (thermometer) and 1 internet socket, with an imaginary heater (nightlight orange) plugged IN, my aim was that if temperature is below 17 degrees, then Apilio would turn on the orange light and if it is not it would turn it off.

1 condition, 1 logicblock

CONDITION - Select TUYA as the type. Give title. Select the device, for me its Orange temperature( as that’s how I have named it in the Tuya app) This should load a couple more fields, “status” this time is var temp and the “must be” is less than finally add the number - for me 17

Finally tick the box that means that if this condition is met it can trigger a logic block

LOGICBLOCK So I started a new logicblock and labelled it. Next all the conditions I have created as triggers were listed, so I ticked in the box with the right name.

Going down to the actionchain I selected TUYA and again selected my device - mine is the orange plug - and this time you choose an action and a value. Again these vary from device to device, mine were switch 1 and on. This is for when the condition has been found true -the room is lower than 17

This time I added an action for if the temperature higher than 17. The condition has been found false:

Tuya selected/Device selected (orange plug again)/Action selected(switch one)/ and finally the “value” is off**

Save.

Testing temperature condition is a little hard to control. I chose my room temperature as the lower variable and then when I needed the temperature to go up I tucked the thermometer in bed with me! I’m sure under one’s arm would be as good!

:face_with_thermometer:

1 Like