We have moved at community.getvera.com

Author Topic: "TedStriker" Where are you? - Ping Plugin  (Read 10100 times)

Offline iflyM3

  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
"TedStriker" Where are you? - Ping Plugin
« on: March 28, 2011, 03:21:14 pm »
Does anyone know what happened to TedStriker?  He hasn't been active on this forum since April 15, 2010.  I hope he's o'kay and that he hasn't dropped Vera.  I also sent him a PM to see if he would be willing to update the Ping Plugin for UI4, to clean it up and to get the "Bypass" feature working.  Unfortunately, I really suck at this programming Lua bit so I'm incapable of doing this myself.

That would be really great, the plugin and the idea is awesome!  I currently use the Ping Plugin that's available even with the bugs to initiate a WOL.  e.g. When my PS3 is turned on it sends a WOL packet to my Media Server.  
« Last Edit: March 28, 2011, 03:23:29 pm by iflyM3 »
Vera 2 UI5 (1.5.622)... and too many Z-Wave/Ethernet/Wi-Fi devices to list.

Offline mversluis

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #1 on: March 28, 2011, 03:31:32 pm »
Hi iflyM3,

Just search the forum , and there is somewhere a update for the ping sensor.
Just add 1 line extra and will work.

I will try to find it for you.
Marco
An optimist is a person who sees only the lights in the picture,
 Whereas a pessimist sees only the shadows.  An idealist, however is one who sees the light and the shadows, but in addition sees something else:  the possibility of changing the picture, of making the light prevail over shadows.

Offline iflyM3

  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #2 on: March 28, 2011, 03:37:24 pm »
Yes, the Lua lines are:

<deviceType>urn:schemas-micasaverde-com:device:MotionSensor:1</deviceType>
<staticJson>D_MotionSensor1.json</staticJson>

I've added this too so that I can use this in my initiate server scene, if you search the forum you'll also see a lot about the bugs of the plugin to where the "Bypass" feature doesn't work.  I can confirm this as well.  I wish that I was good at this Lua stuff because I would love to update this nifty and very useful plugin.

The "Bypass" Feature still doesn't work within the GUI of UI4 for Vera2.  Strange thing is, tho.  It does work through the Mobile App.  If someone could explain that one to me I'd surely like to know why. LOL!  Why does the "Bypass" feature work through the mobile app but not through the GUI of UI4? lol.
« Last Edit: March 28, 2011, 03:39:35 pm by iflyM3 »
Vera 2 UI5 (1.5.622)... and too many Z-Wave/Ethernet/Wi-Fi devices to list.

Offline mversluis

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #3 on: March 28, 2011, 03:38:14 pm »
quote from http://forum.micasaverde.com/index.php?topic=4943.0

I modifed the D_PingSensor.xml.
I added <staticJson> after the devicetype :

<deviceType>urn:schemas-micasaverde-com:device:MotionSensor:1</deviceType>
<staticJson>D_MotionSensor1.json</staticJson>

Adding this line enables the device to be selected when creating a scene.
Hope that works out for you too.
Tested this evening; works perfect! When I come home in the evening with my iPad; my home welcomes
me with turning on the lights:) Cheaper then a motion sensor (taken into account you already have an iphone/ipad
An optimist is a person who sees only the lights in the picture,
 Whereas a pessimist sees only the shadows.  An idealist, however is one who sees the light and the shadows, but in addition sees something else:  the possibility of changing the picture, of making the light prevail over shadows.

Offline mversluis

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #4 on: March 28, 2011, 03:41:13 pm »
Hi ,

We use the ping sensor for awareness in the office.

Is a computer turn on , the printers and heating will follow.
Is there no computer running for a hour the heating and printers will go off

Is my Gsm near the house it will receive a IP nr and will be pingeble , the scene will trigger the light in to the hallway ( coming home)

Till so fair everything is working as we expected

Marco
An optimist is a person who sees only the lights in the picture,
 Whereas a pessimist sees only the shadows.  An idealist, however is one who sees the light and the shadows, but in addition sees something else:  the possibility of changing the picture, of making the light prevail over shadows.

Offline iflyM3

  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #5 on: March 28, 2011, 03:44:22 pm »
hmmm... what UI and Vera are you using? Just curious. 

For the most part the plugin works great and it's a really awesome idea.  I just can't seem to get the "Bypass" button feature to work within the GUI of UI4.  I can modify the "armed" state under the advance tab and that works fine.  When I press the bypass button within the GUI, I get a "Delivery Failed" message.
Vera 2 UI5 (1.5.622)... and too many Z-Wave/Ethernet/Wi-Fi devices to list.

Offline mversluis

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #6 on: March 28, 2011, 03:48:51 pm »
vera 2 is running on beta 1.1.1230.

But on the previous versions is also worked.
I do nothing with the bypass mode , just install and create a scene to trigger something
An optimist is a person who sees only the lights in the picture,
 Whereas a pessimist sees only the shadows.  An idealist, however is one who sees the light and the shadows, but in addition sees something else:  the possibility of changing the picture, of making the light prevail over shadows.

Offline iflyM3

  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #7 on: March 28, 2011, 03:50:59 pm »
Cool. Oh, well it was worth a shot to see if TedStriker is still out there somewhere.  lol.

I think that I am just going to match up the normal Motion Sensor xml file to the Ping Sensor xml file and see what's so different between the two.   The "bypass" button never worked for me in the GUI even preBeta .1234 with using .1883 and .1886, so I know it's not a problem with .1234
Vera 2 UI5 (1.5.622)... and too many Z-Wave/Ethernet/Wi-Fi devices to list.

Offline zhouse

  • Sr. Newbie
  • *
  • Posts: 39
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #8 on: April 29, 2011, 08:20:57 am »
Problem was solved here: http://forum.micasaverde.com/index.php?topic=4791.0

You must add action in section <actionlist> in file I_PingSensor.xml:
Code: [Select]
 
<action>
    <serviceId>urn:micasaverde-com:serviceId:SecuritySensor1</serviceId>
    <name>SetArmed</name>
    <run>
    luup.variable_set("urn:micasaverde-com:serviceId:SecuritySensor1", "Armed", lul_settings.newArmedValue, lul_device)
    return 4, 0
    </run>
  </action>

Offline JOD

  • Hero Member
  • *****
  • Posts: 1973
  • Karma: +4/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #9 on: April 30, 2011, 12:18:06 pm »
Although the bypass feature works in the UI, I believe this device is broken in the latest beta <1.1.1243 - 1.1.124X>
Will not trigger a scene when used as an event.
Can someone confirm this?

JOD.
I'm sorry, my responses are limited. You must ask the right questions.

Offline iflyM3

  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #10 on: April 30, 2011, 02:34:54 pm »
@JOD,

It can still trigger a scene when I use it, I just tested it again to be sure.  It has been working for me since I upgraded the Firmware too.   I am using the normal Ping Sensor Plugin not the Invert one.  Stupid question here I know, sry... Have you tried deleting the device and creating a new just to be sure?

I have a scene using the ping sensor plugin to ping my PS3's and if it gets a reply back "Tripped" it sends a WOL Layer 2 Packet to my Media Server and turns it on.  This way if the PS3's are off and nobody is watching anything or if nobody is home then the Media Server isn't always on wasting electricity.

However, I still have not been able to use the Arm and Bypass buttons within Vera's dashboard.  I always get "Delivery failed." message all of the time.  Even with making sure that the actionlist was modified, I tried two different variations modifying the actionlist and neither of which seems to work:

Quote
<action>
    <serviceId>urn:micasaverde-com:serviceId:SecuritySensor1</serviceId>
    <name>SetArmed</name>
    <run>
    luup.variable_set("urn:micasaverde-com:serviceId:SecuritySensor1", "Armed", lul_settings.newArmedValue, lul_device)
    return 4, 0
    </run>
  </action>

AND:

  <action>
    <serviceId>urn:demo-ted-striker:serviceId:PingSensor1</serviceId>
    <name>SetArmed</name>
    <run>
    luup.variable_set("urn:demo-ted-striker:serviceId:PingSensor1", "Armed", lul_settings.newArmedValue, lul_device)
    return 4, 0
    </run>
  </action>

I am going to continue to play with the actionlist and I'm going to change "lul_device" to "parentDevice" and see if that helps...
Vera 2 UI5 (1.5.622)... and too many Z-Wave/Ethernet/Wi-Fi devices to list.

Offline JOD

  • Hero Member
  • *****
  • Posts: 1973
  • Karma: +4/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #11 on: April 30, 2011, 03:02:49 pm »
@iflyM3,

I tried the normal and inverted versions and both an armed sensor is tripped and A sensor (door/window/motion/etc.) is tripped with the same results. The device trips on discovering the IP but will not trigger as an event. I've deleted the device and created 4 additional with the same results.

Have you uploaded the revised I_PingSensor.xml that @zhouse posted 3 posts up?
When I uploaded it, the bypass function started working but it stopped working as a trigger.

I'll double check by uploading the old I_PingSensor.xml and see if it starts working again but it will lose the bypass function.

*Edit. Just uploaded the old I_PingSensor.xml, lost the bypass function (actually it was in the bypass state already and now wont arm) but still will not trigger an event.

The I_PingSensor.xml dated:
9/19/09 wont allow changing arm / bypass
8/29/10 wont allow changing arm / bypass
4/29/11 does allow changing arm / bypass via the UI but it cannot be changed via a scene.


JOD.
« Last Edit: April 30, 2011, 03:36:08 pm by JOD »
I'm sorry, my responses are limited. You must ask the right questions.

Offline iflyM3

  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #12 on: April 30, 2011, 03:41:29 pm »
Yes, I did download and upload the Implementation file that zhouse posted up.  Still no dice.  I can set the Armed and Bypass buttons within the cp.mios.com/mobile app but not through Vera's Dashboard or GUI, go figure.  LOL.  I don't know if its just me or not, oh well.  Were you able to get the scenes to be triggered?  That's a more important function.
Vera 2 UI5 (1.5.622)... and too many Z-Wave/Ethernet/Wi-Fi devices to list.

Offline JOD

  • Hero Member
  • *****
  • Posts: 1973
  • Karma: +4/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #13 on: April 30, 2011, 03:51:09 pm »
Were you able to get the scenes to be triggered? 
No go with any of the I_PingSensor.xml's for scene triggering although the arm/bypass does work through the UI, so I guess the ping sensor must need fixing again for this FW rev. Damn...

JOD.
I'm sorry, my responses are limited. You must ask the right questions.

Offline iflyM3

  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: "TedStriker" Where are you? - Ping Plugin
« Reply #14 on: April 30, 2011, 04:04:55 pm »
hey, man... I did sincerely and with the utmost respect send Ap15e a PM seeing if he would be down to revise the Ping Sensor Plugin awhile back... Which was the main reason for this Post that I started.  I was trying to see if TedStriker was still around, I sent TedStriker PM's but no response.  I think he ditched us.  lol.  :P
I suck at Lua Scripting and I never made a plugin for Vera before or else I would do it myself and post it up.  In time I hope to learn enough to where I can contribute to the community as well.  It's just going to take time. 
Vera 2 UI5 (1.5.622)... and too many Z-Wave/Ethernet/Wi-Fi devices to list.