Jump to content

How to program an Insteon motion sensor


hillam

Recommended Posts

Posted

Thanks Guys,

Its been happening at my home often,which it could be all things you all suggested.But it just happened at a customer's house and that has a new PLM but could have low sensor battery it one of the motions.As far as the variables (at my location)I have more then one motion using the same program in the garage.Maybe it would be a good Idea to create a set of programs for each motion with its own variable?When the ALL ON happens the ISY does not see it.Any thoughts?

Posted

Hi remedy1234,

 

Please contact our support (links below) so that we can hook you up with our SmartHome reps for an updated version of PLM for you which specifically addresses the All on issue.

 

With kind regards,

Michel

Posted

That's wonderful SIR is that just a firmware update or will they be replacing the defective units over two years old like they do with ALL insteon products?

Thanks for your help YOU GUYS ARE AWSOME!!

  • 1 year later...
Posted

I also set this up but for the kitchen.

 

Kitchen #1 - [iD 000B][Parent 000E][Not Enabled]
 
If
        Control 'Kitchen / Motion-Sensor' is switched On
Then
        Run Program 'Kitchen #2' (Then Path)
Else
   - No Actions - (To add one, press 'Action')
 
Kitchen #2 - [iD 000A][Parent 000E]
 
If
        Control 'Kitchen / Kitchen Cabinets' is not switched On
     Or Control 'Kitchen / Kitchen Cabinets' is not switched Fast On
     Or Control 'Kitchen / Kitchen Cabinets' is not switched Fade Up
Then
        Set Scene 'Kitchen / Kitchen Motion Night Light' Fast On
        Wait  1 minute 
        Set Scene 'Kitchen / Kitchen Motion Night Light' Off
Else
   - No Actions - (To add one, press 'Action')
 
Kitchen #3 - [iD 000C][Parent 000E]
 
If
        (
             Control 'Kitchen / Kitchen Cabinets' is switched On
          Or Control 'Kitchen / Kitchen Cabinets' is switched Fast On
          Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up
        )
    And (
             Control 'Kitchen / Kitchen Cabinets' is not switched Off
          Or Control 'Kitchen / Kitchen Cabinets' is not switched Fast Off
        )
 
Then
        Disable Program 'Kitchen #1'
Else
        Enable Program 'Kitchen #1'
 
 
 
Turning the light on via the switch does disable program #1 but turning on the kitchen light via a scene will not disable it and when i turn off the scene, it does not re enable it if the kitchen light switch was used to disable it. Would I have to have the program check for all scenes being on or should it work.  
 
I see that you use fade up but not fade down. Is there a reason for not adding it to the switched off sections?  I found an  issue where the light was turned off but i guess possibly faded down and the program did not enable #1 until i tapped the down on the switch. 
Posted

If Control is a trigger ONLY when the device is manually operated.  That is a major characteristic of If Control.  Turning the device On/Off with a Scene is not manual operation of the device and therefore does not trigger the Program. 

 

If Status triggers when a device is operated by a Scene, as a Responder to another device (which is a Scene), and when device is operated manually.  

 

Use the If variation that satisfies the requirements of the situation. 

Posted (edited)
Thanks! Thought I had it but when i turn off the scene, kitchen 2b triggers the one minute 1 minute on/off. 

 

 

Kitchen #1 - [iD 000B][Parent 000E]

 

If

        Control 'Kitchen / Motion-Sensor' is switched On

 

Then

        Run Program 'Kitchen #2B' (Then Path)

 

Else

   - No Actions - (To add one, press 'Action')

 

 

 


Kitchen #2B - [iD 0010][Parent 000E]

 

If

        Status  'Kitchen / Kitchen Cabinets' is Off

   

 

Then

        Set Scene 'Kitchen / Kitchen Motion Night Light' On

        Wait  1 minute 

        Set Scene 'Kitchen / Kitchen Motion Night Light' Off

 

Else

   - No Actions - (To add one, press 'Action')

 

 

 


Kitchen #3B - [iD 0011][Parent 000E]

 

If

        Status  'Kitchen / Kitchen Cabinets' is not Off

 

Then

        Disable Program 'Kitchen #1'

 

Else

        Enable Program 'Kitchen #1'

 


Edited by chachdog
Posted

