How can i confirm the iconcode using PLEG ?

My problem is i am using custom polling maps, depending on if i am steady, going away or coming close. Now looking at my iphonelocator device, quite ofthen the polling map jumps, from coming close to going away for example. So what i would like to do is confirm the iconlocator, by saying if i had 2 refreshes and they are both the same icon code, then change the polling map. Here is what i am using at the moment:

MikeSteady Mdirection == 0 true 2014-02-03 08:11:02 2014-02-03 06:31:43
MikegoingA Mdirection == 25 false 2014-02-03 06:31:43 2014-02-03 08:11:02
MikecomingC Mdirection == 75 false 2014-02-03 06:18:40 2014-02-03 06:19:12

Actions for Condition: MikeSteady
Immediate
Device Action Arguments
Lighting PLEG RunScene SceneNameOrNumber=104

Delay 30
Device Action Arguments
(*)Mike ForceRefresh PresentStatus=0

Actions for Condition: MikegoingA
Immediate
Device Action Arguments
Lighting PLEG RunScene SceneNameOrNumber=105

Delay 30
Device Action Arguments
(*)Mike ForceRefresh PresentStatus=0

Actions for Condition: MikecomingC

The scenes change the polling map. So i could just say check that the iconcode has been the same for example for 5 minutes. That should be easy. But, if i am further away, there might not have been a refresh. So somehow i would like the polling refresh rate currently used to determine the time needed to confirm the iconcode. So if the current polling time is 900 seconds, the iconcode should be the same for 901 seconds to run the scene. If polling time is 120 seconds, it should be the same for 121 seconds and so on.

Is that possible ?

[quote=“mikee123, post:1, topic:179271”]My problem is i am using custom polling maps, depending on if i am steady, going away or coming close. Now looking at my iphonelocator device, quite ofthen the polling map jumps, from coming close to going away for example. So what i would like to do is confirm the iconlocator, by saying if i had 2 refreshes and they are both the same icon code, then change the polling map. Here is what i am using at the moment:

MikeSteady Mdirection == 0 true 2014-02-03 08:11:02 2014-02-03 06:31:43
MikegoingA Mdirection == 25 false 2014-02-03 06:31:43 2014-02-03 08:11:02
MikecomingC Mdirection == 75 false 2014-02-03 06:18:40 2014-02-03 06:19:12

Actions for Condition: MikeSteady
Immediate
Device Action Arguments
Lighting PLEG RunScene SceneNameOrNumber=104

Delay 30
Device Action Arguments
(*)Mike ForceRefresh PresentStatus=0

Actions for Condition: MikegoingA
Immediate
Device Action Arguments
Lighting PLEG RunScene SceneNameOrNumber=105

Delay 30
Device Action Arguments
(*)Mike ForceRefresh PresentStatus=0

Actions for Condition: MikecomingC

The scenes change the polling map. So i could just say check that the iconcode has been the same for example for 5 minutes. That should be easy. But, if i am further away, there might not have been a refresh. So somehow i would like the polling refresh rate currently used to determine the time needed to confirm the iconcode. So if the current polling time is 900 seconds, the iconcode should be the same for 901 seconds to run the scene. If polling time is 120 seconds, it should be the same for 121 seconds and so on.

Is that possible ?[/quote]

seems difficult today, maybe analyzing the string in the variable MsgText (which is a string like 2014-02-18 20:46 / 2014-02-18 20:56 / 600 s) and looking for last “/” character, after wich is the next polling period chosen by the plugin. quite ugly but … why not