Site updated at 2016-10-17 19:36:44 UTC
This commit is contained in:
parent
6bb71e64c4
commit
baa5bef666
25 changed files with 52 additions and 52 deletions
|
@ -138,7 +138,7 @@ You can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code
|
|||
<p>The API supports the following actions:</p>
|
||||
|
||||
<h4><a class="title-link" name="get-api" href="#get-api"></a> GET /api/</h4>
|
||||
<p>Returns message if API is up and running.</p>
|
||||
<p>Returns a message if the API is up and running.</p>
|
||||
|
||||
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w">
|
||||
</span><span class="nt">"message"</span><span class="p">:</span><span class="w"> </span><span class="s2">"API running."</span><span class="w">
|
||||
|
@ -226,7 +226,7 @@ You can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code
|
|||
</div>
|
||||
|
||||
<h4><a class="title-link" name="get-apievents" href="#get-apievents"></a> GET /api/events</h4>
|
||||
<p>Returns an array of event objects. Each event object contain event name and listener count.</p>
|
||||
<p>Returns an array of event objects. Each event object contains event name and listener count.</p>
|
||||
|
||||
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">[</span><span class="w">
|
||||
</span><span class="p">{</span><span class="w">
|
||||
|
@ -277,7 +277,7 @@ You can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code
|
|||
</div>
|
||||
|
||||
<h4><a class="title-link" name="get-apihistory" href="#get-apihistory"></a> GET /api/history</h4>
|
||||
<p>Returns an array of state changes in the past. Each object contains further detail for the entities.</p>
|
||||
<p>Returns an array of state changes in the past. Each object contains further details for the entities.</p>
|
||||
|
||||
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">[</span><span class="w">
|
||||
</span><span class="p">[</span><span class="w">
|
||||
|
@ -461,7 +461,7 @@ You can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code
|
|||
</div>
|
||||
|
||||
<h4><a class="title-link" name="post-apiservicesltdomainltservice" href="#post-apiservicesltdomainltservice"></a> POST /api/services/<domain>/<service></h4>
|
||||
<p>Calls a service within a specific domain. Will return when the service has been executed or 10 seconds has past, whichever comes first.</p>
|
||||
<p>Calls a service within a specific domain. Will return when the service has been executed or after 10 seconds, whichever comes first.</p>
|
||||
|
||||
<p>You can pass an optional JSON object to be used as <code class="highlighter-rouge">service_data</code>.</p>
|
||||
|
||||
|
@ -500,7 +500,7 @@ You can append <code class="highlighter-rouge">?api_password=YOUR_PASSWORD</code
|
|||
</div>
|
||||
|
||||
<p class="note">
|
||||
The result will include any changed states that changed while the service was being executed, even if their change was the result of something else happening in the system.
|
||||
The result will include any states that changed while the service was being executed, even if their change was the result of something else happening in the system.
|
||||
</p>
|
||||
|
||||
<h4><a class="title-link" name="post-apitemplate" href="#post-apitemplate"></a> POST /api/template</h4>
|
||||
|
@ -527,7 +527,7 @@ The result will include any changed states that changed while the service was be
|
|||
</div>
|
||||
|
||||
<h4><a class="title-link" name="post-apievent_forwarding" href="#post-apievent_forwarding"></a> POST /api/event_forwarding</h4>
|
||||
<p>Setup event forwarding to another Home Assistant instance.</p>
|
||||
<p>Set up event forwarding to another Home Assistant instance.</p>
|
||||
|
||||
<p>Requires a JSON object that represents the API to forward to.</p>
|
||||
|
||||
|
@ -539,7 +539,7 @@ The result will include any changed states that changed while the service was be
|
|||
</span></code></pre>
|
||||
</div>
|
||||
|
||||
<p>It will return a message if event forwarding was setup successful.</p>
|
||||
<p>It will return a message if event forwarding was set up successfully.</p>
|
||||
|
||||
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w">
|
||||
</span><span class="nt">"message"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Event forwarding setup."</span><span class="w">
|
||||
|
@ -560,7 +560,7 @@ The result will include any changed states that changed while the service was be
|
|||
</span></code></pre>
|
||||
</div>
|
||||
|
||||
<p>It will return a message if event forwarding was cancelled successful.</p>
|
||||
<p>It will return a message if event forwarding was cancelled successfully.</p>
|
||||
|
||||
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w">
|
||||
</span><span class="nt">"message"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Event forwarding cancelled."</span><span class="w">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue