Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

parseckadet

macrumors 68000
Original poster
Dec 13, 2010
1,509
1,306
Denver, CO
So I've been trying to create a few automations using convert to shortcut and they seem really hit or miss. For example, I have a Hue smart button. It's their "Dimmer Switch" but I just use it as four separate buttons. And on a button press I'm trying to set it up as a simple toggle. When button 1 is pressed, if light A is on turn it off, otherwise turn it on. That one works perfectly. I did the same thing with button 2 but for a different light. When button 2 is pressed, if light B is on turn it off, otherwise turn it on. This shortcut refuses to run when I press the button though.

When I test this shortcut in the Home app it works perfectly, but when I press the actual button nothing happens. Interestingly, it seemed like the first one that I described took a minute or two to start working, like my home hub needed a minute to sort things out, but then it was fine. I've tried restarting both of the home hub devices I have, both AppleTVs (one HD and one 1st gen 4K). That didn't seem to do the trick. Anyone know what else I can try? I'm crossing my fingers that the release of 16.1 today will sort this out, but I'm also not holding my breath.
 
So I've been trying to create a few automations using convert to shortcut and they seem really hit or miss. For example, I have a Hue smart button. It's their "Dimmer Switch" but I just use it as four separate buttons. And on a button press I'm trying to set it up as a simple toggle. When button 1 is pressed, if light A is on turn it off, otherwise turn it on. That one works perfectly. I did the same thing with button 2 but for a different light. When button 2 is pressed, if light B is on turn it off, otherwise turn it on. This shortcut refuses to run when I press the button though.

When I test this shortcut in the Home app it works perfectly, but when I press the actual button nothing happens. Interestingly, it seemed like the first one that I described took a minute or two to start working, like my home hub needed a minute to sort things out, but then it was fine. I've tried restarting both of the home hub devices I have, both AppleTVs (one HD and one 1st gen 4K). That didn't seem to do the trick. Anyone know what else I can try? I'm crossing my fingers that the release of 16.1 today will sort this out, but I'm also not holding my breath.
I do these types of conditional automations in the Eve app. Very similar to yours except I’m using LIFX switches. It works flawlessly. The only thing I don’t like about this way is you have to create a scene that turns the lights off which is triggered by the button press. Eve or other third party apps don’t let you select devices a la carte when creating automations. It has to trigger a scene.

Do the normal when button is single pressed, turn on light in the Home app. Create a scene that turns off that light in the Home app as well.
Go to the Eve app under rules and create new. When button is single pressed and under the condition that the power of the light is on, the rule will engage the scene you previously created that turns the light off. I’m sure you’ll get it.

I actually tried to do this in Shorcuts originally but I couldn’t figure it out. I think it has something to do with the LIFX switch though and the way it’s exposed to HomeKit.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.