It's dark, I'm arriving home, turn lights on....Please

Hey Edoardo,

  1. After a Logicblock is evaluated it may, or may not, run an action - depending upon the result of the Logicblock evaluation
  2. The action described above is to trigger a Webhooks call to IFTTT - this Webhooks call runs a specific IFTTT Maker Event called “lights_on_dark” in IFTTT
  3. The Maker Event is the “IF This” side of the IFTTT Applet and will receive the Webhooks call from Apilio. You’ll see you need a name for the Maker Event in IFTTT as you setup the Webhooks call side of the Applet and that name must be identical in both IFTTT and Apilio for the correct Applet to be triggered. The field in Apilio is called “IFTTT Webhooks Service Event Name”.
  4. The “Then That” side of the IFTTT Applet is activating a scene in Smartlife.

Hope that makes sense.

My problem is that the Webhooks call from Apilio don’t work. there could be a problem on the trigger of Webhooks call? also If I try to test the action from the “show” page of Logicblock it don’t work.

Solved My problem was in the configuration of IFTTT Key.

sorry for disturb

No worries, we’re glad you got it fixed!

Very well described example.
Even though i’m quite familiar with Apilio I always learn more from examples like this from expert like you.
Thank you.

1 Like

Thanks for posting this example. Very helpful to see the actual example. I utilized your framework to build a setup with August Lock and TP-Link switch to switch on certain outdoor lights when the August Lock automatically unlocked based upon the August Lock’s bluetooth geo-location of my phone being within bluetooth range of the lock. The lights stay on for enough time to get out of car and inside house, etc. and then turn off automatically. Also, created a similar one where the August Lock is locked which triggers the same outdoor lights turning off a minute or so late after locking the door to leave.

I was glad to find a solution of multiple conditionals allowing things to work how I wanted. Thank you. It did illustrate to me that we have much more to go to make it easier for Smart Devices to be ubiquitous in a sophisticated way in our lives.

2 Likes

Thanks Chris, great feedback. Might be worth you entering this example in our very simple holiday competition!

Hey Dan, just wanted to say thanks for this (it helped me heaps)

Also thought I would share my customisation based off of your above solution.

First off, I have wifi light switches as well as a couple fans connected to a smart plugs installed through out my apartment here in Cape Town, South Africa.

Just thought Id share my solution.

Using your example above I was able to set up that when I get home after sunset and tell Alexa “Alexa, Im home” she turns off Alexa Guard > Turns on my hallway and lounge lights > Turns on my media centre and Starts playing my Spotify Playlist.

I Also managed to set up Boolean variable/Condition/Logicblock/IFTTT that should the temperature be above 23 degrees on Weather Underground at the time of me telling Alexa “Im home” my fans would also be activated.

I love the future :slight_smile:

Cheers,

1 Like

That are some awesome automations you built!! :heart_eyes:
Thanks for sharing :bowing_man:

Thanks Dylan, awesome feedback. We LOVE it. DanT

Hi everyone! We’ve updated this example to use the new native time conditions, so you can now setup Conditions that use Sunset/Sunrise to control your routines:

:star_struck:

1 Like

And another update, this use case is now available as a quick start template, so maybe give it a go this weekend? :wink:

:point_right:t3: https://app.apilio.com/quick-start/6

1 Like

Hi there, is there any way to get this to work with a Wemo smart plug? I think my logicblock is okay but I’m just trying to figure out how to trigger an action

2 Likes

Hello @akemi12! Yes you can turn your Wemo plug on/off with the Logicblock.

You’ll need to connect these applets:

  1. To turn on the light when you get home, you’ll enable an applet that when it receives an event (could be something like “wemo_plug_on”), then it turns on your Wemo smart plug. Here’s the applet you need to enable, select the event name you setup in your Logicblock:

Turn WeMo Smart Plug ON when Apilio triggers an action

  1. To turn the light off, the applet is similar. If IFTTT receives the event “wemo_plug_off”, then turn off your Wemo smart plug. Here’s the applet you need to enable:

Turn WeMo Smart Plug OFF when Apilio triggers an action

2 Likes

Thank you very much! :blush:

3 Likes

Hi, can you help me?, I already have some routines with IFTTT geofence/wifi location trigger some thinks like light, play music in alexa, etc. But I don’t know how to configurate that te air conditioner turn on due the temperature?, I can no find some applet that send the actual temperature degree for the logiblook evalute if turn on the AC or not. Thanks.

1 Like

Hey thanks for this. Any chance of sharing a bit more info? How are you getting the temperature into Apilio? Is it a Tuya/Smartlife AC product or something different?

Hi Dan, sorry I not explain my self very good, I don’t have (yet) any product that can sense the temeperature, so i want to use any service of weather like google for example to know the outside temperature.

My first think was that with IFTTT for sure I would find something but is not like that.

There are some device with IFTTT compatibility where you could send temperature data to Apilio. Also, we have an interface to any Tuya/Smart Life compatible devices. Those usually send the temperature faster and more frequent.

1 Like

Have a look at the sheet embedded with this article to see some temp sensors confirmed to work with Tuya.