Combined switch for System Alive Checker, Wake on LAN and shutdown/hibernate
Posted: Friday 13 December 2019 17:26
Hi,
I've set up 17 different System Alive Checker switches for several of my devices - PCs, TVs, games consoles, etc to see if they are alive on the network.
Then I realised that I want to wake many of these up with a WOL switch and power some of them down with a power-down or suspend script.
So this means potentially 3 different switches for each device:
I asked the question at https://www.domoticz.com/forum/viewtopi ... 11&t=30201 as to whether this is possible.
From this, it seems that the best I seem to be able to do is to add a hibernate script to the Off action on the WOL switch and have a sub/slave (System Alive Checker) device associated with it.
Unfortunately this has the major disadvantage that the up/down status does not change if the machine is powered on/off so you could end up shutting down a live machine that you think was off when you are trying to wake it up!
Is it possible to adjust the System Alive Checker switch so that we can add a script to each of the On and Off functions?
Thanks
I've set up 17 different System Alive Checker switches for several of my devices - PCs, TVs, games consoles, etc to see if they are alive on the network.
Then I realised that I want to wake many of these up with a WOL switch and power some of them down with a power-down or suspend script.
So this means potentially 3 different switches for each device:
- A System Alive Checker switch device to check if the machine is up
- A Wake on Lan switch to wake the machine if I want to power it up
- A dummy switch with a script associated with the Off function to power down or hibernate the machine when I want to power it off
I asked the question at https://www.domoticz.com/forum/viewtopi ... 11&t=30201 as to whether this is possible.
From this, it seems that the best I seem to be able to do is to add a hibernate script to the Off action on the WOL switch and have a sub/slave (System Alive Checker) device associated with it.
Unfortunately this has the major disadvantage that the up/down status does not change if the machine is powered on/off so you could end up shutting down a live machine that you think was off when you are trying to wake it up!
Is it possible to adjust the System Alive Checker switch so that we can add a script to each of the On and Off functions?
Thanks