bruhautomation / BRUH3-Home-Assistant-Configuration

(OBSOLETE) BRUH3 Home Assistant Configuration
https://www.youtube.com/playlist?list=PLgtGAtCt_hGTc_GAEmMhQ_XVs80mZoBIG
333 stars 50 forks source link

Can you send me the WOL command for tuen the PC off, thx! #2

Closed wubin2 closed 7 years ago

wubin2 commented 7 years ago

pc_off: !secret pc_off_cmd cant see it

CoalaJoe commented 7 years ago

WOL stands for Wake On Lan and can't turn off your computer. You have to use something else there. I am using Linux on my main PC, so I connect from home-assistant to my main PC and run the shutdown command.

Hope this helps.

bruhautomation commented 7 years ago

Sorry this is like 100 years late. The command I use is 'net rpc shutdown -f -t 0 -I pc.local.ip.address -U windowsusername%windowspassword' I believe net RPC shutdown commands are facilitated through Samba if my memory serves me right. Cheers!

Actpohomoc commented 7 years ago

Thank you. Very useful.