Jump to content

Triggers and conditions and IFs, oh my!


dnl

Recommended Posts

My Lighting, click on Address to sort all of your devices by Insteon ID.

 

Tools > Diagnostics > PLM Info/Status will give you the Insteon ID of the PLM.

I do what you said...and PLM and device have different # then 10 CF 11 :-/

 

I do a scene test to see the result and the event viewer.

Here the screenshot.

post-7705-0-67891800-1458182330_thumb.jpg

Link to comment

Ok.. but you're turning on and off the scene.  You need to go to each device that has issues and turn it on and off independently.

 

 

Jon...

mer. 03/16/2016 22:40:11 : [iNST-TX-I1  ] 02 62 29 C9 82 0F 11 FF

mer. 03/16/2016 22:40:11 : [iNST-ACK    ] 02 62 29.C9.82 0F 11 FF 06          LTONRR (FF)

mer. 03/16/2016 22:40:11 : [iNST-SRX    ] 02 50 29.C9.82 3D.96.69 2F 11 FF    LTONRR (FF)

mer. 03/16/2016 22:40:11 : [std-Direct Ack] 29.C9.82-->ISY/PLM Group=0, Max Hops=3, Hops Left=3

mer. 03/16/2016 22:40:11 : [  29 C9 82 1]       ST 255

mer. 03/16/2016 22:40:13 : [iNST-TX-I1  ] 02 62 29 C9 82 0F 13 00

mer. 03/16/2016 22:40:13 : [iNST-ACK    ] 02 62 29.C9.82 0F 13 00 06          LTOFFRR(00)

mer. 03/16/2016 22:40:14 : [iNST-SRX    ] 02 50 29.C9.82 3D.96.69 2F 13 00    LTOFFRR(00)

mer. 03/16/2016 22:40:14 : [std-Direct Ack] 29.C9.82-->ISY/PLM Group=0, Max Hops=3, Hops Left=3

mer. 03/16/2016 22:40:14 : [  29 C9 82 1]       ST   0

mer. 03/16/2016 22:40:23 : [iNST-TX-I1  ] 02 62 2B 69 2D 0F 11 FF

mer. 03/16/2016 22:40:23 : [iNST-ACK    ] 02 62 2B.69.2D 0F 11 FF 06          LTONRR (FF)

mer. 03/16/2016 22:40:23 : [iNST-SRX    ] 02 50 2B.69.2D 3D.96.69 2B 11 BF    LTONRR (BF)

mer. 03/16/2016 22:40:23 : [std-Direct Ack] 2B.69.2D-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

mer. 03/16/2016 22:40:23 : [  2B 69 2D 1]       ST 191

mer. 03/16/2016 22:40:26 : [iNST-TX-I1  ] 02 62 2B 69 2D 0F 13 00

mer. 03/16/2016 22:40:26 : [iNST-ACK    ] 02 62 2B.69.2D 0F 13 00 06          LTOFFRR(00)

mer. 03/16/2016 22:40:26 : [iNST-SRX    ] 02 50 2B.69.2D 3D.96.69 2B 13 00    LTOFFRR(00)

mer. 03/16/2016 22:40:26 : [std-Direct Ack] 2B.69.2D-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

mer. 03/16/2016 22:40:26 : [  2B 69 2D 1]       ST   0

mer. 03/16/2016 22:40:31 : [iNST-TX-I1  ] 02 62 23 5F D4 0F 11 00

mer. 03/16/2016 22:40:31 : [iNST-ACK    ] 02 62 23.5F.D4 0F 11 00 06          LTONRR (00)

mer. 03/16/2016 22:40:31 : [iNST-SRX    ] 02 50 23.5F.D4 3D.96.69 2B 11 00    LTONRR (00)

mer. 03/16/2016 22:40:31 : [std-Direct Ack] 23.5F.D4-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

mer. 03/16/2016 22:40:33 : [iNST-TX-I1  ] 02 62 23 5F D4 0F 13 00

