We have moved at community.getvera.com

Author Topic: Read Keyfob status  (Read 2533 times)

Offline Blaabjerg

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Read Keyfob status
« on: August 22, 2016, 04:56:17 am »
Hi,

I can see that "pPanelStatusData" have status "Disarm / Fob 01". But my condition "pPanelStatusData eq "Disarm / Fob 01" is false.

Anybody know why or how I can use a keyfob in a condition?

Thanks

Regards

Claus

Offline tunnus

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +0/-1
Re: Read Keyfob status
« Reply #1 on: October 21, 2016, 06:34:38 am »
Hi,

I can see that "pPanelStatusData" have status "Disarm / Fob 01". But my condition "pPanelStatusData eq "Disarm / Fob 01" is false.

Anybody know why or how I can use a keyfob in a condition?

Thanks

Regards

Claus

Hi had a similar problem, you should use (I assume you are using PLEG): pPanelStatusData =~ "Disarm / Fob 01"
 
Vera Edge, a lot of different (Aeotec, Fibaro etc) devices and plugins

Offline Blaabjerg

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Read Keyfob status
« Reply #2 on: October 23, 2016, 09:43:52 am »
Hi,

I can see that "pPanelStatusData" have status "Disarm / Fob 01". But my condition "pPanelStatusData eq "Disarm / Fob 01" is false.

Anybody know why or how I can use a keyfob in a condition?

Thanks

Regards

Claus

Hi had a similar problem, you should use (I assume you are using PLEG): pPanelStatusData =~ "Disarm / Fob 01"

Yes it is PLEG. The setting does not work for me :-( Ant other suggestions?

/Claus

Offline tunnus

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +0/-1
Re: Read Keyfob status
« Reply #3 on: November 11, 2016, 11:55:05 am »
It's mighty quiet around here  :)

Maybe it's this slash (/) character causing problems? You could try:

pPanelStatusData =~ "Disarm" AND pPanelStatusData =~ "Fob 01"

UPDATE:
I tried to setup similar condition, but for some reason PanelStatusData shows "Disarm / UNKNOWN", so I can't proceed with this :(

I have a separate keypad (KP-140/141 PG2) which I use with proximity tags ("chicklets").
« Last Edit: November 15, 2016, 11:59:11 am by tunnus »
Vera Edge, a lot of different (Aeotec, Fibaro etc) devices and plugins

Offline Blaabjerg

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Read Keyfob status
« Reply #4 on: November 17, 2016, 03:49:08 pm »
It's mighty quiet around here  :)

Maybe it's this slash (/) character causing problems? You could try:

pPanelStatusData =~ "Disarm" AND pPanelStatusData =~ "Fob 01"

UPDATE:
I tried to setup similar condition, but for some reason PanelStatusData shows "Disarm / UNKNOWN", so I can't proceed with this :(

I have a separate keypad (KP-140/141 PG2) which I use with proximity tags ("chicklets").

I have try with the above, but it is still not working. Is the =~ the same as LIKE? Or how do I use the LIKE oprator in PLEG?

/Claus

Offline Blaabjerg

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Read Keyfob status
« Reply #5 on: November 20, 2016, 06:21:05 am »
It's mighty quiet around here  :)

Maybe it's this slash (/) character causing problems? You could try:

pPanelStatusData =~ "Disarm" AND pPanelStatusData =~ "Fob 01"

UPDATE:
I tried to setup similar condition, but for some reason PanelStatusData shows "Disarm / UNKNOWN", so I can't proceed with this :(

I have a separate keypad (KP-140/141 PG2) which I use with proximity tags ("chicklets").

I have try with the above, but it is still not working. Is the =~ the same as LIKE? Or how do I use the LIKE oprator in PLEG?

/Claus

This is working: pPanelStatusData =~ "Disarm / Fob" AND pPanelStatusData =~ "01"

Offline Blaabjerg

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Re: Read Keyfob status
« Reply #6 on: November 20, 2016, 09:05:58 am »
It's mighty quiet around here  :)

Maybe it's this slash (/) character causing problems? You could try:

pPanelStatusData =~ "Disarm" AND pPanelStatusData =~ "Fob 01"

UPDATE:
I tried to setup similar condition, but for some reason PanelStatusData shows "Disarm / UNKNOWN", so I can't proceed with this :(

I have a separate keypad (KP-140/141 PG2) which I use with proximity tags ("chicklets").

I have try with the above, but it is still not working. Is the =~ the same as LIKE? Or how do I use the LIKE oprator in PLEG?

/Claus

This is working: pPanelStatusData =~ "Disarm / Fob" AND pPanelStatusData =~ "01"

There is actualle 2 spaces between Fob and 01. But when I try to add 2 spaces in PLEG, it aotumaticly removes the extra space. I guess that is why you have to use the above query instead of a EQ.

/Claus