Jump to content

Triggers and conditions and IFs, oh my!


dnl

Recommended Posts

Hi All,

 

This post is quite long-in-the-tooth (and good)... I am new to all of this.

 

Can anyone point me to the latest and greatest to learn ISY programming, but using the new variables, event programming, etc, starting with event concepts etc, using variables.  

 

I'm scared of learning concepts here, that may no longer apply using variables, etc

 

Thanks!

Larryllix summed it pretty well. There is a link near the bottom of the first post. Follow that link to a thread that discusses using variables in the programming structure.

Link to comment
  • 2 months later...

Hi everybody, I just wondering if it's possible to trigger some switch (Insteon) who miss the first signal to goes ON...or Goes OFF.

 

Here my program...very simple, but I'm a beginner in programmation.  So here the problem: Since the installation of a new smart meter installed by my power company and operating on the same frequency as the Insteon switches, some switches not always trigger at the first time. Some device near the smart meter need to be trigger 2 or 3 times before to execute the command. So is there a way to send the signal again? Maybe 3 or 4 time the under the next 10 min.

 

Thank you for your help :-)

 

Front House Light - [iD 0002][Parent 0001]

If
        From    Sunset  + 30 minutes
        To      10:00:00PM (same day)
 
Then
        Set Scene 'Front Lighting' On
 
Else
        Wait  30 minutes  (Random)
        Set Scene 'Front Lighting' Off
 

Edited by autoperformance
Link to comment

Hi everybody, I just wondering if it's possible to trigger some switch (Insteon) who miss the first signal to goes ON...or Goes OFF.

 

Here my program...very simple, but I'm a beginner in programmation.  So here the problem: Since the installation of a new smart meter installed by my power company and operating on the same frequency as the Insteon switches, some switches not always trigger at the first time. Some device near the smart meter need to be trigger 2 or 3 times before to execute the command. So is there a way to send the signal again? Maybe 3 or 4 time the under the next 10 min.

 

Thank you for your help :-)

 

Front House Light - [iD 0002][Parent 0001]

If

        From    Sunset  + 30 minutes

        To      10:00:00PM (same day)

 

Then

        Set Scene 'Front Lighting' On

 

Else

        Wait  30 minutes  (Random)

        Set Scene 'Front Lighting' Off

 

Sure. Use the Wait command and repeat the line.

 

This need to be investigated further as Insteon uses two different frequencies and mediums or transmission, powerlines and RF. It is not likely the meter uses the same frequency.

 

Front House Light - [iD 0002][Parent 0001]

If

        From    Sunset  + 30 minutes

        To      10:00:00PM (same day)

 

Then

        Set Scene 'Front Lighting' On

        Wait 3 seconds

        Set Scene 'Front Lighting' On

        Wait 3 seconds

        Set Scene 'Front Lighting' On

 

Else

        Wait  30 minutes  (Random)

        Set Scene 'Front Lighting' Off

        Wait 5 seconds

        Set Scene 'Front Lighting' Off

        Wait 5 seconds

        Set Scene 'Front Lighting' Off

Link to comment

 

 So here the problem: Since the installation of a new smart meter installed by my power company and operating on the same frequency as the Insteon switches, some switches not always trigger at the first time.

 

 

Which smart meter did they install? 

 

 

Jon...

Link to comment

You can use a repeat statement. If that works, lower the number or repeats, if not the raise the number.

 

If
        From    Sunset  + 30 minutes
        To      10:00:00PM (same day)
 
Then

        Repeat 5 times
        Set Scene 'Front Lighting' On
 
Else
        Wait  30 minutes  (Random)

        Repeat 5 times
        Set Scene 'Front Lighting' Off

Link to comment

 

"The REX2 meter provides communication to the two-way Elster 900 MHz EA_LAN and to the ZigBee 2.4 GHz network"

 

I don't know but imagine all of their meters operate on the same frequencies?  That said... Insteon operates on 915Mhz and I don't think 900Mhz would interfere.

 

I suspect you have other issues and possibly induced by noise.  You might check the circuits the lights are on and see if removing LED bulbs or electronics has positive effect.  Also, you can check comms by opening Event Viewer to Level 3, operating the suspect switches in admin console, copy to clipboard (clipboard looking icon) and paste trace into message post.

 

As pointed out by Larry, better solution is to solve the comm issue if possible.

 

 

 

Jon...

Edited by jerlands
Link to comment

"The REX2 meter provides communication to the two-way Elster 900 MHz EA_LAN and to the ZigBee 2.4 GHz network"

 

I don't know but imagine all of their meters operate on the same frequencies?  That said... Insteon operates on 915Mhz and I don't think 900Mhz would interfere.

 

