Combined switch for System Alive Checker, Wake on LAN and shutdown/hibernate

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Combined switch for System Alive Checker, Wake on LAN and shutdown/hibernate

Post by tarmacalastair »

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:
  • 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
It would be nice to be able to have a single System Alive Checker switch to show the current status of devices and then be able to configure the On function to perform a WOL to wake up the device and the Off function to run a script to power off, suspend, hibernate, etc. At the moment, clicking on the switch produces "Error: Pinger: This is a read-only sensor!" in the log.

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
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest