Connecting Loxone to existing smart home devices using IFTTT (Part 1)

I have a new Loxone system in my home. I installed it as an upgrade to my existing Frankenstein system made of several Alexa-connected devices of varying quality and price. I wanted a more professional system so I chose to go with Loxone. The quality was a major step to to what I’m used to and I have found it to be an amazing, reliable and powerful system, but it is just not good at working with my existing devices.

After working with my Loxone partner in setting up the system to my requirements, I was left with a house with 2 systems. My existing Alexa controlled smart home, with around 20 devices from different brands including fans, bulbs, smart plugs, LED strips, plus Alexa routines and scenes, and my Loxone system which controls my blinds, ceiling lights and heating.

Controlling Loxone with Alexa

Image for post

1home was definitely the easier option and they have a free trial which worked great, but it was quite expensive and I’m a fan of open source so I went with Openhab. Openhab definitely has a learning curve, even for an experienced programmer like me, but with the help of the documentation I managed to write my items file to import my Loxone “Things” into Openhab 2.5, which I have running on a Raspberry Pi wired into my network. Now I can say “Alexa, close the living room blinds” and it will connect to Loxone and close the blinds. I can ask Alexa what temperature it is in a room, or to dim the ceiling lights and it all works thanks to Openhab cloud. I can share my items file in another blog post if someone is looking for that information (let me know in the comments). But this post is about controlling other services from within Loxone, not contolling Loxone from other services.

Setting SmartLife scenes from Loxone

Most of my devices are Tuya hardware so they are compatible with the SmartLife app. These include plugs (UKUS), LED strips (UKUS) and smart bulbs (UKUS). I have a number of scenes set up in the SmartLife app for things like morning scene, day scene, evening scene and night scene, which sets my lamps and smart bulbs throughout the house to various colours and brightness. I’ve also set up Alexa routines to trigger these scenes at different times of the day (including sunset).

These Chinese Tuya devices are all cheap and cheerful, and you get what you pay for, so if you can spare the money I’d recommend getting your own hub from someone like Philips (UKUS) or SmartThings (UKUS) and integrate their devices. Personally, I chose to use hub-free devices as I had Alexa already, but the free SmartLife app is a bit clunky and the Philips Hue / Zigbee products are better quality, better supported, more reliable but more expensive (although still half the price of Loxone).

Regardless of the make, Loxone doesn’t integrate with any of these cheaper devices easily (except maybe KNX). It makes sense I guess, they have an ecosystem that they can control, give support and secure. If they let other device manufacturers connect then they will have accountability for their support and security which they don’t want to do. Loxone products are much better and more reliable than most competitors, although they are sometimes 5 times the price. I do wish they would integrate with Alexa/Google Home natively though, it is such a useful feature for houses that already have smart voice control and I’m not sure they can ignore it forever.

Triggering IFTTT commands from Loxone

It all sounds quite fun, but beware that when sending a command from Loxone, there can be delay of up to 15 seconds while the message gets passed from web service to web service in the cloud and finally back to your device. Different devices probably have different response times, for example my smart plugs are quicker at firing commands than my LIFX LED strip (UKUS), and I imagine Philips Hue or SmartThings is quicker to respond, although I haven’t tested that.

From within IFTTT we are going to use something called a “Webhook”. This is basically a URL that when it is called it will run a command. This webhook is the thing that is going to be triggered by an action within Loxone using virtual outputs.

I’ll assume that you’ve created an account on IFTTT.

Step 1: Create a new applet

Image for post

Step 2: Click “If This” and search for “webhook”

Image for post

Step 3: Choose “Receive a web request”

Image for post

Step 4: Name your event. The name doesn’t particularly matter, I chose “dim_kids_room” (It shouldn’t have spaces or any symbols other than underscore or dash)

Image for post

Step 5: Now go to the “Then That” part

Image for post

Step 6: Here is the part when you can set up your action. You can connect smart home services, like Philips Hue, SmartThings, SmartLife (Tuya devices), LIFX, Nanoleaf (UK, US), Nest, Samsung Smart Devices, tado, WeMo, WIZ, Z-Wave, Zigbee etc.

In this case I’ve chosen SmartLife

Image for post

Step 7: Set up the thing you want to do. Most of the time you will have to set up the thing you want to do in the app beforehand. For example in my case I need to set up a few devices and create a scene in the SmartLife app, but it would be the same with Hue or SmartThings. You will be asked to connect your account with IFTTT, so you’ll need your password for the service. In my case, I want to Activate a Scene, so I choose that option

Image for post

Step 8: After connecting my account I can choose my scene from the dropdown, I’ll choose “Dim kids room”

Image for post

Step 9: Review and finish

Image for post

NOTE: The free IFTTT plan allows you to create 3 applets for free. If you need more then you have to pay a monthly fee to use the service

Step 10: Go to your profile menu in the top right and choose “My services”

Image for post
Image for post

Step 11: Choose Webhooks, then choose “Documentation” in the top right

Image for post

Step 12: Your key is at the top and is unique to you, so it should be kept secret, otherwise other people can trigger your actions. You can click on the {event} part of the url to replace it with your event name from Step 4. Make a note of your event URL, the one beginning with For example my URL would be — Replace “dim_kids_room” with your event name and the “ABCDE…” part with your own key.

Image for post

To Be Continued…

Some recommended products

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s