[quote=“electricessence, post:26, topic:172491”]
Okay, so I’m gonna start out by saying I’m a bit frustrated, but I’m trying to stay objective.
I just spent an hour recovering my Vera/Network because after configuring your plugin to wake up my computer when “ON” is pressed, and for “OFF” trigger a scene that causes it to “HIBERNATE”:
- My computer began cycling: waking-up, then immediately hibernating again.
- I watched as your plugin would display ON (I set the period to 15 seconds like the default ping sensor) and then soon after drop from ON to OFF (without user intervention) which then triggered the scene for causing it to hibernate. In other words, if the ping fails, it acts as if someone pressed the off button.
- My Vera became very slow to respond.
Now I’m not pointing fingers because there still could have been some wacky stuff going on with my config that may have not been caused by the plug-in.
My gut feeling is that your EVENTS ARE WRONG. There needs to be separation between the state of the computer and the action of pressing the buttons. I still could be wrong, but it looks like it (as the trigger list says) it only reacts to STATE and not to UI actions.
Another note: Although I was able to operate the actions via the web console and through other scenes, I was not able to operate your plugin via any 3rd party mobile apps.[/quote]
The reason I say my events are not wrong is that they are of the standard binary switch. So the plugin acts and works like any standard binary switch. So if the device you are operating manually changes status, e.g. on, the plugin will run the wake on lan, but that should not affect anything as the computer is already on.
I see a few issues with your implementation,
- The 15 second poll is way to short for any plugin to poll.
- How are you sending the hibernate command to your computer? Are you using an http request? If that is the case, do you have a timeout set for the hibernate command? This is how I have my http request:
– Issue sleep command to Series7 via Eventghost http
local http = require(“socket.http”)
result, statuscode, content = socket.http.request(“http://192.168.X.X/eventghost.html?SleepPC”)
I do not know why you are having issues with third party apps. The plugin shows itself as a binary switch. So it should work with any 3rd party app. The main reason I chose to go with the binary switch and not create my own device to make it compatible. I have no issue with using it with my AutHomation app for android. I press the on button and it will wake my computer up, I press the off button and it will put my computer to sleep via the scene trigger.
If I go with my own device type and prevent the status event to not be recognized, it may cause other people to complain as they would not be able to use it in their scenes. If others want to chime in on some suggestions I am more than happy to use them. I have been using the plugin for over a month everyday and have not had any issues.