The Scene turning Off cannot cause Kitchen #1 to trigger.  That leaves either another Program being triggered or the Scene contains 'Kitchen / Kitchen Cabinets'.  'Kitchen / Kitchen Cabinets' turning Off will trigger Kitchen #2B

Posted

I have disabled all other programs while I am testing this. I have a scene "kitchen Cabinets Motion Light" has the kitchen cabinet lights @ 50% it. When the motion triggers, it turns on the lights and it turns off.

 

Immediately the kitchenB fires that says if its off, turn it on. seems like a loop. Also, when they are on, kitchen#3b disables kitchen#1b. 

 

How can get around this? using variables? i have not gotten that far into programming yet to use them. I see an example earlier in this thread but don't know what it is doing.  

Posted

"Immediately the kitchenB fires that says if its off, turn it on. seems like a loop. "

 

Besides the Program names discussed not matching the examples posted,  kitchenB is describing Kitchen #2B?;  the "seems like a loop" is discussing a Program that sounds like something you did not design?  If you are using examples someone else authored please provide the functional details you want to implement.  With that information a Program or Programs can be suggested to provide that function.   

Posted

yes b and 2b are the same. sorry for the confusion.  

 

I would like for the motion sensor to turn on the light, keep it on if still detecting motion, turn off 1 min later but do nothing if the lights are already on by other means. A switch, scene etc. 

 

Posted (edited)

yes b and 2b are the same. sorry for the confusion.  

 

I would like for the motion sensor to turn on the light, keep it on if still detecting motion, turn off 1 min later but do nothing if the lights are already on by other means. A switch, scene etc. 

Here is how I have accomplished this

 

 

This is the basic MS lamp control program. A scene link between the MS and lamp already exists so the response is immediate.

MBR Lamp.auto - [ID 009D][Parent 000A]

If
        Control 'Master Bedroom / Motion.MBR' is switched On
 
Then
        Wait  45 seconds
        Run Program 'MBR Lamp.auto' (Else Path)
 
Else
        Set Scene 'Master Bedroom / MBR Passtrough' Off
 


.

.

This is the manual override program from a remote. Note I still have a 2 hr. timer to shut off in case you forget and walk away or fall asleep. It also has code to shut down and revive the third Lamp Level Adjust program.

MBR Lamp.manual - [ID 0038][Parent 000A]

If
        Control 'Master Bedroom / MBR KeyPad.A' is switched On
    And Control 'Master Bedroom / MBR KeyPad.A' is not switched Off
 
Then
        Set 'Master Bedroom / MBR Wall Lamp' Fast On
        Disable Program 'MBR Lamp.auto'
        Disable Program 'MBR Lamp Level adjust'
        In Scene 'Master Bedroom / Motion.MBR' Set 'Master Bedroom / MBR Wall Lamp' 100% (On Level)
        Wait  2 hours 
        Run Program 'MBR Lamp.manual' (Else Path)
 
Else
        Set 'Master Bedroom / MBR Wall Lamp' Off
        Run Program 'MBR Lamp Level adjust' (If)
        Wait  1 second
        Enable Program 'MBR Lamp Level adjust'
        Enable Program 'MBR Lamp.auto'
 
Lamp will get direct hit by MS so adjusted scene level so it can't be noticed.

.

.

Program to adjust levels for different times of the day. A 60W bulb glaring you in the face at 2:00 am is not nice. Note: This system uses three levels of brightness. Manual uses 100%,automatic uses 15% and 70%.

MBR Lamp Level adjust - [ID 0084][Parent 000A]

If
        From    10:30:00PM
        To       9:30:00AM (next day)
 
Then
        In Scene 'Master Bedroom / Motion.MBR' Set 'Master Bedroom / MBR Wall Lamp' 15% (On Level)
 
Else
        In Scene 'Master Bedroom / Motion.MBR' Set 'Master Bedroom / MBR Wall Lamp' 70% (On Level)
 


Edited by larryllix
Posted

Can you simplify what parts of yours could work in my situation? It looks like upon motion it waits 45 seconds. that means it will be dark in the kitchen for 45 seconds? I am having a hard time trying to follow and keep track of what all is happening and when. 

Posted (edited)

Can you simplify what parts of yours could work in my situation? It looks like upon motion it waits 45 seconds. that means it will be dark in the kitchen for 45 seconds? I am having a hard time trying to follow and keep track of what all is happening and when. 

You need all three to perform #1 basic on/off functions,

