Hi Alex
Here is how I have my Rako set up
Individual channels can be selected by pushing the apropriate button. Pushing it again will deselect the channel and go back to scene control. When any button is selected the white border around it turns orange. The colour change icon is only visible when the channel selected can be colour changed.
I've set up a seperate device called 'RAKO' with all the RS232 codes on for all my rako rooms. I find it easier this way then defining them on my 'control' pages.
I have these functions defined at page level
//Define function to either fade whole room up or individual channels
function FadeUp()
{
if (C==0)
{
CF.widget("FADEALLUP" , "CONSERVATORY", "RAKO").executeActions();
}
else
{
CF.widget("FADECH"+C+"UP" , "CONSERVATORY", "RAKO").executeActions();
}
}
//Define function to either fade whole room down or individual channels
function FadeDown()
{
if (C==0)
{
CF.widget("FADEALLDOWN" , "CONSERVATORY", "RAKO").executeActions();
}
else
{
CF.widget("FADECH"+C+"DOWN" , "CONSERVATORY", "RAKO").executeActions();
}
}
//Define a function to stop the whole room or individual channels fading
function StopFade()
{
CF.widget("STOP" , "CONSERVATORY", "RAKO").executeActions();
}
'C' is a variable that is set when any of the channels are selected.
Then on the fade up and down buttons I have these
FadeUp();
onRelease = function()
{
StopFade()
}
and
FadeDown();
onRelease = function()
{
StopFade()
}
Last edited by Deaky
on May 6, 2008 01:52.