I suspect you have other issues and possibly induced by noise.  You might check the circuits the lights are on and see if removing LED bulbs or electronics has positive effect.  Also, you can check comms by opening Event Viewer to Level 3, operating the suspect switches in admin console, copy to clipboard (clipboard looking icon) and paste trace into message post.

 

As pointed out by Larry, better solution is to solve the comm issue if possible.

 

 

 

Jon...

If it really comes down to the last straw....call your utility and ask them to pull the meter for a few minutes while you run some tests with your system. You may get  better response by flagging down a truck on the street or making up a story about your meter making a strange noise. LOL

 

Have your tests ready before they get there

 

Who knows? The meter could have a radio out of spec or crashing.

Link to comment

If it really comes down to the last straw....call your utility and ask them to pull the meter for a few minutes while you run some tests with your system. You may get  better response by flagging down a truck on the street or making up a story about your meter making a strange noise. LOL

 

Have your tests ready before they get there

 

Who knows? The meter could have a radio out of spec or crashing.

 

 

REX2(R2S)meter is both a smart metering endpoint and gateway into the home, supporting both 900 MHz and 2.4 GHz ZigBee communications

 

Zigbee operates at same frequency as Insteon (915Mhz) but supposedly (pg. 17) doesn't cause interference.  If they were to pull the meter they'd have to swap it out and I doubt plug-n-play?

 

 

Jon...

Edited by jerlands
Link to comment

Anything even close to 915Mhz can interfere, depending on how the signal is modulated. Z-Wave uses 908.42Mhz and doesn't interfere. Some cordless phones in that range interfere, some don't. Baby monitors are especially notorious.

Link to comment

Anything even close to 915Mhz can interfere, depending on how the signal is modulated. Z-Wave uses 908.42Mhz and doesn't interfere. Some cordless phones in that range interfere, some don't. Baby monitors are especially notorious.

Or double or triple or half the frequency.

 

Even two frequencies generate a mix of the sum and difference between frequencies as a side effect (beat frequency), so again....

    who knows?

 

This radio metering stuff is all new to utilities so I am sure if you explained your problem they would accommodate you to investigate.

 

These electronic meters only last 10 years at best instead of the 32 year average for the old mechanical ones.If there is a problem the utility want to know about it before they buy another 100,000 units.

Edited by larryllix
  • Like 1
Link to comment

Or double or triple or half the frequency.

 

Actually any duple product, sum or difference. Even a dividend, but not a divinity.

 

 

 

These electronic meters only last 10 years at best instead of the 32 year average for the old mechanical ones

 

 

Link? Thanks B)

Link to comment

Actually any duple product, sum or difference. Even a dividend, but not a divinity.

 

 

 

Link? Thanks B)

Just worked in that field for 34 years. I don't know where this would be publicly revealed but IIRC Ontario Hydro established the averages for accounting purposes based on their few million units. 

 

The mechanical units were put out for 12 years and then about 5-10% sampled and the group left out for another 2,4,6 or 8 years before another sample was done. Short of newer and cheaper metals for the gears nothing ever went wrong with such a simple device.

 

The CPU based units are put out for 6, or 8 years and brought in 100% due to lack of reliability. Much of the short lifespan is due to technology obsolescence so far as things are really changing in that field. A lot of this was due to the offering of proprietary radio systems that utilities jumped into before de facto standards were established. Surges take their toll and CPUs can make readings jump at any digit in the reading, go backwards, blank, or display garbage.

 

We can thank our thoughtless politicians for costing us billions of dollars to throw non-recyclable meters in the garbage, in Ontario, over a two year period, just to raise the cost of energy. I sat face to face with the one responsible, here, and felt like  kicking him where it hurts.. grrrr..... Politician shouldn't be involved in decisions.

 

An electronic meter with a CPU and a digital radio with all the bells and whistles that sells for $22-$28 is bound to have problems. hmmmm... that may have been $18 the last time I heard.

 

http://www.emfwise.com/smartmeters.php

This article states 12-15 years and 50 years for mechanical types but from Ontario Hydro surveys those figures are too high. Heck, I spent my first  dozen years (late 70s)  working with GE I-30A meters. The number tells the first year released.

Edited by larryllix
  • Like 1
Link to comment

"The REX2 meter provides communication to the two-way Elster 900 MHz EA_LAN and to the ZigBee 2.4 GHz network"

 

I don't know but imagine all of their meters operate on the same frequencies?  That said... Insteon operates on 915Mhz and I don't think 900Mhz would interfere.

 

I suspect you have other issues and possibly induced by noise.  You might check the circuits the lights are on and see if removing LED bulbs or electronics has positive effect.  Also, you can check comms by opening Event Viewer to Level 3, operating the suspect switches in admin console, copy to clipboard (clipboard looking icon) and paste trace into message post.

 