#2 The manual override = lock on,

#3 change brightness for different parts of the day.

Substitute your own component names. I have just called these LIGHT, MS and MS/LIGHT for the scene

 

First you need to have a scene, you create in ISY and include your MS as a controller and your kitchen light as a responder. This also assumes you have a main light in the kitchen controlled by a SwitchLink wall switch (connected to the main kitchen cabinet lights) for a manual control, and an MS and you want them both to control the same light.

 

LIGHT.auto   (enabled)

--------------

If

        Control  MS is switched On

 

Then

        Wait  45 seconds <---------------make it 5 minutes for a kitchen

        Run this program (Else Path) <------ turns off the light and displays program as red colour for  Admin Console

 

Else

        Set Scene MS/LIGHT Off

 

Manual  override   (enabled)

----------------------

If

          (

           Control LIGHT  is switched On

                            <---- add other devices to manually override the auto program using 'OR'...  'if On'

          )

   And (

             Control LIGHT is not switched Off    <-----switching off runs else and stops then

                            <-----add in other manual off devices using 'OR'..... 'is not Off'

          )

Then

        Set LIGHT  Fast On <----makes it 100% brightness and fast

        Disable Program 'LIGHT.auto'  <-----no more MS activations while in manual control

        Disable Program 'Light Level adjust'   <-----no more auto level changing from program below

        In Scene  'MS'   Set Light to 100% (On Level)  <---- further hits on light stays 100%,  watch MS name is in scene pulldown

        Wait  2 hours  <------just in case you forget it is in manual

        Run Program manual override  (Else Path)  <---jump to else below

 

Else

        Set LIGHT Off <----------------manual control is over = turn it off

        Run Program   'Light Level adjust' (If) <----- set the scene dimming levels back dependant on the time of day

        Wait  1 second  <------ let it finish

        Enable Program 'Light Level adjust'  <---- OK now we want the levels to be self adjusting again

        Enable Program 'LIGHT.auto'   <------------- now we want the MS to control  the light again

 

Light Level adjust (enabled)

-----------------------

If

        From    10:30:00PM   <- pick level change times

        To       9:30:00AM (next day)

 

Then

        In Scene 'MS'  Set LIGHT 5% (On Level) <----watch the name of the LIGHT not being a scene but in scene  pulldown list

Else

        In Scene 'MS' Set  'LIGHT' 70% (On Level) <-----same as above

Edited by larryllix
Posted (edited)
This did not work for me. Thanks for the reply though. 

 

I think having the MS as a controller was part of it. It fired every time i walked past it. If I set the light level with the switch or another scene, the MS fired and changes it to the scene xyz level.

 

All I am trying to do is have the motion sensor to turn on the light(all day/times, same brightness), keep it on if still detecting motion, turn it off after x minutes if no motion is detected, don't do anything if the lights are already on by other means( A switch, scene etc. ) and If while the motion program is running and the lights are changed by a scene or a switch, stop the motion program. 

 

if



cabinets are already on by control

motion program disabled

 

if 

cabinets are already on by scene 

then 

motion program disabled 


 


If 

cabinets are off

then

motion program enabled

 

if

cabinets are enabled by motion but modified by scene or wall switch during the program

then

disable motion program. 

 

 

Problem was that when motion is enabled. it fires a scene that makes the scene be "on" which disables the program.so can't use status check. 

 

I have tried this program variation to try to get around it. It seems to work kind of but needs more testing. When I fix one thing, others break or create different issues. 

 

----------------------------------------------------------------------

 

 

Kitchen Cabs ON? - [iD 0008][Parent 000A]

 

If

        Status  'Kitchen / Kitchen Cabinets' is not Off

 

Then

        Disable Program 'Kitchen Cabinet Motion'

 

Else

   - No Actions - (To add one, press 'Action')

 

-----------------------------------------------------------------------

 

Kitchen Cabs OFF? - [iD 0010][Parent 000A]

 

If

        Status  'Kitchen / Kitchen Cabinets' is Off

 

Then

        Enable Program 'Kitchen Cabinet Motion'

 

Else

   - No Actions - (To add one, press 'Action')

 

 

-----------------------------------------------------------------------

 

Kitchen Cabinet Motion - [iD 0014][Parent 000A]

 

If

        Control 'Kitchen / Motion-Sensor' is switched On

 