mer. 03/16/2016 22:40:33 : [iNST-ACK    ] 02 62 23.5F.D4 0F 13 00 06          LTOFFRR(00)

mer. 03/16/2016 22:40:34 : [iNST-SRX    ] 02 50 23.5F.D4 3D.96.69 2B 13 00    LTOFFRR(00)

mer. 03/16/2016 22:40:34 : [std-Direct Ack] 23.5F.D4-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

 

Link to comment

So communications on all devices look good at this time with Max Hops=3, Hops Left=3 or 2

 

I would think if the interference is from the meter it would be continuous.  Do you have anything on the same circuit that might be inflicting some type of noise?

 

 

Jon...

Link to comment

mer. 03/16/2016 22:40:11 : [iNST-TX-I1  ] 02 62 29 C9 82 0F 11 FF

mer. 03/16/2016 22:40:11 : [iNST-ACK    ] 02 62 29.C9.82 0F 11 FF 06          LTONRR (FF)

mer. 03/16/2016 22:40:11 : [iNST-SRX    ] 02 50 29.C9.82 3D.96.69 2F 11 FF    LTONRR (FF)

mer. 03/16/2016 22:40:11 : [std-Direct Ack] 29.C9.82-->ISY/PLM Group=0, Max Hops=3, Hops Left=3

mer. 03/16/2016 22:40:11 : [  29 C9 82 1]       ST 255

mer. 03/16/2016 22:40:13 : [iNST-TX-I1  ] 02 62 29 C9 82 0F 13 00

mer. 03/16/2016 22:40:13 : [iNST-ACK    ] 02 62 29.C9.82 0F 13 00 06          LTOFFRR(00)

mer. 03/16/2016 22:40:14 : [iNST-SRX    ] 02 50 29.C9.82 3D.96.69 2F 13 00    LTOFFRR(00)

mer. 03/16/2016 22:40:14 : [std-Direct Ack] 29.C9.82-->ISY/PLM Group=0, Max Hops=3, Hops Left=3

mer. 03/16/2016 22:40:14 : [  29 C9 82 1]       ST   0

mer. 03/16/2016 22:40:23 : [iNST-TX-I1  ] 02 62 2B 69 2D 0F 11 FF

mer. 03/16/2016 22:40:23 : [iNST-ACK    ] 02 62 2B.69.2D 0F 11 FF 06          LTONRR (FF)

mer. 03/16/2016 22:40:23 : [iNST-SRX    ] 02 50 2B.69.2D 3D.96.69 2B 11 BF    LTONRR (BF)

mer. 03/16/2016 22:40:23 : [std-Direct Ack] 2B.69.2D-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

mer. 03/16/2016 22:40:23 : [  2B 69 2D 1]       ST 191

mer. 03/16/2016 22:40:26 : [iNST-TX-I1  ] 02 62 2B 69 2D 0F 13 00

mer. 03/16/2016 22:40:26 : [iNST-ACK    ] 02 62 2B.69.2D 0F 13 00 06          LTOFFRR(00)

mer. 03/16/2016 22:40:26 : [iNST-SRX    ] 02 50 2B.69.2D 3D.96.69 2B 13 00    LTOFFRR(00)

mer. 03/16/2016 22:40:26 : [std-Direct Ack] 2B.69.2D-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

mer. 03/16/2016 22:40:26 : [  2B 69 2D 1]       ST   0

mer. 03/16/2016 22:40:31 : [iNST-TX-I1  ] 02 62 23 5F D4 0F 11 00

mer. 03/16/2016 22:40:31 : [iNST-ACK    ] 02 62 23.5F.D4 0F 11 00 06          LTONRR (00)

mer. 03/16/2016 22:40:31 : [iNST-SRX    ] 02 50 23.5F.D4 3D.96.69 2B 11 00    LTONRR (00)

mer. 03/16/2016 22:40:31 : [std-Direct Ack] 23.5F.D4-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

