i´m setting up my openhab and i´m able to start my Win10 PC with voice over WakeOnLan.
But: The shutdown isn´t working for me. I´m using this install guide to get it to work:
But neither of both of Shutdown examples worked for me.
What did i miss? Can anybody push me in the right direction? Did a lot of research, but found nothing for my issue.
May (can) you please post your configuration files (like *.items, etc.).
I’ve been polite enough! If the binding says “wake”, why would you try to “sleep”, “shutdown”?
Have you read this, whith the explanations on how to link an item to multiple channels/bindings)?
Or maybe, you should start over.
If you followed the examples, you might have been mislead. The shutdown part of the examples is not belonging to the WOL Binding, but using Exec Binding. As I see, the examples are mixed, the first one is Linux, the second Windows. So first you have to get the RPC call working, which is something you have to enable on your Windows machine, not openHAB related.
It might be the issue that your openHAB user doesn’t have rights to exec the shutdown command on the machine.
For Windows you can configure this via GPO, or put the user in the Administrators group.
So I did a lot of research. I activate Remote Desktop at WindowsSymbol/Settings/System/Remotedesktop and added under User Accounts the Administrator Accound and my own Account.
Then i found this code
net rpc -S 192.168.1.22 -U User%Passw shutdown -t 1 -f
it looks different from the code in the openhab documentation