[userModule] Remote Host Switch (Updated 2016/03/13)

Tips, Tricks and Scripts to enhance your home automation and workaround known device bugs, limitations and incompatibilities
Post Reply
maros
Posts: 103
Joined: 05 Apr 2014 11:21

[userModule] Remote Host Switch (Updated 2016/03/13)

Post by maros »

Creates a switch that controls and checks the status of a remote host in the same network
  • Turning on is done via Wake on LAN. Since WOL packets are not routable, zway and the target host must reside in the same network.
  • Turning off is handled via SSH. You must ensure that the user running zway (usually root) has its public SSH key on the target machine
  • Checking is done via ping
Tested with Z-Way version v2.2.2
Bug/Issue tracker at https://github.com/maros/Zway-RemoteHost/issues
Documentation at https://github.com/maros/Zway-RemoteHos ... /README.md
Download at https://github.com/maros/Zway-RemoteHost/releases

Installation can be done directly via git or via the the Zway App-Store.
Last edited by maros on 20 Jun 2016 10:01, edited 3 times in total.
Z-Way 2.2.4 on Raspi B | My Zway GitHub repos | Amazon Wishlist to support module development
TritonT
Posts: 9
Joined: 16 Oct 2015 19:13

Re: [userModule] Remote Host Switch

Post by TritonT »

Just done this using a 'HTTP Device' that calls EventGhost to do the WoL and SleepOnLan to do the off action. The I choose Sleep On Lan is that I can easily have my off action as suspend, hibernate, poweroff or forcepoweroff.

http://www.ireksoftware.com/SleepOnLan/

I mainly use it for suspending and waking my MediaPortal HTPCs (this will also switch on/off my TVs if they are set to respond to input).
Post Reply