mer. 03/16/2016 22:40:33 : [iNST-TX-I1  ] 02 62 23 5F D4 0F 13 00

mer. 03/16/2016 22:40:33 : [iNST-ACK    ] 02 62 23.5F.D4 0F 13 00 06          LTOFFRR(00)

mer. 03/16/2016 22:40:34 : [iNST-SRX    ] 02 50 23.5F.D4 3D.96.69 2B 13 00    LTOFFRR(00)

mer. 03/16/2016 22:40:34 : [std-Direct Ack] 23.5F.D4-->ISY/PLM Group=0, Max Hops=3, Hops Left=2

 

Some of my device was set to 0% where this thing should be set.

See the picture.

post-7705-0-60598200-1458183257_thumb.jpg

Link to comment

So communications on all devices look good at this time with Max Hops=3, Hops Left=3 or 2

 

I would think if the interference is from the meter it would be continuous.  Do you have anything on the same circuit that might be inflicting some type of noise?

 

 

Jon...

The front house lighting is Led flood light...but I have problem to turn on too...So I guess isn't produce interference when the led is OFF :-/

On this same circuit I have a TV and cable tv receiver recorder & entrance wardrobe light fluo compact light (almost always turn off).

 

I will try to do some test when I will have problems. Seem to be an intermittent problem :huh:

Link to comment

The front house lighting is Led flood light...but I have problem to turn on too...So I guess isn't produce interference when the led is OFF :-/

On this same circuit I have a TV and cable tv receiver recorder & entrance wardrobe light fluo compact light (almost always turn off).

 

I will try to do some test when I will have problems. Seem to be an intermittent problem :huh:

By the way, I received my phase coupler to day....I will see if it can help when some interference happen.

Edited by autoperformance
Link to comment

Ok.. but you're turning on and off the scene.  You need to go to each device that has issues and turn it on and off independently.

 

 

Jon...

So if I understand when interference happen I do this test and I check for hop 1 instead of 2 or 3. This is will tell me what device have bad communication. After that I disconnect everything to see if the interference disappears and the signal (Hop) will come stronger ? Right ?

Link to comment

Some of my device was set to 0% where this thing should be set.

See the picture.

 

Well, comms still look good.

 

The slider for On level control should be set to whatever level you want the light to turn on to when you press the toggle locally.  This can also be adjusted in the admin console or through a program as in the following where the second line represents local control and the first line represents program control.

On Levels Evening - [ID 00CA][Parent 006E]

If
        From    12:28:00AM
        To       6:05:00AM (same day)
 
Then
        In Scene 'Bathroom Downstairs' Set 'Light Downstairs BR' 20% (On Level)
        In Scene 'Light Downstairs BR' Set 'Light Downstairs BR' 20% (On Level)
 
Else
        In Scene 'Bathroom Downstairs' Set 'Light Downstairs BR' 100% (On Level)
        In Scene 'Light Downstairs BR' Set 'Light Downstairs BR' 100% (On Level)
 


What I have noticed is your network consists of 5 devices which doesn't necessarily make for good comms but you seem to be ok.

 

You might post the programs you use to schedule the lights and maybe something can be seen through that.

 

 

 

Jon...

Edited by jerlands
Link to comment

So if I understand when interference happen I do this test and I check for hop 1 instead of 2 or 3. This is will tell me what device have bad communication. After that I disconnect everything to see if the interference disappears and the signal (Hop) will come stronger ? Right ?

 

The best is communication is indicated by Hops Left=3.  Lower Hops Left=1 or 0 indicate poor communication.

 

Led lights can create noise as they age or even as new.  Electronics can also create noise and should always be filtered at the outlet they're plugged into.  For me, CFL's were always problematic and so I replaced all of mine.

 

 

Jon...

Link to comment
  • 1 month later...

Hello all,

 

Quick question.. .what is the best practice to show accurate status on a device after it is either triggered manually (at the device itself) or after a program runs...

 

My thought would be to add a "query" to the program (IE: Sunset turn lights off) ... Ok that would take care of that however, not if I go up to the switch and turn it on....

 

 

 