Then

        Disable Program 'Kitchen Cabs ON?'

        Set 'Kitchen / Kitchen Cabinets' 75%

        Wait  5 minutes 

        Set Scene 'Kitchen / Kitchen Motion Night Light' Off

        Wait  10 seconds

        Enable Program 'Kitchen Cabs ON?'

 

Else

   - No Actions - (To add one, press 'Action')

 

 

-----------------------------------------------------------------------

 

I added an additional override. 

 

Kitchen Cab Switch Override - [iD 000D][Parent 000A]

 

If

        Control 'Kitchen / Kitchen Cabinets' is switched Fast On

     Or Control 'Kitchen / Kitchen Cabinets' is switched On

     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up

     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Down

 

Then

        Disable Program 'Kitchen Cabinet Motion'

        Enable Program 'Kitchen Cabs ON?'

 

Else

        Enable Program 'Kitchen Cabinet Motion'

 

---------------------------------------------------------------------------------------

 

 

How does it look? 

Edited by chachdog
Posted (edited)

If the Motion Sensor is a Controller of a Scene the Motion Sensor cannot be stopped by the ISY Disable. Insteon has no concept of enabling/disabling a Scene by issuing an ISY Enable/Disable of the Controller. The Motion Sensor can be marked Disabled but this has NO affect on the Motion Sensor controlling the Scene.

Edited by LeeG
Posted

If the Motion Sensor is a Controller of a Scene the Motion Sensor cannot be stopped by the ISY Disable. Insteon has no concept of enabling/disabling a Scene by issuing an ISY Enable/Disable of the Controller. The Motion Sensor can be marked Disabled but this has NO affect on the Motion Sensor controlling the Scene.

 

Yea I figured this out by trial. No matter what was going on the controller was just sending ON commands to the scene. Got any feedback for the programs I am using? 

Posted (edited)

 

This did not work for me. Thanks for the reply though. 
 
I think having the MS as a controller was part of it. It fired every time i walked past it. If I set the light level with the switch or another scene, the MS fired and changes it to the scene xyz level.
 
All I am trying to do is have the motion sensor to turn on the light(all day/times, same brightness), keep it on if still detecting motion, turn it off after x minutes if no motion is detected, don't do anything if the lights are already on by other means( A switch, scene etc. ) and If while the motion program is running and the lights are changed by a scene or a switch, stop the motion program. 
 
if
cabinets are already on by control
motion program disabled
 
if 
cabinets are already on by scene 
then 
motion program disabled 
 
If 
cabinets are off
then
motion program enabled
 
if
cabinets are enabled by motion but modified by scene or wall switch during the program
then
disable motion program. 
 
 
Problem was that when motion is enabled. it fires a scene that makes the scene be "on" which disables the program.so can't use status check. 
 
I have tried this program variation to try to get around it. It seems to work kind of but needs more testing. When I fix one thing, others break or create different issues. 
 
----------------------------------------------------------------------
 
 
Kitchen Cabs ON? - [iD 0008][Parent 000A]
 
If
        Status  'Kitchen / Kitchen Cabinets' is not Off
 
Then
        Disable Program 'Kitchen Cabinet Motion'
 
Else
   - No Actions - (To add one, press 'Action')
 
-----------------------------------------------------------------------
 
Kitchen Cabs OFF? - [iD 0010][Parent 000A]
 
If
        Status  'Kitchen / Kitchen Cabinets' is Off
 
Then
        Enable Program 'Kitchen Cabinet Motion'
 
Else
   - No Actions - (To add one, press 'Action')
 
 
-----------------------------------------------------------------------
 
Kitchen Cabinet Motion - [iD 0014][Parent 000A]
 
If
        Control 'Kitchen / Motion-Sensor' is switched On
 
Then
        Disable Program 'Kitchen Cabs ON?'
        Set 'Kitchen / Kitchen Cabinets' 75%
        Wait  5 minutes 
        Set Scene 'Kitchen / Kitchen Motion Night Light' Off
        Wait  10 seconds
        Enable Program 'Kitchen Cabs ON?'
 
Else
   - No Actions - (To add one, press 'Action')
 
 
-----------------------------------------------------------------------
 
I added an additional override. 
 
Kitchen Cab Switch Override - [iD 000D][Parent 000A]
 
