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

lahan2020

macrumors newbie
Original poster
Jul 7, 2020
3
0
I have a homekit alarm system, then I arm the system I would like a light strip to blink red for 1 s.

I can easy setup this in e.g. home+, so when arm'ed my light strip turn red for 1s, but it will not return to my existing color.


So how and in what app can I implement this:
If Alarm = Away

if light strip = on
when
light strip = on
light strip = red
wait for 1s
light strip = white

if light strip = off
when
light strip = on
light strip = red
wait for 1s
light strip = white
light strip = off
 

waw74

macrumors 601
May 27, 2008
4,692
960
you should be able to do that in a shortcut

start in the home app, and make an automation
when you get to the "add devices" screen, scroll to the bottom, and make shortcut

search home for actions
"get the state of home"
fill in strip and power state

now make an "if" item
select input condition, and then magic variable
power state should appear, select that

now make your "if on" between the "if" and the "otherwise"
and your "if off" between the "otherwise" and "end if"

search for "control home" to get actions to control the light
and "wait" for your waits.
 
  • Like
Reactions: dotme and Itinj24

d.steve

macrumors 6502
Jan 6, 2012
351
150
> but it will not return to my existing color.

@waw74, last time I checked for this in shortcuts, I ran into two issues:
- I couldn’t pull color data from a light bulb.
- even if you could, i couldn’t use a variable to set the color of a bulb back to what it was. Could hard code a color, though.

Edit: oh, the OP posted to return to white in the example. That’s doable, but not “return to whatever color it was before flashing red” (unless that color was white!).
 

lahan2020

macrumors newbie
Original poster
Jul 7, 2020
3
0
Thanks, I am quite sure it can be done this way.
I also found a video from Shane Whatley, showing how to configure this in the Home app.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.