Author Topic: Ping Sensor  (Read 193987 times)

Offline mpenda

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +1/-0
Re: Ping Sensor
« Reply #15 on: October 05, 2009, 07:20:41 pm »
Hi.
I can see the D_PingSensor_Invert.xml file in my list, and I can choose it in the device, but nowhere do I see an "Invert" variable to change to "1".
So its still red on success (which I can live with) but no option to do something when there's NO response.
I'm probably missing something.....
Thanks for the help.
v1.0.980, HA09C, HA07C, WDTC-20, HRDS1, BLC131A, SM103, ZIR000, HA-18WD, ZRW103, HA02C, HA03C

Offline TedStriker

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +2/-0
Re: Ping Sensor
« Reply #16 on: October 06, 2009, 01:19:31 am »
Hi Mpenda,

maybe you have to remove the old ping device and install it again. While testing I removed the devie many times and readded it.
As you can see on the screenshot in the wiki there should be an invert field.

To make a scene become activated by a not reachable device you should have configured it similar to the one on the attached screenshot. I've tried it and it worked. The important part in the scene configuration is the "Device responded = No".
Then you should get what you were looking for.

Offline mpenda

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +1/-0
Re: Ping Sensor
« Reply #17 on: October 07, 2009, 07:51:39 am »
It seems one file was not updating. I wound up going in via telnet, changing permission for the file in /etc and then uploaded again. That time the file took. Even then, though, it took two attempts to get the necessary variables (Address, Period and Invert) to show up.
Looks good now though.
Many thanks for that update and help!!
v1.0.980, HA09C, HA07C, WDTC-20, HRDS1, BLC131A, SM103, ZIR000, HA-18WD, ZRW103, HA02C, HA03C

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: Ping Sensor
« Reply #18 on: October 07, 2009, 08:30:42 pm »
That one great plugin!
Ted, what's the purpose of awareness service?
It seems that functionality doesn't use it directly.

Offline TedStriker

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +2/-0
Re: Ping Sensor
« Reply #19 on: October 08, 2009, 03:34:41 am »
Hi 325xi, I'm happy you like it.
The AwarenessSensor was/is intended to be reused in future sensors. I didn't want to write the same code over and over again.  
But as I experienced, Vera doesnt support this kind of device development (it's not reflected in the UI as expected) So for now, it's just a wrapper for the SecuritySensor + UPnP access to the variables, which is not provided by the SecuritySensor itself.  

Offline TedStriker

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +2/-0
Re: Ping Sensor
« Reply #20 on: October 09, 2009, 04:15:03 pm »
Found some inconsistency in I_AwarenessSensor.xml which has been removed.
http://wiki.micasaverde.com/index.php/Ping_Sensor_Plugin

Offline mpenda

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +1/-0
Re: Ping Sensor
« Reply #21 on: October 11, 2009, 03:45:58 pm »
I created a scene which has an event that fires on the armed ping sensor, when it does NOT trip (invert = 1).
It works, I put in a bogus address in the device and so it fails to ping it. I set a command to shut off a lamp for testing purposes and off goes the lamp.
But I also put in a command to set the Ping Sensor device to BYPASS for 5 minutes to allow for the modem to reboot and the connection to re-establish before I start to check for a connection again.

The command to set it to BYPASS mode doesn't work. Any ideas?
v1.0.980, HA09C, HA07C, WDTC-20, HRDS1, BLC131A, SM103, ZIR000, HA-18WD, ZRW103, HA02C, HA03C

Offline TedStriker

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +2/-0
Re: Ping Sensor
« Reply #22 on: October 12, 2009, 03:49:55 pm »
I'll have a look on it. Have you loaded the D_PingSensor.xml or the D_PingSensor_Invert.xml?

Offline mpenda

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +1/-0
Re: Ping Sensor
« Reply #23 on: October 12, 2009, 03:52:01 pm »
I loaded D_PingSensor_Invert.xml as I like the inverted mode.
Thanks!!
v1.0.980, HA09C, HA07C, WDTC-20, HRDS1, BLC131A, SM103, ZIR000, HA-18WD, ZRW103, HA02C, HA03C

Offline mpenda

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +1/-0
Re: Ping Sensor
« Reply #24 on: October 12, 2009, 03:56:10 pm »
By the way, the buttons in Dashboard to arm and bypass work just fine...its just from the command section that it does not change.
v1.0.980, HA09C, HA07C, WDTC-20, HRDS1, BLC131A, SM103, ZIR000, HA-18WD, ZRW103, HA02C, HA03C

Offline TedStriker

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +2/-0
Re: Ping Sensor
« Reply #25 on: October 12, 2009, 04:11:55 pm »
Thank you for that hint.
What do you mean by "the command section"?

Offline mpenda

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +1/-0
Re: Ping Sensor
« Reply #26 on: October 12, 2009, 04:16:48 pm »
When I create a scene, I put an event in to fire on the lack of a ping.
Then under the event I add the commands. There's pull downs for each of the devices. So one device is the appliance module on the modem which I turn off for 30 seconds and then back on. There's also the Ping Sensor which has options to ARM and BYPASS.
v1.0.980, HA09C, HA07C, WDTC-20, HRDS1, BLC131A, SM103, ZIR000, HA-18WD, ZRW103, HA02C, HA03C

Offline TedStriker

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +2/-0
Re: Ping Sensor
« Reply #27 on: October 12, 2009, 04:43:37 pm »
Which version of the sensor do you use?

Offline mpenda

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +1/-0
Re: Ping Sensor
« Reply #28 on: October 12, 2009, 08:27:52 pm »
I'm running the latest, 1.4
v1.0.980, HA09C, HA07C, WDTC-20, HRDS1, BLC131A, SM103, ZIR000, HA-18WD, ZRW103, HA02C, HA03C

Offline mpenda

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +1/-0
Re: Ping Sensor
« Reply #29 on: October 13, 2009, 01:53:35 pm »
I was able to get it to work using a luup event, rather then trying to do it with the gui command portion of the scene. Since I got a tip on the timer function on another thread, I was able to do what I wanted to do (bypass, wait 5 minutes, arm).

Thanks for all your help.
v1.0.980, HA09C, HA07C, WDTC-20, HRDS1, BLC131A, SM103, ZIR000, HA-18WD, ZRW103, HA02C, HA03C