Also, how the hell do you create a program to run a query?

 

 

 

Regards,

 

S

Link to comment

No need. Barring comm problems, status is maintained automatically. Switches report status when changed. Programs will update device status.

 

 

Thanks Oberkc but it does not seem to be the case.. program works great!...

 

If I control the switches via the console or via the web it's fine and I can see the refresh happen... But if the program runs... there is no refresh...

The program is simple but perhaps wrong?

 

Outdoor Sunset - [iD 0004][Parent 0001]

 

If

        Time is Sunset  - 15 minutes

 

Then

        Set 'Porch Lights' Fade Up

        Set 'Soffit Lights' Fade Up

        Set 'Garage Outdoor Lights' Fade Up

 

Else

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

 

Link to comment

Thanks Oberkc but it does not seem to be the case.. program works great!...

 

If I control the switches via the console or via the web it's fine and I can see the refresh happen... But if the program runs... there is no refresh...

The program is simple but perhaps wrong?

 

Outdoor Sunset - [iD 0004][Parent 0001]

 

If

        Time is Sunset  - 15 minutes

 

Then

        Set 'Porch Lights' On      <------------------------

        Set 'Soffit Lights' On       <--------------------------

        Set 'Garage Outdoor Lights' 75%   <----------------

 

Else

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

 

Set absolute values. If you want a ramp speed you can set that in a scene containing those lamps, or set it with the admin console device page for the local and ISY control levels.

 

Modify your program and then save. Right click on it and select "run Then" to try it anytime.

BTW: I have never used a Fade Up. IIRC it only sends a very small increase in level. May not work if lights are not already on. Too finnicky.

 

 

Scenes are like prestes on your car radio. You set them up with a level, ramp speed and other variables and ISY assigns everybody involved a "secret scene number".

 

When you turn that scene on from ISY, ISY sends out that "secret scene number" and everybody deoes what you prearranged.

Edited by larryllix
Link to comment

Set absolute values. If you want a ramp speed you can set that in a scene containing those lamps, or set it with the admin console device page for the local and ISY control levels.

 

Modify your program and then save. Right click on it and select "run Then" to try it anytime.

BTW: I have never used a Fade Up. IIRC it only sends a very small increase in level. May not work if lights are not already on. Too finnicky.

 

 

Scenes are like prestes on your car radio. You set them up with a level, ramp speed and other variables and ISY assigns everybody involved a "secret scene number".

 

When you turn that scene on from ISY, ISY sends out that "secret scene number" and everybody deoes what you prearranged.

 

 

Thanks Larryllix... Obviously I am new at this... Are you saying to create a variable ? Perhaps you can provide me with a little more detail.

 

I am removing the fade up per your suggestion.

 

I appreciate it,

 

Regards,

S

Link to comment

Thanks Larryllix... Obviously I am new at this... Are you saying to create a variable ? Perhaps you can provide me with a little more detail.

 

I am removing the fade up per your suggestion.

 

I appreciate it,

 

Regards,

S

I thought you may be a little new and this whole Insteon thing is a bit confusing at first.

 

I never use Fade Up/Down. If you want your lights to go on to a certain level, specify it in your program.

 

If you want your lights to ramp up or down slowly , find them in the device webpage in the Admin Console and set the speed with the Ramp setting.

 

Ramp speeds are 0.1? seconds to 8 minutes. Nine is now not available.

 

Experiment with some settings and operate them manually from the device page. You can't hurt anything.

Edited by larryllix
  • Like 1
Link to comment

If I control the switches via the console or via the web it's fine and I can see the refresh happen... But if the program runs... there is no refresh...

 

Perhaps I misunderstand your problem, but I have not experienced a case where a program ran but the ISY status did not update.  From where are you observing the status?  Admin panel?  Mobile app?  But then, like larrylix, I don't use "fadeup" commands.

Edited by oberkc
Link to comment
  • 2 years later...

