Jump to content

program to adjust local on level of devices depending on time of day


funkadelic

Recommended Posts

Hi folks,

 

I want to create a program that adjusts the on level of my devices for daytime vs night time, but I think I am missing something after reading this how-to post: http://forum.universal-devices.com/topic/1305-some-detailed-how-tos/?do=findComment&comment=10451

 

I have a ISY scene "Lighting On level" in which I added all the switches that I want controlled (ie. they are responders to "Lighting On level"), but it doesn't appear to apply the changes to the switches locally?

Night time On level - [ID 000B][Parent 0001]

If
        From     7:00:00PM
        To       8:00:00AM (next day)
 
Then
        In Scene 'Lighting On level' Set 'Kailani Overhead' 30% (On Level)
        In Scene 'Lighting On level' Set 'Kaleo Overhead' 30% (On Level)
        In Scene 'Lighting On level' Set 'Master Closet' 30% (On Level)
        In Scene 'Lighting On level' Set 'Master Overhead' 30% (On Level)
        In Scene 'Lighting On level' Set 'Living Room Overhead' 30% (On Level)
        In Scene 'Lighting On level' Set 'Dining Overhead' 30% (On Level)
        In Scene 'Lighting On level' Set 'Family Room Overhead' 30% (On Level)
 
Else
        In Scene 'Lighting On level' Set 'Kailani Overhead' 100% (On Level)
        In Scene 'Lighting On level' Set 'Kaleo Overhead' 100% (On Level)
        In Scene 'Lighting On level' Set 'Master Overhead' 100% (On Level)
        In Scene 'Lighting On level' Set 'Master Closet' 100% (On Level)
        In Scene 'Lighting On level' Set 'Living Room Overhead' 100% (On Level)
        In Scene 'Lighting On level' Set 'Dining Overhead' 100% (On Level)
        In Scene 'Lighting On level' Set 'Family Room Overhead' 100% (On Level)

I have a separate program that controls the LED brightness, but that applies to the switches as I expected (but they are setting the device values directly vs via a program):

Night time LED brightness - [ID 0009][Parent 0001]

If
        From     7:00:00PM
        To       7:00:00AM (next day)
 
Then
        Set 'Kailani Overhead' 1% (Backlight Level)
        Set 'Kaleo Overhead' 1% (Backlight Level)
        Set 'Master Closet' 1% (Backlight Level)
        Set 'Master Overhead' 1% (Backlight Level)
        Set 'Living Room Overhead' 1% (Backlight Level)
        Set 'Family Room Overhead' 1% (Backlight Level)
 
Else
        Set 'Master Overhead' 50% (Backlight Level)
        Set 'Master Closet' 50% (Backlight Level)
        Set 'Kaleo Overhead' 50% (Backlight Level)
        Set 'Kailani Overhead' 50% (Backlight Level)
        Set 'Living Room Overhead' 50% (Backlight Level)
        Set 'Family Room Overhead' 50% (Backlight Level)

Am I missing a step to make the On level apply locally to the switches?

Link to comment

http://forum.universal-devices.com/topic/20484-adjust-local-on-level/page-2?do=findComment&comment=197386


 


http://forum.universal-devices.com/topic/20831-using-isy-to-set-on-level/?do=findComment&comment=201592


 


Read those 2 posts.  You don't need to read the whole threads. 


 


What you are doing wrong is you are referring to a scene in your "In Scene" dropdown instead of a device.  I know that sounds confusing because it says "In Scene".  But you want to select the device you want to adjust in both the "In Scene" and the "Set" dropdowns.


Link to comment

It is simple, if not intuitive.  To use an example, let us say you have a dimmer switch called switchX, and you want the local ON level (the level to which the load attached to switchX goes when you turn on switchX) to be changed at a given time during the day.  The program would take the form:

 

if

it is a given time of the day

then

in scene deviceX set deviceX to new local level

 

Of course, exact syntax would be generated for you from the dropdown boxes.

 

Let us assume that you want adjust the responder switch (call it switchX) ON level when responding to a scene controller switch (call it switchY).  The form of the statement would be:

 

if

....

then

in scene switchY set switchX to new level

Link to comment

Thanks, @carealtor. Got it to work finally!

 

Wasn't intuitive for me to create a new scene for each device, with the device as the controller, which then enabled the device to appear in the "In Scene" dropdown, and then selecting the device (not the scene) for both the "In Scene" and "Set" dropdowns.

 

post-3648-0-63443700-1486683625_thumb.png

 

-norm

 

 

http://forum.universal-devices.com/topic/20484-adjust-local-on-level/page-2?do=findComment&comment=197386

 

http://forum.universal-devices.com/topic/20831-using-isy-to-set-on-level/?do=findComment&comment=201592

 

Read those 2 posts.  You don't need to read the whole threads. 

 

What you are doing wrong is you are referring to a scene in your "In Scene" dropdown instead of a device.  I know that sounds confusing because it says "In Scene".  But you want to select the device you want to adjust in both the "In Scene" and the "Set" dropdowns.

 

 

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...