If
        Control 'Kitchen / Kitchen Cabinets' is switched Fast On
     Or Control 'Kitchen / Kitchen Cabinets' is switched On
     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up
     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Down
 
Then
        Disable Program 'Kitchen Cabinet Motion'
        Enable Program 'Kitchen Cabs ON?'
 
Else
        Enable Program 'Kitchen Cabinet Motion'
 
---------------------------------------------------------------------------------------
 
 
How does it look? 

 

OK I'll try to start out simple and add from there.  You will not be able to do any dimming if you already have the MS and your lights in a scene. This is now out of ISY's hands but there is a way to do it as described in my other post above. You didn't say what didn't work for you.

 

Get rid of the first two programs They aren't needed with your bottom one added.

Take out lines that refer to them

I added a fail safe 2 hour timer in case you forget the lights are in override.

Watch the parenthesis placements. They are important.

Your MS needs to be set to never send Off.

 

 

Kitchen Cabinet Motion - [iD 0014][Parent 000A]

 

If

        Control 'Kitchen / Motion-Sensor' is switched On

Then

        Disable Program 'Kitchen Cabs ON?'

        Set 'Kitchen / Kitchen Cabinets' 75% <------- this doesn't work  'cause MS scene will keep changing  level without ISY

        Wait  5 minutes

        Set Scene 'Kitchen / Kitchen Motion Night Light' Off

Else

   - No Actions - (To add one, press 'Action')

 

-----------------------------------------------------------------------

 

Kitchen Cab Switch Override - [iD 000D][Parent 000A]

If   (

             Control 'Kitchen / Kitchen Cabinets' is switched Fast On

        Or Control 'Kitchen / Kitchen Cabinets' is switched On

        Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up

        Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Down

      )

      AND

             Control 'Kitchen / Kitchen Cabinets' is NOT switched Fast Off  <---these run Else for Fast Off & Off

      AND

             Control 'Kitchen / Kitchen Cabinets' is NOT switched Off

             

Then

        Disable Program 'Kitchen Cabinet Motion'

        Wait 2 hours

        Set Scene 'Kitchen / Kitchen Motion Night Light' Off  <-----lest yee forget with usual automatic

        Enable Program 'Kitchen Cabinet Motion'

 Else

        Set Scene 'Kitchen / Kitchen Motion Night Light' Off <----turn the light and scene off from switch too

        Enable Program 'Kitchen Cabinet Motion'

Edited by larryllix
Posted

" You didn't say what didn't work for you."


 


I meant having the motion sensor as a controller to the kitchen light motion scene.


You can't disable the device so no matter what you do by disabling the program, the scene is going to fire when motion is activated. 


 


for example. I walk in. the motion fires the scene. i adjust the switch and walk out. walk back in and the motion fires the scene moving the light level back to the scene regardless of the program disabled status. 


 


Also my program is with the motion sensor not being a controller to the scene. It just fires the scene after motion is detected as part of the program's "then". 


 


 


Not sure why your AND's are above the control lines and if you are missing ( )'s. 


 


Kitchen Cab Switch Override Copy - [iD 0017][Parent 0016]

 

If

        (

             Control 'Kitchen / Kitchen Cabinets' is switched Fast On

          Or Control 'Kitchen / Kitchen Cabinets' is switched On

          Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up

          Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Down

        )

    And Control 'Kitchen / Kitchen Cabinets' is not switched Fast Off

    And Control 'Kitchen / Kitchen Cabinets' is not switched Off

 

Then

        Disable Program 'Kitchen Cabinet Motion'

        Wait  2 hours 

        Enable Program 'Kitchen Cabinet Motion'

 

Else

        Set Scene 'Kitchen / Kitchen Motion Night Light' Off

        Enable Program 'Kitchen Cabinet Motion'

 

 

 

 

 

 

 

 

 

 

 

Kitchen Cab Switch Override Copy - [iD 0017][Parent 0016]

 

If

        (

             Control 'Kitchen / Kitchen Cabinets' is switched Fast On

          Or Control 'Kitchen / Kitchen Cabinets' is switched On

          Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up

          Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Down

        )

    And Control 'Kitchen / Kitchen Cabinets' is not switched Off

    And (

             Control 'Kitchen / Kitchen Cabinets' is not switched Fast Off

        )

 

Then

        Disable Program 'Kitchen Cabinet Motion'

        Wait  2 hours 

        Enable Program 'Kitchen Cabinet Motion'

 

Else

        Set Scene 'Kitchen / Kitchen Motion Night Light' Off

        Enable Program 'Kitchen Cabinet Motion'
Posted (edited)

Just a layout error from guessing. It wasn't copied from my ISY.

 

If you read and understand my first post with the three programs you will find you can adjust the scene so that your lights will not come on even with a scene linking the MS and lights directly.

 

 

Here's the scenario.

 

You walk in and turn the lightswitch  on, locking it on.

You walk through the motion sensor area and it triggers the light on at the same level of brightness. You don't even notice.

You walk out of the room and the program that turns off the light isn't running because the manual override program has disabled it. The light stays on forever or until the override "lest you forget" timer times out

 

You turn off the manual override and the light turns off. Now your MS program works again.

 

You use the third program and set the level of the scene to 0 during the day. You walk into the MS area and the scene turns the light on to 0 brightness. Does it make a difference? The user doesn't see it.

Edited by larryllix
Posted

I removed those other 2 programs and got it working this way. The kitchen has high hats also so i figured if they are on,  they are on manually (shares the cab switch) or by a scene. either way I don't want the motion to do anything if this is on so i used it as an unrelated condition to the program. 

 

Kitchen Cab Switch Override Copy - [iD 0016][Parent 001A]
 
If
        Control 'Kitchen / Kitchen Cabinets' is switched Fast On
     Or Control 'Kitchen / Kitchen Cabinets' is switched On
     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up
     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Down
 
Then
        Disable Program 'Kitchen Cabinet Motion Copy'
 
Else
        Enable Program 'Kitchen Cabinet Motion Copy'
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Kitchen Cabinet Motion Copy - [iD 0017][Parent 001A]
 
If
        Control 'Kitchen / Motion-Sensor' is switched On
    And Status  'Kitchen / Kitchen High Hats' is Off
 
Then
        Set Scene 'Kitchen / Kitchen Motion Night Light' On
        Wait  1 minute 
        Set Scene 'Kitchen / Kitchen Motion Night Light' Off
 
Else
   - No Actions - (To add one, press 'Action')
 
RE: Here's the scenario.

 

You walk in and turn the light switch  on, locking it on. >>>>>>>>>>>>>>> (Can't get to the switch before motion picks you up. ) The only way to kill Motion is to turn on the switch or start a scene. which is what i was looking for.

 

Thanks for your pointers. They all helped.  

 

Posted

.....

If
        Control 'Kitchen / Kitchen Cabinets' is switched Fast On
     Or Control 'Kitchen / Kitchen Cabinets' is switched On
     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up
     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Down
 
Then
        Disable Program 'Kitchen Cabinet Motion Copy'
 
Else                                           <--------------nothing runs this
        Enable Program 'Kitchen Cabinet Motion Copy'
.....
Posted

 

.....

If
        Control 'Kitchen / Kitchen Cabinets' is switched Fast On
     Or Control 'Kitchen / Kitchen Cabinets' is switched On
     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Up
     Or Control 'Kitchen / Kitchen Cabinets' is switched Fade Down
 
Then
        Disable Program 'Kitchen Cabinet Motion Copy'
 
Else                                           <--------------nothing runs this
        Enable Program 'Kitchen Cabinet Motion Copy'
.....

 

 

 

Wouldn't else run if the "if" was false? meaning everything was off? 

Posted (edited)

No.  "If Status" triggers a Program whether the specified Status being checked matches, which can result in a False evaluation that drives the Else clause.  "If Control 'xxxx' is switched yyy" triggers the Program ONLY when the condition matches.  There is no False evaluation so Else does not run.  

 

The "If Control 'xxxx' is not switched yyy" triggers the Program when "not switched yyy" and drives the Else clause because of the "not".

 

 

Control - [iD 0094][Parent 0001]
 
If
        Control 'SwitchLinc Dimmer 1' is switched On
    And Control 'SwitchLinc Dimmer 1' is not switched Off
Then
        Send X10 'A1/On (3)'
Else
        Send X10 'A1/Off (11)'
 

 

Sat 07/04/2015 11:22:59 AM : [iNST-SRX    ] 02 50 16.3F.93 00.00.01 CB 11 00    LTONRR (00)
Sat 07/04/2015 11:22:59 AM : [std-Group   ] 16.3F.93-->Group=1, Max Hops=3, Hops Left=2
Sat 07/04/2015 11:22:59 AM : [D2D EVENT   ] Event [16 3F 93 1] [DON] [0] uom=0 prec=-1
Sat 07/04/2015 11:22:59 AM : [  16 3F 93 1]      DON   0
Sat 07/04/2015 11:22:59 AM : [D2D-CMP 0094] CTL [16 3F 93 1] DON op=1 Event(val=0 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> true
Sat 07/04/2015 11:22:59 AM : [D2D EVENT   ] Event [16 3F 93 1] [sT] [255] uom=0 prec=-1
Sat 07/04/2015 11:22:59 AM : [  16 3F 93 1]       ST 255
Sat 07/04/2015 11:22:59 AM : [X10-RSP     ] 02 63 66 00 06 
Sat 07/04/2015 11:22:59 AM : [D2D-CMP 0080] STS [16 3F 93 1] ST op=1 Event(val=255 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> false
Sat 07/04/2015 11:22:59 AM : [D2D-CMP 0067] STS [16 3F 93 1] ST op=1 Event(val=255 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> false
Sat 07/04/2015 11:22:59 AM : [D2D-CMP 0019] STS [16 3F 93 1] ST op=1 Event(val=255 uom=0 prec=-1) is Condition(val=255 uom=0 prec=-1) --> true
Sat 07/04/2015 11:22:59 AM : [         X10]       A1
Sat 07/04/2015 11:22:59 AM : [         X10]       A1/On (3)
Sat 07/04/2015 11:22:59 AM : [iNST-SRX    ] 02 50 16.3F.93 22.80.0B 41 11 01    LTONRR (01)
Sat 07/04/2015 11:22:59 AM : [std-Cleanup ] 16.3F.93-->ISY/PLM Group=1, Max Hops=1, Hops Left=0
Sat 07/04/2015 11:22:59 AM : [iNST-DUP    ] Previous message ignored.
Sat 07/04/2015 11:23:00 AM : [X10-RSP     ] 02 63 62 80 06 
Sat 07/04/2015 11:23:01 AM : [X10-RX      ] 02 52 66 00 
Sat 07/04/2015 11:23:01 AM : [         X10]       A1
 
Sat 07/04/2015 11:23:10 AM : [iNST-SRX    ] 02 50 16.3F.93 00.00.01 CB 13 00    LTOFFRR(00)
Sat 07/04/2015 11:23:10 AM : [std-Group   ] 16.3F.93-->Group=1, Max Hops=3, Hops Left=2
Sat 07/04/2015 11:23:10 AM : [D2D EVENT   ] Event [16 3F 93 1] [DOF] [0] uom=0 prec=-1
Sat 07/04/2015 11:23:10 AM : [  16 3F 93 1]      DOF   0
Sat 07/04/2015 11:23:10 AM : [D2D-CMP 0094] CTL [16 3F 93 1] DOF op=6 Event(val=0 uom=0 prec=-1) != Condition(val=0 uom=0 prec=-1) --> false
Sat 07/04/2015 11:23:10 AM : [D2D EVENT   ] Event [16 3F 93 1] [sT] [0] uom=0 prec=-1
Sat 07/04/2015 11:23:10 AM : [  16 3F 93 1]       ST   0
Sat 07/04/2015 11:23:10 AM : [X10-RSP     ] 02 63 66 00 06 
Sat 07/04/2015 11:23:10 AM : [D2D-CMP 0080] STS [16 3F 93 1] ST op=1 Event(val=0 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> true
Sat 07/04/2015 11:23:10 AM : [D2D-CMP 0067] STS [16 3F 93 1] ST op=1 Event(val=0 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> true
Sat 07/04/2015 11:23:10 AM : [D2D-CMP 0019] STS [16 3F 93 1] ST op=1 Event(val=0 uom=0 prec=-1) is Condition(val=255 uom=0 prec=-1) --> false
Sat 07/04/2015 11:23:10 AM : [         X10]       A1
Sat 07/04/2015 11:23:10 AM : [         X10]       A1/Off (11)
Sat 07/04/2015 11:23:11 AM : [iNST-SRX    ] 02 50 16.3F.93 22.80.0B 4B 13 01    LTOFFRR(01)
Sat 07/04/2015 11:23:11 AM : [std-Cleanup ] 16.3F.93-->ISY/PLM Group=1, Max Hops=3, Hops Left=2
Sat 07/04/2015 11:23:11 AM : [iNST-DUP    ] Previous message ignored.
Sat 07/04/2015 11:23:11 AM : [X10-RSP     ] 02 63 63 80 06 
Sat 07/04/2015 11:23:12 AM : [X10-RX      ] 02 52 66 00 
Sat 07/04/2015 11:23:12 AM : [         X10]       A1
 
 
Should have included a command that "If Control" is not checking.  Fast On does not trigger Program (no X10 traffic).
 
Sat 07/04/2015 11:46:21 AM : [iNST-SRX    ] 02 50 16.3F.93 00.00.01 CB 12 00    LTON-F (00)
Sat 07/04/2015 11:46:21 AM : [std-Group   ] 16.3F.93-->Group=1, Max Hops=3, Hops Left=2
Sat 07/04/2015 11:46:21 AM : [D2D EVENT   ] Event [16 3F 93 1] [DFON] [0] uom=0 prec=-1
Sat 07/04/2015 11:46:21 AM : [  16 3F 93 1]     DFON   0
Sat 07/04/2015 11:46:21 AM : [D2D-CMP 001A] CTL [16 3F 93 1] DFON op=1 Event(val=0 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> true
Sat 07/04/2015 11:46:21 AM : [D2D-CMP 0019] CTL [16 3F 93 1] DFON op=6 Event(val=0 uom=0 prec=-1) != Condition(val=0 uom=0 prec=-1) --> false
Sat 07/04/2015 11:46:21 AM : [D2D EVENT   ] Event [16 3F 93 1] [sT] [255] uom=0 prec=-1
Sat 07/04/2015 11:46:21 AM : [  16 3F 93 1]       ST 255
Sat 07/04/2015 11:46:21 AM : [D2D-CMP 0080] STS [16 3F 93 1] ST op=1 Event(val=255 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> false
Sat 07/04/2015 11:46:21 AM : [D2D-CMP 0067] STS [16 3F 93 1] ST op=1 Event(val=255 uom=0 prec=-1) is Condition(val=0 uom=0 prec=-1) --> false
Sat 07/04/2015 11:46:21 AM : [D2D-CMP 0019] STS [16 3F 93 1] ST op=1 Event(val=255 uom=0 prec=-1) is Condition(val=255 uom=0 prec=-1) --> true
Sat 07/04/2015 11:46:21 AM : [D2D EVENT   ] Event [2E ED 5D 2] [sT] [255] uom=0 prec=-1
Sat 07/04/2015 11:46:21 AM : [  2E ED 5D 2]       ST 255
Sat 07/04/2015 11:46:21 AM : [iNST-SRX    ] 02 50 16.3F.93 22.80.0B 41 12 01    LTON-F (01)
Sat 07/04/2015 11:46:21 AM : [std-Cleanup ] 16.3F.93-->ISY/PLM Group=1, Max Hops=1, Hops Left=0
Sat 07/04/2015 11:46:21 AM : [iNST-DUP    ] Previous message ignored.
 
Edited by LeeG
Posted

so another program is needed to check for status being off to enable? 

 

Kitchen Cabinet Enable Motion - [iD 0011][Parent 001A]
 
If
        Status  'Kitchen / Kitchen High Hats' is Off
 
Then
        Wait  20 seconds
        Enable Program 'Kitchen Cabinet Motion'
 
Else
   - No Actions - (To add one, press 'Action')
Posted

Whether another Program is needed would be dependent on the logic of the Programs.  An

 

If Control ..........

  Or Control 'Kitchen / Kitchen Cabinets' is not switched Off

 

will drive the Else clause when the device is physically switched Off

 

Of course a separate Program with

 

If Control 'Kitchen / Kitchen Cabinets' is switched Off

Then
        Wait  20 seconds
        Enable Program 'Kitchen Cabinet Motion'
 
 
Or Status can be used
 

If Status 'Kitchen / Kitchen Cabinets' is Off

Then
        Wait  20 seconds
        Enable Program 'Kitchen Cabinet Motion'
 
Just depends on whether looking for the device that is physically turned Off where If Control is used, or If Status when checking for device being Off whether turned Off at the device or something else turned the device Off.
Guest
This topic is now closed to further replies.

×
×
  • Create New...