-
Toggle and Conditional Lighting
Hi All,
hopefully there is a simple answer to this with conditional or similar.
We have a button on a SeeTouch keypad next to the clients bed, he would like to turn on and off with a toggle the whole house.
However the tricky bit is this, he would like if the button is used after 12am - 7am it would turn off and on 10% all lights. and if between 7am-11:59pm it would toggle on and off 100% all lights
in my head its like this.
Code:
if (time = 12am to 7am){
Toggle on(10%) / off
**else if (time = 7am to 12am){
Toggle on(100%) / off
**
is this possible?
I looked all over the software but can't find the logic to do it.
Thank you very much for any advice.
MickD
-
I don't about simple but yes it can be done.
In the programming screen, there is a drop down near the top/center called "program type." Select conditional from the drop down.
You can stack the conditionals and it will execute them all, in order, every time the button is pressed.
-
Post Thanks / Like - 0 Thanks, 1 Likes, 0 Dislikes
-
Originally Posted by
randyc
I don't about simple but yes it can be done.
In the programming screen, there is a drop down near the top/center called "program type." Select conditional from the drop down.
You can stack the conditionals and it will execute them all, in order, every time the button is pressed.
Yes, I thought as much.
It needs allot of if time = do this, else do this.
and if lights = off do this and if lights on do this as sub IF's.
My thought process is to
1) Set a variable (Light Brightness)
100%
10%
use the time clock feature to set 100%, 10%
I.E
if the time is 12am to 7am set Light Brightness to (10%) else (100%)
2) Execute an IF against the variable
2) Execute an AND against the master bedroom lights being either OFF or ON
If Variable Light Brightness = 10% And Master bedroom lights are OFF THEN Switch all Lights on at 10%
ELSE Variable Light Brightness = 100% And Master bedroom lights are OFF THEN Switch all Lights on at 100%
ELSE Master bedroom lights are ON THEN Switch all Lights off at 0%
Hopefully using shared scenes that should do it... if you can use shared scenes...
Thank you
MickD
-
Hopefully that will do it, can anyone see anything I am missing
Action 1 = all lights 10% (except switchable loads, these are all off).
Action 2 = all Lights 100%
Action 3 = All Lights OFF
I know its only going on the basis that the master bedroom lights are on/off but this is the room they will be pressing the button from and its the room they will be in when pressing it...
I nicer way would be to have conditional on a toggle action. but this does not exist.
Thanks all.
MickD
-
I find conditionals create more confusion than benefit. When users push a button they are thinking on/off/dim. They don't want to think, "if it is after 12 but before 7 and the lights are already on - x happens. If it is after 12 but before 7 and the lights are off - y happens. If it is before 12 ...."
The only conditional I use is one for a shared bath fan. For other applications I use multiple buttons.
-
Originally Posted by
randyc
I find conditionals create more confusion than benefit. When users push a button they are thinking on/off/dim. They don't want to think, "if it is after 12 but before 7 and the lights are already on - x happens. If it is after 12 but before 7 and the lights are off - y happens. If it is before 12 ...."
The only conditional I use is one for a shared bath fan. For other applications I use multiple buttons.
I agree, this was client driven not my choice...
MickD
-
I would do this with a variable
-Create a variable called All Lights On/Off
The variable has 2 states
Default: 12:00am-7:00am
State 1: 7:00am-12:00am
-Create a timeclock called All Lights On/Off
First timeclock event 12am-7:00am. Set the timeclock to 12:00am
Second timeclock event 7am-12am. Se the timeclock to 7:00am
-On the right side of the screen under Assignable Items, press on Show All, filter assignable items to variables. There you will see the variable that you previously created.
Select the timeclock 12am-7am and assign it to the variable “All Lights On/Off” 12:00am-7:00am
Select the time clock 7am-12am and assign it to the variable “All Lights On/Off” 7:00am-12:00am
-Now that you have all this set up go to the button that you want to program
Select the button
Change button Program Type to: Single variable, “All Lights On/Off”
Select 12:00am-7:00am
Button type: toggle, Led Logic: Room
When press on: program all the lights in the house to 10% . You can also check “Use shared scene” if you have any.
Off level to 0%
Now select 7:00am-12:00am
Button type: toggle, Led logic: Room
When press: Program all the lights in the house to 100%. Again, check “Use shared scene” if you have any set up.
Off level to 0%
In this case the timeclock is defining when the light levels change when the button is pressed.
I hope this helps….
Originally Posted by
MickDD
Hi All,
hopefully there is a simple answer to this with conditional or similar.
We have a button on a SeeTouch keypad next to the clients bed, he would like to turn on and off with a toggle the whole house.
However the tricky bit is this, he would like if the button is used after 12am - 7am it would turn off and on 10% all lights. and if between 7am-11:59pm it would toggle on and off 100% all lights
in my head its like this.
Code:
if (time = 12am to 7am){
Toggle on(10%) / off
**else if (time = 7am to 12am){
Toggle on(100%) / off
**
is this possible?
I looked all over the software but can't find the logic to do it.
Thank you very much for any advice.
MickD
-
Post Thanks / Like - 0 Thanks, 1 Likes, 0 Dislikes
-