trying to make a simple program 1 is if garage motion (control or trigger) is on run the (then) program garage timer , so garage timer  (then)  says turn garage lights on, wait 10 min and turn off but it turns off in 1 to 2 min regardless of status or control. Normally status is what the device reports, control is actually hitting the switch but neither works always times out. Goal is if we walk through laundry room to get to garage its only on for 2 min but if my girlfriend is folding laundry it stays on until she leaves, same with garage I smoke so Id like the garage to stay on for 10 min but if I decide to smoke 2 it wont shut off so im lost as to what im doing wrong

Link to comment

first, make sure that the garage lights are not in a scene with the motion sensor.  Alternatively, you can put it in a scene, but make sure the motion sensor is configured only to send ON commands.  Then...

if

control motion sensor is switched on

then

turn on garage lights

wait 10 minutes

turn off garage lights

Link to comment

spot on no scene included one program has(if) motion detected then (run) the (then) of another program that has exactly what you stated, when I first started out I was told by UDI not to combine them in same program, has that changed now because I would have wrote it if motion is on then set garage lights on, wait 10 min set garage lights off. UDI said have separate programs for trigger and action which I thought was waste of time but at that time seemed to work and now uncertain since UDI did a major overhaul if that still applies. I would think separate prograns would be for different time or conditions etc. Never seemed a need to do separate prograns. Didn't understand why I needed so many. Now redoing my whole hose from start I followed their 5 year old program Included are pics if program that do not work. 

2.jpg

1.jpg

3.jpg

4.jpg

Edited by robandcathy1
Link to comment
On 10/17/2018 at 9:15 PM, robandcathy1 said:

now mind you I have not changed any dip switches since it worked in  4.xxxx versions Ill check that but issue only arises in ver 5xxx

Your programs look fine to me.  If you hit the switch, then under the "Summary" screen you should see that "Garage Motion Timer" or "Laundryroom Timer" is "Running 'Then'" under the Activity column.  When the lights go out 1 or 2 minutes later, are "Garage Motion Timer" and/or "Laundryroom Timer" still "Running 'Then'"?  If so, then something else is turning the lights out.  Either another program, or a link between the motion sensor and the light / switch.

Edited by kclenden
Link to comment
On ‎10‎/‎17‎/‎2018 at 9:12 PM, robandcathy1 said:

UDI said have separate programs for trigger and action which I thought was waste of time but at that time seemed to work and now uncertain since UDI did a major overhaul if that still applies. I would think separate prograns would be for different time or conditions etc.

I don't believe anything has changed due to the major overhaul.  I think the advice can still be good, but would depend on conditions.  If your conditions can often get triggered, but often false, or if your action can re-trigger the program, it might be good to separate the condition from the action.  Such a separate can prevent the triggers from interrupting wait statement and repeats.  An example:

if

time is sunset

and status light is off

then

turn light on

wait 2 hours

turn light off

else nothing

When this program triggers true, it will run, but immediately re-trigger (false) and halt the wait statement, re-running the else path.  In this case, best separate the conditions and actions.

Link to comment
  • 7 months later...

Hi guys, with the new update to being able to add nested if's with 'And And' and 'Or Or' I am hoping someone could point me in the right direction.

 

My scenario:

- I have 1 motion sensor in the basement

- I want to be able to check for a few conditions to auto turn off the lights if they are met

 

If motion sensor status = off (My motion setting will switch the sensor to off if it doesn't see motion in within 10 mins)

AND (Logitech Basement Xbox = not on OR Logitech Basement PS4 = not on, OR Logitech Basement Watch TV = not on)

Then Turn off basement lights

 

My issue comes that I'm unsure how to do the various OR statements.  Right now what ends up happening, is that I can do it for 1 Logitech Hub scenario, but i'd like to include the others.  The reason I want to have that variable is that without it, I'm sitting on the couch so the motion sensor doesn't see me and after 10 mins turns off all the lights.  Can anyone provide some guidance?  Thank you

Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...