PLEG + Ping Sensor ... work together properly?

I have a very basic PLEG where I pull in a Ping Sensor device, Triggers and Device properties. But no matter what I try, it never sees the Ping device as tripped - even though the Ping Device itself shows tripped. I’ve even tried to use ‘Invert’ on the Ping device.

But I verified when the Ping is Tripped, the value is 1… and my Ping device shows a value of 1 but PLEG does not. I have tried chaging the Ping device to switch from 0/1 several times… the PLEG never works.

Is there some secret I’m missing?

thx for the help

Device ID: 1272013-11-10 21:56:31.165 PLC Version: 5.2

Triggers
Name	Description	Last Trigger	State
Night	Day or Night indicates Night time.	2013-11-10 17:28:06.167 	true

Device Properties
Name	Device Name	Device Variable	Last Change	Value
Tripped	Ping Robyn's Phone	Tripped	2013-11-10 21:54:33.154 	0

Conditions
Name	Expression	Last True	State
AtHome	Tripped==1	2013-11-10 21:36:10.941 	false

Actions
Actions for Condition: AtHome

Immediate

Device	Action	Arguments
Occupancy variables	SetVariable3	newVariable3=home

What do you mean never ?
It was tripped at: 2013-11-10 21:36:10.941 according to the Status report.

Twenty minutes later it was reset … and two minutes later you generated the report.

When I look at the Ping Sensor device itself, it will shows value 1 while PLEG shows value 0.

Are you looking at the Icon (Red Man/Green Man) ?
Where are you looking at the value of Tripped ?

The value in the Advanced TAB is cached and is only upto date immediately after doing a browser refresh.

I’m looking at the Tripped variable (see screen shot).

PLEG status report shows correct value but seems like it is not updating my Variable Container?

Seems like there are problems with PLEG updating Variable Container. This is the 3rd different PLEG device (v5.2 & 5.3) with an issue… using different Variable Containers.

[code]Occupancy - Robyn

Device ID: 1272013-11-11 11:53:47.341 PLC Version: 5.3

Triggers

Name Description Last Trigger State
Night Day or Night indicates Night time. 2013-11-10 17:28:06.167 false
Device Properties

Name Device Name Device Variable Last Change Value
Tripped Ping Robyn’s Phone Tripped 2013-11-11 09:16:57.146 1
Conditions

Name Expression Last True State
Away Tripped==1 2013-11-11 11:53:52.315 true
Home Tripped==0 2013-11-11 09:41:05.517 false
Actions

Actions for Condition: Home

Immediate

Device Action Arguments
Occupancy variables SetVariable3 newVariable3=away
Actions for Condition: Away

Immediate

Device Action Arguments
Occupancy variables SetVariable3 newVariable3=home[/code]

I am confused … you stated:

I have a very basic PLEG where I pull in a Ping Sensor device, Triggers and Device properties. But no matter what I try, it never sees the Ping device as tripped - even though the Ping Device itself shows tripped. I've even tried to use 'Invert' on the Ping device.

But I verified when the Ping is Tripped, the value is 1… and my Ping device shows a value of 1 but PLEG does not.

Is PLEG seeing the right value ? … or is there a problem setting the values to your variable container ?
I can only help if I know what the real problem is.

At first, due to browser refresh issue, I thought PLEG was not seeing the correct value - but it is.

After 2 hours of testing, PLEG correctly sees the value from the Ping Sensor… but the Variable Container is not getting set. This is consistent with the last 2 PLEG devices I’ve been having issues with.

Can you setup a Variable Container and try it?

I do not use that plugin … but I will look at it.

In 5.3 there is also a way to do a LUUP.variable_set from an Action.

Attached is my PLEG status report and display of the Variable Container.
I have two actions … one sets all of the Names the other sets all of the values.

All works as expected.

I deleted all the Conditions & Actions, then started over… and now it is working.

Richard,
I’m 99% positive I found another bug. I spent a few hours trying different things and have a reproducible test. I’d love for you to log into to my system and test it.

Test:

Results… 2 separate PLEG devices with Actions writing the same text to 2 separate Variable Containers - both exhibit the same problem. They will never SetVariable values for 3,4,5 but 1, 2 always work fine.

[code]Occupancy - Phone
Device ID: 1272013-11-18 10:56:17.735 PLC Version: 5.4

Device Properties
Name Device Name Device Variable Last Change Value
pRobynPhone Ping Robyn’s Phone Tripped 2013-11-18 10:53:20.457 0

Conditions
Name Expression Last True State
RobynHome pRobynPhone==0 2013-11-18 10:53:20.458 true
RobynAway pRobynPhone==1 2013-11-18 10:53:05.399 false
Actions

Actions for Condition: RobynHome
Immediate
Device Action Arguments
Security variables SetVariable1 newVariable1=home
Security variables SetVariable2 newVariable2=home
Security variables SetVariable3 newVariable3=home
Security variables SetVariable4 newVariable4=home
Security variables SetVariable5 newVariable5=home

Actions for Condition: RobynAway
Immediate
Device Action Arguments
Security variables SetVariable1 newVariable1=away
Security variables SetVariable2 newVariable2=away
Security variables SetVariable3 newVariable3=away
Security variables SetVariable4 newVariable4=away
Security variables SetVariable5 newVariable5=away[/code]

What version is your VC plugin? There was an issue with an early version where the actions for variables 3-5 did not work. I’m running VC 1.7 and the actions all work.

I’m on 1.5… auto-update is on but looks like it is not working.

I tested on 1.7

You guys were spot on… 1.7 fixed my issue. thx!