home-assistant.io/source/_addons/rpc_shutdown.markdown
Adam ed0a2bbc28 Add second computer and setup note (#6478)
* Add second computer and setup note

Added a second computer to the config example as I was stumped for a bit on how to get a second one entered.  Its obvious now but has stumped others too based on forum searches.  

The note is another hiccup some may run into.  I listed the problem and promoted the user to search for the windows settings changes.  I assume HomeAssistant doesn't want to specify firewall and registry settings to be made.

* Fix a typo and update the style

* ✏️ Spelling and grammar
2018-10-03 19:20:30 +02:00

1.6 KiB

layout, title, description, date, sidebar, comments, sharing, footer
layout title description date sidebar comments sharing footer
page RPC Shutdown Simple way for remote windows shutdowns. 2017-09-25 14:00 true false true true

Allows you to shut down a Windows computer with a service call from Home Assistant.

{
  "computers": [
    {
      "alias": "test-pc-1",
      "address": "192.168.0.1",
      "credentials": "user%password"
    },
    {
      "alias": "test-pc-2",
      "address": "192.168.0.2",
      "credentials": "user%password"
    }
  ]
}
  • computers (Required): A list of computer objects to shutdown from Home-Assistant.
  • computers/alias (Required): Set an alias for this record which becomes the name for the input.
  • computers/address (Required): IP address or NetBIOS name of the computer for the shutdown.
  • computers/credentials (Required): Credentials for logging into computer. Use a % as the delimiter of username and password.

{% linkable_title Home Assistant configuration %}

Use the following inside Home Assistant service call to use it:

service: hassio.addon_stdin
data:
  addon: core_rpc_shutdown
  input: test-pc

The `user` specified in the credentials should be an applicable user listed in `C:/Users`. This may differ from the username used to login to Windows. Depending on your settings and privileges within Windows, changes to the firewall, UAC (User Account Control) and registry settings may be required to allow this add-on to remotely shut down your computer. There are many guides available online on how to adjust these settings.