Thanks Thanks:  0
Likes Likes:  1
Results 1 to 8 of 8

Thread: Toggle and Conditional Lighting

  1. #1
    Junior Member
    Join Date
    Apr 2019
    Posts
    4

    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

  2. #2
    Senior Member
    Join Date
    Oct 2013
    Posts
    1,161
    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.
    LED, Incorporated
    Raleigh, NC 27614

  3. Likes MickDD liked this post
  4. #3
    Junior Member
    Join Date
    Apr 2019
    Posts
    4
    Quote Originally Posted by randyc View Post
    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

  5. #4
    Junior Member
    Join Date
    Apr 2019
    Posts
    4
    Click image for larger version. 

Name:	Screenshot 2019-04-06 08.10.37.png 
Views:	18 
Size:	322.1 KB 
ID:	848

    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

  6. #5
    Senior Member
    Join Date
    Oct 2013
    Posts
    1,161
    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.
    LED, Incorporated
    Raleigh, NC 27614

  7. #6
    Junior Member
    Join Date
    Apr 2019
    Posts
    4
    Quote Originally Posted by randyc View Post
    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

  8. #7
    Junior Member
    Join Date
    Jun 2017
    Posts
    4
    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….
















    Quote Originally Posted by MickDD View Post
    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

  9. #8

    thanks

    Excellent site.

Similar Threads

  1. Caseta 4-way Mechanical Toggle
    By dhamsher in forum General Discussion - CAS
    Replies: 2
    Last Post: 03-18-2019, 12:59 PM
  2. Request for Pico to Toggle (& other things)
    By paulhanks in forum Programming - RA2
    Replies: 6
    Last Post: 10-10-2017, 11:57 AM
  3. Toggle vs LED
    By arikadiusz in forum Programming - HWQS
    Replies: 1
    Last Post: 09-17-2017, 08:16 PM
  4. CCI toggle on a keypad
    By Ty W. in forum Programming - HWQS
    Replies: 0
    Last Post: 01-07-2014, 02:51 PM
  5. Manual Keypad Programming - Toggle
    By paulhanks in forum Programming - RA2
    Replies: 1
    Last Post: 12-24-2013, 09:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •