WOL with Ping Sensor

I just updated as well

And did you have [url=http://code.mios.com/trac/mios_wake-on-lan]http://code.mios.com/trac/mios_wake-on-lan[/url] plugin installed first or did you install the wol opkg?
I can’t seem to wol my pc but there are various factors that could be causing this issue.

Has anyone been successful in installing more than one WOL-PING plugin on UI7?
This issue is around for sometime now with no relief

Thanks!

In my attempts to debug this unsupported component in UI7, I cam across this fine suggestion from “guessed”, which was causing “01” errors in my log. The problem is that a timeout for the ping command is not set, so it times out in the Lua code. This fixed my largest number of errors:

The WOLPlusPing Plugin (and it's cousin the Ping Plugin) isn't specifying any form of Timeout on the OS Ping command.

If you’re handy with an editor, download the I_WOLPlusPing.xml (I corrected file name) source file for the plugin and find the line (line 195 in my code) that looks like:
ping -c 1

and change it to make the call more like:
ping -c 1 -w 3

So that a 3-second timeout is applied to the command. It’s not the real fix, and it may cause the Plugin to fail more often than it should, but it should"guard" Vera better against this type of failure.

The WOLPlusPing Plugin (and it’s cousin the Ping Plugin) isn’t specifying any form of Timeout on the OS Ping command.
These are consistently present prior to each of your restarts. This isn’t always a surprise, since they’re widely used, but in your case they’re also listed in the 3x Process-lists that Vera pulls as it’s dying
 and all with the same processId (x2, since you’re running 2 instances) so they may not be going away correctly in some case (they’re subject to environmental timings)

If you’re handy with an editor, download the I_WOLPlusPing.xml source file for the plugin and find the line (Line 195 in my code) like:
ping -c 1

and change it to make the call more like:
ping -c 1 -w 3

So that a 3-second timeout is applied to the command. It’s not the real fix, and it may cause the Plugin to fail more often than it should, but it should"guard" Vera better against this type of failure.

I attached the edited file as well.

-othgeek

Hi

Can anyone help?

I have a Vera Edge UI7 version 1.7.1419 I just installed the WOL with Ping plug-in via the Vera web GUI. It says its version 1.2

I am wanting to control my Kodi HTPC. The status seems to be working if the PC is turned on, then the on button is highlighted in the WOL with Ping device and if the PC is off the off button is highlighted etc.

When I press the on button it does not wake the PC. I have entered the PCs IP and MAC address in the Advanced tab.

I have also created a suspend scene and used my code to put the PC in sleep mode which works if I manually run the scene. I have also added a trigger for the WOL with Ping Device = Off etc. But when pressing the off button the PC is not put to sleep.

Here is the working code to suspend my Linux / OpenElec Kodi PC.

luup.inet.wget("http://192.168.1.10:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22System.Suspend%22,%22id%22:1}")

So it seems the WOL with Ping devices ON / OFF buttons are not doing anything?

Is this plug-in currently working in UI7? Or do I need to upload some updated xml file from somewhere ?

Thanks

EDIT: And its just started working LOL. Maybe Vera needed a reload. Right will try and add a second WOL with Ping device now


EDIT 2: OK I was able to create a second WOL with Ping device and configured it to control the Kodi PC in my bedroom.

I have an Apple iMAC 27" in the Kitchen, does anyone know what command to use to put it to sleep ?

I am running Kodi v14.2 on OpenElec (Linux) and use these commands in my scenes, IP is the IP of the Kodi PC and you need to have the Kodi webserver enabled in the settings, I recommend port 8080 rather than 80.

Suspend:

luup.inet.wget("http://192.168.1.10:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22System.Suspend%22,%22id%22:1}")

OR

Shutdown:

luup.inet.wget("http://192.168.1.10:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22System.Shutdown%22,%22id%22:1}")

The WOL with Ping plug-in seems to be working great on UI7 1.7.1419 with my Kodi OpenElec PCs.

Did anyone figure out how to suspend / sleep an iMAC ?

And it seems installing EventGhost is the way to go for Windows PCs, from reading all of this thread. It would be nice to be able to hibernate my WHS 2011 file server, but not sure its worth the effort of installing and configure EventGhost just for that single function.

Just thought I’d drop in to report that this app is dead in UI7 1.7.739. I get no response from the ping. I tried othgeek’s modified file but this does not solve the problem. Can anyone advise?

My Vera Edge is now on firmware version 1.7.1598

Issues I have had with this plugin is that sometimes it seems to lose the IP address of the Kodi PCs and stops working, then I have to enter the IP address again in the advanced settings to make it work again. Its done this a few times.

But it seems to be working alright at the moment.

this plugin has become completely useless for me since UI7. PING statusses are not updated correctly, i almost never see anything online while it IS turned on. this way my phones’ wifi is not recognized or any of my other IP devices.

i have absolutely no idea what is causing this. i’ll try first deleting all mac-adresses, everything in my house has fixed IP-adresses anyway. maybe that will help.

[quote=“fabstar81, post:189, topic:172491”]this plugin has become completely useless for me since UI7. PING statusses are not updated correctly, i almost never see anything online while it IS turned on. this way my phones’ wifi is not recognized or any of my other IP devices.

i have absolutely no idea what is causing this. i’ll try first deleting all mac-adresses, everything in my house has fixed IP-adresses anyway. maybe that will help.[/quote]

I am on a Vera Edge UI7 latest firmware. This plug-in seems to work OK for me on the whole.

I am using it with my Kodi OpenElec HTPCs and it changes their state to ON when they are turned ON etc. In Advanced settings looks like I have both the static IP and the MAC address for the HTPC.

it does change status every now and then, but on the most part, it just does not. every device is always off. except for this one minute every now and then. not reliable like this. it has worked
so maybe the only solution is to completely remove and reinstall the plugin.

In one room I have a stereo amp connected to a Z-Wave appliance plug, because the amp cannot be turned on or off with a remote control.

So I use the WOL device in Vera as a trigger to turn on the amp / plug when the HTPC is turned on. And to turn the amp off again when the HTPC is off etc.

It takes several seconds for the amp to actually be turned on after the HTPC has been turned on, but it works everytime pretty much. So I know the WOL devices status is being correctly updated in Vera.

me2 as it did work in the past. i was just hoping that someone could point me to a direction that might help. i could even turn on my tv with a scene using the WOL functionality. Even that doesn’t work now and that doesn’t even rely on the status of the device.

i kind of used this plugin the same way you do, so i know it works. just not now.

i guess uninstalling en reinstalling might be the only solution. just don’t prefer that one as i have around 15 ping devices that need to be re-set up then.

I don’t have that many ping devices only 4 I think. 3x Kodi Linux PCs and 1x WHS 2011 file server.

Only problem I have is some times the devices lose their IP address in the advanced settings and then it stops working. Like yesterday I noticed the WHS was not showing its status as ON. I looked and the IP address was missing again. Added it back in and then it started working again.

The NAS I have seems to want a WOL packet on a specific port. I’m going to modify this plugin to enable that. Is it still maintained? Should I submit a patch here, or what?

Just modify and submit here. Drop the file so that at least everyone can test it. The person maintaining the plug-in should add it then


I use this plug-in on my Vera3/UI5 without issue, but I have been unable to get it to work on VeraSecure/UI7. It installs and configures OK, but the target computers never wake. These are the same ones that my Vera3 wakes fine and all settings appear to be the same. Does anyone have this working on a VeraSecure?

Puttyed into Vera3 and issued the WOL OS command - works.
Puttyed into VeraSecure and got “-ash: wol: not found”.

Ah ha! - WOL does not exist on the VeraSecure, or not in the expected path anyway. Looking at options


[quote=“wilme2, post:198, topic:172491”]Puttyed into Vera3 and issued the WOL OS command - works.
Puttyed into VeraSecure and got “-ash: wol: not found”.

Ah ha! - WOL does not exist on the VeraSecure, or not in the expected path anyway. Looking at options
[/quote]

I confirmed by searching my VeraSecure file structure with WinSCP that the core WOL OS files are not installed. I don’t really know how to add the OpenWRT WOL package to a Vera - I assume that is what needs to be done??

OK, I got it figured out. Just log in as root and issue the command

opkg install "wol"

then reboot, and this plug-in works on my VeraSecure. Not really an issue with the plug-in, but the OS, and a simple fix for those comfortable with making a very minor Vera OS change