Jump to content

Fanlinc Light - Changing ON LEVEL through programs


bobofett13

Recommended Posts

I'd like to try this post again.  I posted this question a few weeks ago (with much confusion), and would like to revisit this problem...

 

Here is the setup that I'm trying to control.  In the master bedroom, I have a KPL with no connected load with scenes controlling the fanlinc controller.  Scene A turns the fanlinc lights on/off.  Scenes C through F are for the fan.  Scene B is a "Master Light Off" scene.

 

I am trying setup the lighting scene in the master bedroom to run at 100% during the day with a .5 second ramp rate, and at night changing the output to 25% with a 9 second ramp rate.  See the program below (Note - I have the time set to 7:00PM to 9:30PM (SAME DAY) for testing.  I'm adjusting the early time to make my IF true/false and then saving.  Once saved, I run(IF) from the PROGRAM/SUMMARY tab):

 

If
        From     7:00:00PM
        To       9:30:00PM (same day)f
Then
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
 
Else
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 100% (On Level)
 
 

I'm adjusting the times to make the "If" statement true or false.  I'm checking the SUMMARY tab and then run(IF) and check the status.  As expected, I'm seeing true/false as I would expect (see 1.jpg attached).I check the scene and I'm seeing the output and ramp rate set as expected in both conditions.  See 2.jpg and 3.jpg attached.  The problem that I'm having is the actual light output does not change for either condition.  The light is always at the 100% output and .5 second ramp rate. 

 

Is there something else that I need to set for the fanlinc to resond properly?  

post-5003-0-70871600-1412908744_thumb.jpg

post-5003-0-60604700-1412908756_thumb.jpg

post-5003-0-94214700-1412908763_thumb.jpg

Link to comment
If

        From     7:00:00PM

        To       9:30:00PM (same day)

And Control 'device that controls light' is switched On

 

or

 

And Status ...

Link to comment

It didn't like that either.  I modified the code as shown below, and then pressed the KPL button for the light.  I can see the time change for the "Last Run Time", but the lights are still running at 100%.  

If
        From     7:30:00PM
        To       9:30:00PM (same day)
    And Control 'Master_Bedroom_KPL_Light' is switched On
 
Then
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fanlinc_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fanlinc_Light' 25% (On Level)
 
Else
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fanlinc_Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fanlinc_Light' 100% (On Level)
 

Link to comment

It looks like you are setting the on level and ramp rate for the main scene, when ISY is the controller.

 

The "In scene" drop down is used to select the controller.  Choose the scene name for when ISY is controller, choose a specific device when when that device is controller.  This allows flexibility.

 

For your situation, first choose the actual controller (in your case "Master_Bedroom_Light_Fanlinc") and then set "Master_Bedroom_Fan_Light" as appropriate. 

 

I think it will be something like:

If
        From     7:30:00PM
        To       9:30:00PM (same day)
 
Then
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
 
Else
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 100% (On Level)

If you also want ISY to have the same way of handling it should you invoke it from a program, do both:

If
        From     7:30:00PM
        To       9:30:00PM (same day)
 
Then
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
 
Else
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 100% (On Level)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 100% (On Level)
Link to comment

If
         From 7:30:00PM
         To 9:30:00PM (same day)
  And Control 'Master_Bedroom_KPL_Light' is switched On

Then
          In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fanlinc_Light' 8.5 Sec (Ramp Rate)
          In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fanlinc_Light' 25% (On Level)

          Set Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fanlinc_Light' On

Link to comment

You do not need the "Control....switched on" here.

 

The KPL is already a controller.  At 7:30 PM & 9:30 PM, it simply modifies the on level and ramp level.

If you add the "Is switch on" the light will turn on immediately to 100% (or whatever it is set to), ISY will reset the on and levels, and then it will go to the new levels.   That is not what is desired.

Link to comment

I tried setting the both the controller (KPL) and responder (fanlinc) ON LEVEL and RAMP RATE in the program, but that didn't work either.  I'm wondering if the KPL is over-riding the setting in the ISY.  My understanding about the Insteon devices is the scene data is stored locally at each device, and then all devices in the scene respond to the scene at the same time.  Could this be a case where the ON LEVEL and RAMP RATE are set in the ISY, and not written down to the Insteon devices?  Like I mentioned earlier, these parameters seem to be set properly in the ISY (see the screen captures 2 & 3 from initial post).   Do you need to command the ISY program to write the new ON LEVEL and RAMP RATE for this to take affect?

Link to comment

PurdueGuy will find the problem.

 

Note that the screen captures are not looking at the right information. The ISY Scene name was select which affects when the Scene name is used in a Program. Click on the Red KPL button to see the responder On Level and Ramp Rate that are used when the KPL button is pressed. These are NOT the values displayed when the Scene name is selected.

Link to comment

The only point that I wanted to make with the screen shots, was that the program is making changes.  But these changes are either programmed wrong or there is a basic step that I'm missing.  I'm just getting started with the ISY and trying to learn the tricks for programming it.  

 

It looks like this forum has some great resources that are very willing to help.  A great place to learn!!

Link to comment

According to the programs you showed earlier,  you had the main scene selected.   In doing so, that is when ISY is controller.

 

Have you tried my suggested program from post #4?

 

Since your scene name and device name are so similar, be very sure you have the right things selected in the drop down boxes.

Link to comment

I noticed my naming convention was not the best and that could be part of my confusion.  

 

Now that I read that post again, it looks like I didn't choose the right menu items.  I have highlighted the "THEN" statement and want to be clear with your intent.  BLUE is the device (in this case fanlinc) and RED would be the scene name.  Is my interpretation correct?   So the last to lines of the statement have the scene setting the scene's parameters?

 

If
        From     7:30:00PM
        To       9:30:00PM (same day)
 
Then
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
 
Else
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 100% (On Level)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 100% (On Level)
Link to comment

My naming convention is confusing me again...  So the text in BLUE would be the KPL button, the text  in RED after the set would be the SCENE, and the text in GREEN would be the device (Fanlinc)?

 

Then
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
Link to comment

That is not the correct interpretation.

 

Red would be the controller, and blue is the device you want to modify with respect to that controller.

For the first choice (the red one) you have two choices for this scene:

 - Chose the SCENE NAME if you want to modify it when ISY is controller

 - Chose the CONTROLLER NAME if you want to modify it for that controller

 

According to your pictures above, you have two devices:

Master_Bedroom_Fan_Light - this is the light node of the FanLinc

Master_Bedroom_Light_Fanlinc - this is a KPL button, associated to the Fanlinc light

 

Are those correct?

Link to comment

 

My naming convention is confusing me again...  So the text in BLUE would be the KPL button, the text  in RED after the set would be the SCENE, and the text in GREEN would be the device (Fanlinc)?

 

Then
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Light_Fanlinc' Set 'Master_Bedroom_Fan_Light' 25% (On Level)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom_Fan_Light' Set 'Master_Bedroom_Fan_Light' 25% (On Level)

 

Our post crossed.  In this new scheme:

BLUE = device as controller

Green = ISY as controller

Red = device to modify

 

It might help to rename your devices and scenes, to avoid name collisions.  The ISY doesn't care, but it makes it hard to explain.

Link to comment

One thing that may help here is to rename your scenes and devices where similar to include .scn or .dev in the names.  This way you can tell them apart more readily.

 

-Xathros

Link to comment

I took some time and went through and renamed all scenes and devices.  Folders are setup for each room in the house, and the appropriate device/scenes were moved.

 

So it looks like my program is set the same as PerdueGuy's post (#4) and the response is 100% all the time.  There is not change in the output level or ramp rate.  Is my code following your recommendations?

If
        From     7:30:00PM
        To      10:30:00PM (same day)
 
Then
        In Scene 'Master_Bedroom / SCN.Fan_Light' Set 'Master_Bedroom / FL.Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom / SCN.Fan_Light' Set 'Master_Bedroom / FL.Light' 25% (On Level)
        In Scene 'Master_Bedroom / KPL.Light_A' Set 'Master_Bedroom / FL.Light' 8.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom / KPL.Light_A' Set 'Master_Bedroom / FL.Light' 25% (On Level)
 
Else
        In Scene 'Master_Bedroom / SCN.Fan_Light' Set 'Master_Bedroom / FL.Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom / SCN.Fan_Light' Set 'Master_Bedroom / FL.Light' 100% (On Level)
        In Scene 'Master_Bedroom / KPL.Light_A' Set 'Master_Bedroom / FL.Light' 0.5 Sec (Ramp Rate)
        In Scene 'Master_Bedroom / KPL.Light_A' Set 'Master_Bedroom / FL.Light' 100% (On Level)
 

Link to comment

At 7:30 PM the On Level and Ramp Rate are changed to 25% and 8.5 seconds.   Pressing the KPL button On after 7:30 PM should result in 25% On Level.  At 10:30 PM the On Level is changed to 100%.  Pressing the KPL button On after 10:30 PM should produce 100% On Level.

 

Would be good to post the Scene definition so that the names in the Program can be checked against the KPL Responders. 

Link to comment

Archived

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


×
×
  • Create New...