Site updated at 2017-02-07 07:09:10 UTC
This commit is contained in:
parent
463713b220
commit
2af97d15b8
23 changed files with 37 additions and 37 deletions
|
@ -502,7 +502,7 @@ You can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code
|
|||
|
||||
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">$ </span>curl -X POST -H <span class="s2">"x-ha-access: YOUR_PASSWORD"</span> <span class="se">\</span>
|
||||
-H <span class="s2">"Content-Type: application/json"</span> <span class="se">\</span>
|
||||
-d <span class="s1">'{"entity_id": "switch.christmas_lights", "state": "on"}'</span> <span class="se">\</span>
|
||||
-d <span class="s1">'{"entity_id": "switch.christmas_lights"}'</span> <span class="se">\</span>
|
||||
http://localhost:8123/api/services/switch/turn_on
|
||||
</code></pre>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue