Hello,
I’m really new in this world of openhab so i basicly dont know anything, but i manage to create an item with wol to wake up my pc (other pc, no my openhab server).
So now i want to ask if there is a way to hibernate (because i dont shutdown, that pc cant handle the wake up after a full shutdown)
So my solution is on my phone i do this: http://remote-host-name:5001/secret/hibernate
using this app: https://github.com/karpach/remote-shutdown-pc
is there anyway to sent this via the openhab? that way if i turn the switch off would hibernate the PC?
i use this item to wakeup the pc
wol.items
Switch MainPC “Mi PC” (Status, Network) [ “Switchable” ] { wol=“192.168.0.255#B8:AE:ED:33:C4:A3” }
This generate other question: is there a way to get the status of the pc and let the switch turn on if the pc is on and the switch off if the pc is off?
Now that you have the mechanics working, you can try using just the one Switch Item with both binding configs. I think that might work but wanted you to avoid adding extra complexity which makes it harder to figure out if you get something wrong. Now that you know the binding part works, try merging them into one Switch.
If that doesn’t work, you will need to use a Rule to synchronize them.
Well the 2 things in a switch work for a while, but i don’t know why sometimes stop working and i need to re do the item.
So i Made 2 switches and i actívate them with dif sentences with Google home, next my idea is make a rutine yo combo both