Appreciate any help!
Thanks,
Carl
- Code: Select all
tell application "IndigoServer"
if the value of variable "GuestCeilingLight" is "0" then
dim device "Bedroom Guest Lights" to "100"
else
if the value of variable "GuestCeilingLight" is "100" then
dim device "Bedroom Guest Lights" to "35"
else
if the value of variable "GuestCeilingLight" is "35" then
dim device "Bedroom Guest Lights" to "15"
else
if the value of variable "GuestCeilingLight" is "15" then
dim device "Bedroom Guest Lights" to "100"
else
if the value of variable "GuestCeilingLight" is not "0" and the value of variable "GuestCeilingLight" is not "35" and the value of variable "GuestCeilingLight" is not "15" and the value of variable "GuestCeilingLight" is not "100" then
dim "Bedroom Guest Lights" to "100"
end if
end if
end if
end if
end if
end tell