As pointed out by Larry, better solution is to solve the comm issue if possible.

 

 

 

Jon...

should I keep the event viewer open for awhile ?

Link to comment

"The REX2 meter provides communication to the two-way Elster 900 MHz EA_LAN and to the ZigBee 2.4 GHz network"

 

I don't know but imagine all of their meters operate on the same frequencies?  That said... Insteon operates on 915Mhz and I don't think 900Mhz would interfere.

 

I suspect you have other issues and possibly induced by noise.  You might check the circuits the lights are on and see if removing LED bulbs or electronics has positive effect.  Also, you can check comms by opening Event Viewer to Level 3, operating the suspect switches in admin console, copy to clipboard (clipboard looking icon) and paste trace into message post.

 

As pointed out by Larry, better solution is to solve the comm issue if possible.

 

 

 

Jon...

Here what I have in the event viewer:

 

mer. 03/16/2016 18:46:26 : [        Time] 18:46:26 2(0)

mer. 03/16/2016 18:56:25 : [        Time] 18:56:25 2(0)

mer. 03/16/2016 18:59:39 : [          IR]     00AA Press

mer. 03/16/2016 19:09:39 : [        Time] 19:09:40 2(0)

mer. 03/16/2016 19:15:20 : [          IR]     016A Press

mer. 03/16/2016 19:20:11 : [        Time] 19:20:12 2(0)

mer. 03/16/2016 19:20:11 : [iNST-TX-I1  ] 02 62 00 00 10 CF 11 00

mer. 03/16/2016 19:20:11 : [iNST-ACK    ] 02 62 00.00.10 CF 11 00 06          LTONRR (00)

mer. 03/16/2016 19:20:11 : [  23 5F D4 1]       ST 255

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

mer. 03/16/2016 19:20:11 : [  2B 69 2D 1]       ST 255

mer. 03/16/2016 19:20:12 : [iNST-TX-I1  ] 02 62 00 00 10 CF 11 00

mer. 03/16/2016 19:20:12 : [iNST-ACK    ] 02 62 00.00.10 CF 11 00 06          LTONRR (00)

mer. 03/16/2016 19:20:13 : [iNST-TX-I1  ] 02 62 00 00 10 CF 11 00

mer. 03/16/2016 19:20:13 : [iNST-ACK    ] 02 62 00.00.10 CF 11 00 06          LTONRR (00)

mer. 03/16/2016 19:20:14 : [iNST-TX-I1  ] 02 62 00 00 10 CF 11 00

mer. 03/16/2016 19:20:14 : [iNST-ACK    ] 02 62 00.00.10 CF 11 00 06          LTONRR (00)

mer. 03/16/2016 19:20:15 : [iNST-TX-I1  ] 02 62 00 00 10 CF 11 00

mer. 03/16/2016 19:20:15 : [iNST-ACK    ] 02 62 00.00.10 CF 11 00 06          LTONRR (00)

mer. 03/16/2016 19:30:10 : [        Time] 19:30:12 2(0)

mer. 03/16/2016 19:40:10 : [        Time] 19:40:11 2(0)

mer. 03/16/2016 19:50:11 : [        Time] 19:50:12 2(0)

 

Link to comment

Ok.. I'll guess :) I'm not familiar with ISY IR but looks like you've linked a number of devices to transmitter buttons 3 of which seem to respond but 10.CF.11 doesn't?

Which device is 10.CF.11?  If you use the admin console and active 10.CF.11 on/off you should get hops left=

 

 

Jon...

Link to comment

Just noticed the time differences and possibly IR has nothing to do with it?  Also not familiar with "mer." which should read as the day Wed?

 

Edit:  I see :) it's French.

 

 

Jon...

Edited by jerlands
Link to comment

Just noticed the time differences and possibly IR has nothing to do with it? Also not familiar with "mer." which should read as the day Wed?

 

Edit: I see :) it's French.

 

 

Jon...

Yess exactly it's french :wink:

 

 

I'll check why the IR is activated :-/ I don't use it so...?

 

My 2477d switch are :

mer. 03/16/2016 19:20:11 : [ 23 5F D4 1] ST 255

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

mer. 03/16/2016 19:20:11 : [ 2B 69 2D 1] ST 255

 

The 10.CF.11 I really don't know what it is?

 

The Isy or the PLM maybe.

I will try to investigate about that.

 

I keep you in touch.

 

Thanks

 

 

Oh by the way I repeat 5 time the program because I had some problems with device :-) It's the reason you see

 

mer. 03/16/2016 19:20:11 : [iNST-TX-I1  ] 02 62 00 00 10 CF 11 00

mer. 03/16/2016 19:20:11 : [iNST-ACK    ] 02 62 00.00.10 CF 11 00 06          LTONRR (00)

 

