|
| 1 | +<!doctype html> |
| 2 | + <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> |
| 3 | + <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> |
| 4 | + <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> |
| 5 | + <!--[if gt IE 8]><!--> <html> <!--<![endif]--> |
| 6 | + <head> |
| 7 | + <meta charset="utf-8"> |
| 8 | + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 9 | + <title>RPC Shutdown - Home Assistant</title> |
| 10 | + <meta name="author" content="Home Assistant"> |
| 11 | + <meta name="description" content="Simple way for remote windows shutdowns."> |
| 12 | + <meta name="viewport" content="width=device-width"> |
| 13 | + <link rel="canonical" href="https://home-assistant.io/addons/rpc_shutdown/"> |
| 14 | + <meta property="fb:app_id" content="338291289691179"> |
| 15 | + <meta property="og:title" content="RPC Shutdown"> |
| 16 | + <meta property="og:site_name" content="Home Assistant"> |
| 17 | + <meta property="og:url" content="https://home-assistant.io/addons/rpc_shutdown/"> |
| 18 | + <meta property="og:type" content="article"> |
| 19 | + <meta property="og:description" content="Simple way for remote windows shutdowns."> |
| 20 | + <meta property="og:image" content="https://home-assistant.io/images/default-social.png"> |
| 21 | + <meta name="twitter:card" content="summary_large_image"> |
| 22 | + <meta name="twitter:site" content="@home_assistant"> |
| 23 | + <meta name="twitter:title" content="RPC Shutdown"> |
| 24 | + <meta name="twitter:description" content="Simple way for remote windows shutdowns."> |
| 25 | + <meta name="twitter:image" content="https://home-assistant.io/images/default-social.png"> |
| 26 | + <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet"> |
| 27 | + <link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml"> |
| 28 | + <link rel='shortcut icon' href='/images/favicon.ico' /> |
| 29 | + <link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' /> |
| 30 | + </head> |
| 31 | + <body > |
| 32 | + <header class='site-header'> |
| 33 | + <div class="grid-wrapper"> |
| 34 | + <div class="grid"> |
| 35 | + <div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title"> |
| 36 | + <a href="/" class="site-title"> |
| 37 | + <img width='40' src='/demo/favicon-192x192.png'> |
| 38 | + <span>Home Assistant</span> |
| 39 | + </a> |
| 40 | +</div> |
| 41 | +<div class="grid__item seven-tenths lap-four-sixths palm-one-whole"> |
| 42 | + <nav> |
| 43 | + <input type="checkbox" id="toggle"> |
| 44 | +<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label> |
| 45 | +<ul class="menu pull-right"> |
| 46 | + <li><a href="/getting-started/">Getting started</a></li> |
| 47 | + <li><a href="/components/">Components</a></li> |
| 48 | + <li><a href="/docs/">Docs</a></li> |
| 49 | + <li><a href="/cookbook/">Examples</a></li> |
| 50 | + <li><a href="/developers/">Developers</a></li> |
| 51 | + <li><a href="/blog/">Blog</a></li> |
| 52 | + <li><a href="/help/">Need help?</a></li> |
| 53 | + <li><a href='#' class='show-search'><i class="icon-search"></i></a></li> |
| 54 | +</ul> |
| 55 | + </nav> |
| 56 | + <div class='search-container' style='display: none'> |
| 57 | + <div class='search'> |
| 58 | + <i class="icon-search"></i> |
| 59 | + <input id='search' placeholder='Search the docs…'> |
| 60 | + <a href='#' class='close'><i class="icon-remove-sign"></i></a> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | +</div> |
| 64 | + </div> |
| 65 | +</div> |
| 66 | + </header> |
| 67 | + <div class="grid-wrapper"> |
| 68 | + <div class="grid grid-center"> |
| 69 | + <div class="grid__item two-thirds lap-one-whole palm-one-whole"> |
| 70 | + <article class="page"> |
| 71 | + <div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.github.io/tree/current/source/_addons/rpc_shutdown.markdown'>Edit this page on GitHub</a></div> |
| 72 | + <header> |
| 73 | + <h1 class="title indent"> |
| 74 | + RPC Shutdown |
| 75 | + </h1> |
| 76 | + </header> |
| 77 | + <hr class="divider"> |
| 78 | + <p>Allow to shutdown a computer with a service call from Home-Assistant.</p> |
| 79 | +<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w"> |
| 80 | + </span><span class="nt">"computers"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> |
| 81 | + </span><span class="p">{</span><span class="w"> |
| 82 | + </span><span class="nt">"alias"</span><span class="p">:</span><span class="w"> </span><span class="s2">"test-pc"</span><span class="p">,</span><span class="w"> |
| 83 | + </span><span class="nt">"address"</span><span class="p">:</span><span class="w"> </span><span class="s2">"192.168.0.1"</span><span class="p">,</span><span class="w"> |
| 84 | + </span><span class="nt">"credentials"</span><span class="p">:</span><span class="w"> </span><span class="s2">"user%password"</span><span class="w"> |
| 85 | + </span><span class="p">}</span><span class="w"> |
| 86 | + </span><span class="p">]</span><span class="w"> |
| 87 | +</span><span class="p">}</span><span class="w"> |
| 88 | +</span></code></pre> |
| 89 | +</div> |
| 90 | +<ul> |
| 91 | + <li><strong>computers</strong> (<em>Required</em>): A list of computer object to shutdown from Home-Assistant.</li> |
| 92 | + <li><strong>computers/alias</strong> (<em>Required</em>): Set a alias for this record and that is the name for the input.</li> |
| 93 | + <li><strong>computers/address</strong> (<em>Required</em>): IP address or netbios name of the computer for shutdown.</li> |
| 94 | + <li><strong>computers/credentials</strong> (<em>Required</em>): Credentials for logging into computer. Use a <code class="highlighter-rouge">%</code> as delimiter of username and password.</li> |
| 95 | +</ul> |
| 96 | +<h2><a class="title-link" name="home-assistant" href="#home-assistant"></a> Home Assistant</h2> |
| 97 | +<p>Use the following inside Home Assistant service call to use it:</p> |
| 98 | +<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">service</span><span class="pi">:</span> <span class="s">hassio.addon_stdin</span> |
| 99 | +<span class="s">data</span><span class="pi">:</span> |
| 100 | + <span class="s">addon</span><span class="pi">:</span> <span class="s">core_rpc_shutdown</span> |
| 101 | + <span class="s">input</span><span class="pi">:</span> <span class="s">test-pc</span> |
| 102 | +</code></pre> |
| 103 | +</div> |
| 104 | +</article> |
| 105 | + </div> |
| 106 | + <aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole"> |
| 107 | + <div class="grid"> |
| 108 | + <section class="aside-module grid__item one-whole lap-one-half"> |
| 109 | + <div class='section'> |
| 110 | + <h1 class="title delta">Topics</h1> |
| 111 | + <ul class='divided sidebar-menu'> |
| 112 | + <li> |
| 113 | + <a href='/hassio/'>Hass.io </a> |
| 114 | + <ul> |
| 115 | + <li><a href='/hassio/installation/'>Installation </a></li> |
| 116 | + <li><a href='/addons/'>Available add-ons </a></li> |
| 117 | + <li><a href='/hassio/installing_third_party_addons/'>Installing third-party add-ons </a></li> |
| 118 | + </ul> |
| 119 | + </li> |
| 120 | + </ul> |
| 121 | + <ul class='divided sidebar-menu'> |
| 122 | + <li> |
| 123 | + Advanced |
| 124 | + <ul> |
| 125 | + <li><a href='/hassio/zwave/'>Z-Wave </a></li> |
| 126 | + <li><a href='/hassio/external_storage/'>External storage </a></li> |
| 127 | + <li><a href='/hassio/run_local/'>Execute local things </a></li> |
| 128 | + </ul> |
| 129 | + </li> |
| 130 | + </ul> |
| 131 | + <ul class='divided sidebar-menu'> |
| 132 | + <li><a href='/developers/hassio/addon_development/'>Looking to create an add-on?</a></li> |
| 133 | + </ul> |
| 134 | + </div> |
| 135 | +</section> |
| 136 | +</div> |
| 137 | + </aside> |
| 138 | + </div> |
| 139 | + </div> |
| 140 | + <footer> |
| 141 | + <div class="grid-wrapper"> |
| 142 | + <div class="grid"> |
| 143 | + <div class="grid__item"> |
| 144 | + <div class="copyright"> |
| 145 | + <a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a> |
| 146 | + <a rel="me" href='https://facebook.com/homeassistantio'><i class="icon-facebook"></i></a> |
| 147 | + <a rel="me" href='https://plus.google.com/110560654828510104551'><i class="icon-google-plus"></i></a> |
| 148 | + <a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a> |
| 149 | + <div class="credit"> |
| 150 | + Contact us at <a href='mailto:hello@home-assistant.io'>hello@home-assistant.io</a> (no support!).<br> |
| 151 | + Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br /> |
| 152 | + Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>. |
| 153 | + </div> |
| 154 | + <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">home-assistant.io</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>. |
| 155 | +</div> |
| 156 | + </div> |
| 157 | + </div> |
| 158 | +</div> |
| 159 | + </footer> |
| 160 | + <script> |
| 161 | + var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']]; |
| 162 | + (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; |
| 163 | + g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js'; |
| 164 | + s.parentNode.insertBefore(g,s)}(document,'script')); |
| 165 | +</script> |
| 166 | +<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" /> |
| 167 | +<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script> |
| 168 | +<script type="text/javascript"> |
| 169 | +docsearch({ |
| 170 | + apiKey: 'ae96d94b201c5444c8a443093edf3efb', |
| 171 | + indexName: 'home-assistant', |
| 172 | + inputSelector: '#search', |
| 173 | + debug: false // Set debug to true if you want to inspect the dropdown |
| 174 | +}); |
| 175 | +document.querySelector('.search .close').addEventListener('click', function(ev) { |
| 176 | + ev.preventDefault(); |
| 177 | + document.querySelector('.search-container').style.display = 'none'; |
| 178 | +}); |
| 179 | +document.querySelector('.show-search').addEventListener('click', function(ev) { |
| 180 | + ev.preventDefault(); |
| 181 | + document.querySelector('.search-container').style.display = 'block'; |
| 182 | + document.getElementById('toggle').checked = false; |
| 183 | + document.querySelector('.search-container input').focus(); |
| 184 | +}); |
| 185 | +</script> |
| 186 | + </body> |
| 187 | +</html> |
0 commit comments