I'm curious as to why there doesn't seem to be any functionality for routines with conditional statements in Alexa. Surely it wouldn't be hard for the developers to implement.
For example, I've just bought Philips Hue which has gone in the pendant light in my living room. I also have a lamp in the living room which is in an Amazon smart plug.
I've connected the smart plug and the hue to alexa so i can set routines to control them etc.
However, when I'm relaxing in front of the TV, i'd like a statement which can 'swap' the lights round. So, if the lamp is on and the lights are off, this would swap them so the lights are on and the lamp is off. and vice versa. So, if I say 'alexa, swap lights' or some more eloquent phrase, I want Alexa to be able to detect which device is currently on' and switch accordingly.
Right now, I've set up 2 routines. When i say 'Alexa, swap lights' then the Hue lights will turn off and the lamp will come on. When I say 'Alexa, switch lights' then vice versa. I would like to be able to accomplish this in 1 statement. So, when I say 'Alexa, swap lights' then Alexa will check IF lamp is on and lights are off, then swap accordingly'... or vice versa.
Is there any way to do this with 1 statement? I've also downloaded IFTTT but that doesn't seem to be much use
As you have discovered, at this time, Alexa routines cannot be setup using conditional statements. If you'd like to express interest in such a feature, feel free to submit your feedback via the Alexa app or the following link: