Script example 2: Fading RGB lights

Freek-Jan Buijsman
Freek-Jan Buijsman Administrator
August 2017 aangepast in Native scripts
Example 2a: Fading RGB lights 1
#Example for fading RGB lights 1
#This example fades between 3 colours that are set in this script with a fixed speed.
FADE RGB(505/Colour wall) TO 255,0,0 IN 20 SEC STEP 100 #full red
FADE RGB(505/Colour wall) TO 0,255,0 IN 20 SEC STEP 100 #full green
FADE RGB(505/Colour wall) TO 0,0,255 IN 20 SEC STEP 100 #full blue
RESTART
#You can use a trigger or a scenario to start or stop this script
#For example, start this script with a scenario and stop it with the Room Off button (trigger)
Example 2b: Fading RGB lights 2
#Example for fading RGB lights 2
#This example fades between 3 colours that can be set with an iOS or Android device and the speed is a    dimmer value which can also be altered on the device.
FADE RGB(505/Colour wall) TO RGB(501/RGB colour1) IN BYTE(500,RGB fade speed)
SEC STEP 100
FADE RGB(505/Colour wall) TO RGB(502/RGB colour2) IN BYTE(500,RGB fade speed)
SEC STEP 100
FADE RGB(505/Colour wall) TO RGB(503/RGB colour3) IN BYTE(500,RGB fade speed)
SEC STEP 100
RESTART
#You can use a trigger or a scenario to start or stop this script
#For example, start this script with a scenario and stop it with the Room Off button (trigger)