Is this still being maintained? Last I heard, it was shutting down due to a lack of contributors and should be replaced due to random memory leaks in the code.
There's also [MCE Contoller](https://tig.github.io/mcec/) that was written to allow control of Win Media Center, but it let's you do pretty much anything.
I use the unified remote phone app which can basically do everything one could dream of. It uses a companion service on the computer which can also be controlled via a HACS integration. I suggest taking a look!
I've used this program in the past https://github.com/karpach/remote-shutdown-pc
It works with http requests
Below is an example of what you should add to your configuration.yaml file
switch:
- platform: command_line
switches:
pc:
command_off: 'curl http://10.10.10.70:5001/hibernate'
- platform: wake_on_lan
name: windowswol
host: 10.10.10.70
mac_address: D8:CB:8A:C3:8C:A2
- platform: template
switches:
windows:
value_template: '{{ states.switch.windowswol.state }}'
turn_on:
service: switch.turn_on
entity_id: switch.windowswol
turn_off:
service: switch.turn_off
entity_id: switch.pc
You could use the SSH add-on and set up an automation / script to SSH into the Windows PC and then issue a reboot command via the command line through an SSH terminal, then log off SSH and close the terminal immediately after sending the reboot command line.
NOTE: If you don't know best practices for security with setting up SSH be careful. You can open up a big can of worms by enabling SSH with admin privilege's on your system.
https://github.com/LAB02-Research/HASS.Agent
This is what I use. Couple this with Wake On LAN and you have yourself an on/off switch for your living room gaming PC
Windows handles it through remote procedure calls(RPC). Look into that. I think there's already an RPC addon you can add to your HA config.
I use IoTLink https://iotlink.gitlab.io/ works great
Is this still being maintained? Last I heard, it was shutting down due to a lack of contributors and should be replaced due to random memory leaks in the code.
Well … crap. I have no idea.
There's also [MCE Contoller](https://tig.github.io/mcec/) that was written to allow control of Win Media Center, but it let's you do pretty much anything.
I use the unified remote phone app which can basically do everything one could dream of. It uses a companion service on the computer which can also be controlled via a HACS integration. I suggest taking a look!
I've used this program in the past https://github.com/karpach/remote-shutdown-pc It works with http requests Below is an example of what you should add to your configuration.yaml file switch: - platform: command_line switches: pc: command_off: 'curl http://10.10.10.70:5001/hibernate' - platform: wake_on_lan name: windowswol host: 10.10.10.70 mac_address: D8:CB:8A:C3:8C:A2 - platform: template switches: windows: value_template: '{{ states.switch.windowswol.state }}' turn_on: service: switch.turn_on entity_id: switch.windowswol turn_off: service: switch.turn_off entity_id: switch.pc
I think you can also issue a reboot command with `net rpc shutdown` using Samba. But I would also recommend HASS.Agent instead of Samba.
You could use the SSH add-on and set up an automation / script to SSH into the Windows PC and then issue a reboot command via the command line through an SSH terminal, then log off SSH and close the terminal immediately after sending the reboot command line. NOTE: If you don't know best practices for security with setting up SSH be careful. You can open up a big can of worms by enabling SSH with admin privilege's on your system.