Five times :-)

Edited by autoperformance
Link to comment

Yes, probably PLM... but I believe you have Event Viewer open to Level 1?  You need to open it up to Level 3.  Just click the drop down menu and select.

 

Here's what a level 3 trace looks like for 2477d

 

Wed 03/16/2016 07:54:11 PM : [iNST-TX-I1  ] 02 62 38 03 52 0F 11 FF
Wed 03/16/2016 07:54:11 PM : [iNST-ACK    ] 02 62 38.03.52 0F 11 FF 06          LTONRR (FF)
Wed 03/16/2016 07:54:11 PM : [iNST-SRX    ] 02 50 38.03.52 30.6C.FB 2F 11 FF    LTONRR (FF)
Wed 03/16/2016 07:54:11 PM : [std-Direct Ack] 38.03.52-->ISY/PLM Group=0, Max Hops=3, Hops Left=3
Wed 03/16/2016 07:54:15 PM : [iNST-TX-I1  ] 02 62 38 03 52 0F 13 00
Wed 03/16/2016 07:54:15 PM : [iNST-ACK    ] 02 62 38.03.52 0F 13 00 06          LTOFFRR(00)
Wed 03/16/2016 07:54:15 PM : [iNST-SRX    ] 02 50 38.03.52 30.6C.FB 2F 13 00    LTOFFRR(00)
Wed 03/16/2016 07:54:15 PM : [std-Direct Ack] 38.03.52-->ISY/PLM Group=0, Max Hops=3, Hops Left=3
Wed 03/16/2016 07:54:15 PM : [D2D EVENT   ] Event [38 3 52 1] [sT] [0] uom=100 prec=0
Wed 03/16/2016 07:54:15 PM : [   38 3 52 1]       ST   0 (uom=100 prec=0)
Wed 03/16/2016 07:54:15 PM : [D2D-CMP 00BD] STS [38 3 52 1] ST Converted values Event=0 Condition=0 prec=0
Wed 03/16/2016 07:54:15 PM : [D2D-CMP 00BD] STS [38 3 52 1] ST op=6 Event(val=0 uom=100 prec=0) != Condition(val=0 uom=51 prec=0) --> false

 

 

 

Jon...

 

Edited by jerlands
Link to comment

The 10.CF.11 I really don't know what it is?

 

The Isy or the PLM maybe.

I will try to investigate about that.

 

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.

Link to comment

Yes, probably PLM... but I believe you have Event Viewer open to Level 1?  You need to open it up to Level 3.  Just click the drop down menu and select.

 

Here's what a level 3 trace looks like for 2477d

 

Wed 03/16/2016 07:54:11 PM : [iNST-TX-I1  ] 02 62 38 03 52 0F 11 FF

Wed 03/16/2016 07:54:11 PM : [iNST-ACK    ] 02 62 38.03.52 0F 11 FF 06          LTONRR (FF)

Wed 03/16/2016 07:54:11 PM : [iNST-SRX    ] 02 50 38.03.52 30.6C.FB 2F 11 FF    LTONRR (FF)

Wed 03/16/2016 07:54:11 PM : [std-Direct Ack] 38.03.52-->ISY/PLM Group=0, Max Hops=3, Hops Left=3

Wed 03/16/2016 07:54:15 PM : [iNST-TX-I1  ] 02 62 38 03 52 0F 13 00

Wed 03/16/2016 07:54:15 PM : [iNST-ACK    ] 02 62 38.03.52 0F 13 00 06          LTOFFRR(00)

Wed 03/16/2016 07:54:15 PM : [iNST-SRX    ] 02 50 38.03.52 30.6C.FB 2F 13 00    LTOFFRR(00)

Wed 03/16/2016 07:54:15 PM : [std-Direct Ack] 38.03.52-->ISY/PLM Group=0, Max Hops=3, Hops Left=3

Wed 03/16/2016 07:54:15 PM : [D2D EVENT   ] Event [38 3 52 1] [sT] [0] uom=100 prec=0

Wed 03/16/2016 07:54:15 PM : [   38 3 52 1]       ST   0 (uom=100 prec=0)

Wed 03/16/2016 07:54:15 PM : [D2D-CMP 00BD] STS [38 3 52 1] ST Converted values Event=0 Condition=0 prec=0

Wed 03/16/2016 07:54:15 PM : [D2D-CMP 00BD] STS [38 3 52 1] ST op=6 Event(val=0 uom=100 prec=0) != Condition(val=0 uom=51 prec=0) --> false

 

 

 

Jon...

No I'm ok. It's the event viewer #3

 

 

 

 

post-7705-0-86082500-1458181115_thumb.jpg

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

×
×
  • Create New...