Smoke alarm flashing


#1

How would one go about telling lights to flash indefinitely only while a variable is true?


#2

I think the problem might be the frequency you’ve set the flashing to.
I’m not sure ST can react that quickly. Especially as it’s a predominately cloud based system.
Not sure though as I’ve never needed to try it.
If you can test it try using, say, a 10 second interval for the flashing and work your way down.


#3

Thank you - Even if I change the flash frequency, I’m afraid it will flash 1,000 times before stopping. Ideally it should only flash while the SmokeAlarms variable is true, meaning it should stop as soon as a smoke alarm stops alarming.

I have a feeling I should be able to do something with an Expression or Argument here, but I’m not sure what.


#4

You could use a “While”.
So instead of
IF
Variable is true
Blah
Blah.
Use

WHILE
Variable is true.

Then when the variable becomes false the flashing will stop.


#5

Of course! Thank you.

Hopefully I never have to experience this automation, but just in case…


#6

Looks good to me. But like I said before even 1 sec may be too quick.
Shame you cannot test the sensors to see what happens.


#7

Oh I can test… “any of [smoke devices] changes to tested”


#8

Okay, yeah, flashing doesn’t quite work as expected. I can probably get away with 3-seconds on, 3-seconds off.

Doesn’t matter too much, cause all the other lights will be on, all our phones will be getting SMS and PUSH notifications, the alarms will be beeping, and it will be mass panic until the alarm stops.


#9

Hi!

I tried using this Piston for monitoring my new smoke detectors (except I removed the section that changes the bulb colors).

When testing the Piston I get these errors - any ideas?

Here is a pic of the actual code I have - simplified it for testing to just address a single smoke detector and am only turning on a single light.