Jump to content

Insteon KPL/Fanlinc Programming - Adjust Scene Light Level


bobofett13

Recommended Posts

Posted

Hello,

I'm new to the ISY and just started working on learning the programming.  My first run was going to change the On Level for the master bedroom light based on the time.  Between 10:30PM and 5:30AM next day, I wanted to set the On Level 25% and the ramp to 6.5 seconds.  The rest of the day, I want the On Level to 100% and ramp at 0.5 seconds.

 

My system in the master bedroom is a KPL (no load attached) and the FanLinc in the ceiling fan.  There are 5 scenes setup for the fanlinc, Light On, Fan Low, Fan Med, Fan Hi, and Fan Off.  The 4 fan buttons are grouped as mutually exclusive buttons.  Button A is set to control the Light scene.  The buttons from the KPL are set as controllers in the scene, and then the FanLinc is the responder.  

 

 

<?xml version="1.0" ?><triggers><d2d><trigger><id>6</id><name>Bedroom_Lights Copy Copy</name><parent>3</parent><if><and /><schedule><from><time>63000</time></from><to><time>73800</time></to></schedule></if><then><ldp><controller><group>10018</group></controller><responder><node>23 F AC 1</node></responder><control>OL</control><action>68</action></ldp><ldp><controller><group>10018</group></controller><responder><node>23 F AC 1</node></responder><control>RR</control><action>25</action></ldp></then><else><ldp><controller><group>10018</group></controller><responder><node>23 F AC 1</node></responder><control>OL</control><action>255</action></ldp><ldp><controller><group>10018</group></controller><responder><node>23 F AC 1</node></responder><control>RR</control><action>28</action></ldp></else><comment></comment></trigger></d2d></triggers>

 

Any ideas on what changes are needed to make the KPL/FanLinc play well together.

Posted

It looks like my attempt at copying the program didn't work...  Here is the manual version of copy/paste...

 

If 

        From 10:30:00PM 

        To 5:30:00AM (same day)

 

Then

        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Controller' 25% (On Level) 

        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Controller' 6.5 Sec (Ramp Rate) 

 

Else

        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Controller' 100% (On Level) 

        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Controller' 0.5 Sec (Ramp Rate) 

 

'Master_Bedroom_Fan_Light' is my scene definition

'Master_Bedroom_Fan_Controller' is the FanLinc

 

FYI - I have made sure that that the Run (if)  and Apply are selected from the Summary tab once I make changes.

Posted

Unless time runs backward you can't go from night to morning on the same day.

Posted

I guess that could be a problem...  Left over from when I was testing my program, I had the time set from 6:30 to 9:30 (same day).

 

When you look at the scene, the On Level and Ramp are set to the values in the program, but the light comes on at 100%

Posted

Let's start again.  Here is the program as I'm testing it now.  FYI - The current time on the ISY is 8:34PM PDT.  The summary tab shows the "Last Run Time" as 8:37PM and the status is shown as "TRUE".  With the status as "TRUE", I believe we should be on the "Then" branch of the program.  But when the KPL button A is pressed the light comes on at 100%.

 

When I click on the scene, the sliders are showing the settings as defined in the "Then" branch, but the light output is shown at 100%

If
        From     7:30:00PM
        To       9:30:00PM (next day)
 
Then
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Controller' 27% (On Level)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Controller' 6.5 Sec (Ramp Rate)
 
Else
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Controller' 100% (On Level)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Controller' 0.5 Sec (Ramp Rate)
 

Posted

From 7:30PM to 9:30PM (next day) will always be true.

Posted

If
From 7:30:00PM
To 9:30:00PM (same day)

Then

 

Also the Program is triggered True only at exactly 7:30PM and triggered False only at exactly 9:30PM.  

 

To test change the Program to a From time that is a few minutes past current time.  At the From time the Program will run the Then.   Set the To time to something a few minutes after the From time so the Else leg can be tested.

Guest
This topic is now closed to further replies.

×
×
  • Create New...