We have moved at community.getvera.com

Author Topic: [SOLVED] How to get the tripped satus of Ping Sensor  (Read 772 times)

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 566
  • Karma: +19/-6
[SOLVED] How to get the tripped satus of Ping Sensor
« on: January 30, 2014, 10:01:41 am »
Hi
I am trying to get the tripped status of a ping sensor. I have tried this:

Code: [Select]
luup.variable_get("urn:schemas-demo-ted-striker:serviceId:AwarenessSensor1","Tripped", 195)
and this:
Code: [Select]
luup.variable_get("urn:micasaverde-com:serviceId:SecuritySensor1","Tripped", 195)
Neither seem to work. see screenshot:



Any help is appreciated
« Last Edit: January 30, 2014, 10:35:36 am by konradwalsh »

Offline oTi@

  • Community Beta
  • Master Member
  • ******
  • Posts: 4041
  • Karma: +32/-6
  • UI what ?!
Re: [HELP] How to get the tripped satus of Ping Sensor
« Reply #1 on: January 30, 2014, 10:19:46 am »
How about when you use the serviceId from the first screenshot?
Dezwaved at the moment...

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 566
  • Karma: +19/-6
Re: [HELP] How to get the tripped satus of Ping Sensor
« Reply #2 on: January 30, 2014, 10:29:00 am »
Sorry, I should have said, I tried that too..

I am now just trying a simple luup get and use luup.task to display a message of the result. to simplify my code for testing - but each version pops up a "Empty Response Received" and reloads vera

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 566
  • Karma: +19/-6
Re: [HELP] How to get the tripped satus of Ping Sensor
« Reply #3 on: January 30, 2014, 10:35:20 am »
I cant say why... but I just ran this as a copy/paste and it worked this time

Code: [Select]
luup.variable_get("urn:micasaverde-com:serviceId:SecuritySensor1", "Tripped", 195)
Dont know why it works now but  for the hour before I posted.

Thanks for your help anyway.. maybe you question got me to re-look at it