I am looking to design a piston that:
In away mode will flash my hue lights alternate red/blue ( eventually I want all my hue light to flash, at present I am just working on one set. They should flash for x number of times and then reset to a set colour/level.
I can get one light to flash when I had more lights in the string the lights would all flash differently which was weird.
Once presence is detected, of one the mobile devices, the lights should set themselves to a colour and level.
I tried pasting my piston but it wont paste…
//
/* play */
//
/* Author : Gareth T /
/ Created : 12/1/2017, 1:20:24 PM /
/ Modified : 12/1/2017, 2:17:33 PM /
/ Build : 3 /
/ UI version : v0.2.0ff.20171129 */
/**************************************************************/
execute
if
(
Any of Denise Thomas’s Android’s or Gareth Thomas’s Android’s presence is not present
and
Any of Motion Sensor Bathroom’s or Motion Sensor Lounge’s motion is active
and
Smart Home Monitor status is Armed/Away
)
then
with
Front Door Colour 1
do
Flash Red 1 seconds / Blue 1 seconds for 100 times (only while Away);
end with;
with
Front Door Colour 2
do
Flash Blue 1 seconds / Red 1 seconds for 100 times (only while Away);
end with;
with
Denise Thomas’s Android and Gareth Thomas’s Android
do
Send PUSH notification “Motion Detected” and store in Messages (only while Away);
end with;
if
Any of Denise Thomas’s Android’s or Gareth Thomas’s Android’s presence is present
then
with
Front Door Colour 1 and Front Door Colour 2
do
Set color to White;
Adjust level by 25%;
end with;
end if;
end if;
end execute;