Skip to content

Commit

Permalink
Add setting bright level for lights/groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
EAGrahamJr committed Dec 17, 2023
1 parent 7dd0c6a commit c01dbfc
Show file tree
Hide file tree
Showing 14 changed files with 107 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/crackers/hassk/Constants.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>Constants 0.0.2 API </title>
<title>Constants 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
Expand Down
2 changes: 1 addition & 1 deletion docs/crackers/hassk/EntityState.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>EntityState 0.0.2 API </title>
<title>EntityState 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
Expand Down
2 changes: 1 addition & 1 deletion docs/crackers/hassk/HAssKClient.Entity.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>Entity 0.0.2 API </title>
<title>Entity 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
Expand Down
2 changes: 1 addition & 1 deletion docs/crackers/hassk/HAssKClient.Light.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>Light 0.0.2 API </title>
<title>Light 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
Expand Down
2 changes: 1 addition & 1 deletion docs/crackers/hassk/HAssKClient.Scene.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>Scene 0.0.2 API </title>
<title>Scene 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
Expand Down
2 changes: 1 addition & 1 deletion docs/crackers/hassk/HAssKClient.Sensor.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>Sensor 0.0.2 API </title>
<title>Sensor 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
Expand Down
2 changes: 1 addition & 1 deletion docs/crackers/hassk/HAssKClient.Switch.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>Switch 0.0.2 API </title>
<title>Switch 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
Expand Down
59 changes: 49 additions & 10 deletions docs/crackers/hassk/HAssKClient.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>HAssKClient 0.0.2 API </title>
<title>HAssKClient 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
Expand Down Expand Up @@ -309,7 +309,7 @@ <h3>Method Summary</h3>
<tr id="i2" class="altColor">
<td class="colFirst"><code>final <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a></code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#callService(java.lang.String,java.lang.String,java.lang.String)>callService</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> entityId, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> serviceType, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> serviceCommand) </code>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#callService(java.lang.String,java.lang.String,java.lang.String,java.util.Map)>callService</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> entityId, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> serviceType, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> serviceCommand, <a href=https://docs.oracle.com/javase/8/docs/api/java/util/Map.html>Map</a>&lt;<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a>, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html>Object</a>&gt; extraData) </code>
</th>
<td class="colLast">Set up generic service call that uses the entity ID as the payload.</td>
</tr>
Expand Down Expand Up @@ -350,54 +350,62 @@ <h3>Method Summary</h3>
</tr>

<tr id="i7" class="rowColor">
<td class="colFirst"><code>final <a href=https://docs.oracle.com/javase/8/docs/api/java/util/List.html>List</a>&lt;<a href=EntityState.html>EntityState</a>&gt;</code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#set(crackers.hassk.HAssKClient.Light,java.lang.Integer)>set</a>(<a href=HAssKClient.Light.html>HAssKClient.Light</a> $self, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html>Integer</a> level) </code>
</th>
<td class="colLast">Set a light level for a light/group.</td>
</tr>

<tr id="i8" class="altColor">
<td class="colFirst"><code>final <a href=EntityState.html>EntityState</a></code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#state(crackers.hassk.HAssKClient.Entity)>state</a>(<a href=HAssKClient.Entity.html>HAssKClient.Entity</a> $self) </code>
</th>
<td class="colLast">Retrieves the state of the entity.</td>
</tr>

<tr id="i8" class="altColor">
<tr id="i9" class="rowColor">
<td class="colFirst"><code>final <a href=HAssKClient.Light.html>HAssKClient.Light</a></code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#light(java.lang.String)>light</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> name) </code>
</th>
<td class="colLast">Create an entity in the &quot;light&quot; domain (do not prefix with &quot;light.</td>
</tr>

<tr id="i9" class="rowColor">
<tr id="i10" class="altColor">
<td class="colFirst"><code>final <a href=HAssKClient.Light.html>HAssKClient.Light</a></code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#group(java.lang.String)>group</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> name) </code>
</th>
<td class="colLast">Create a group in the &quot;light&quot; domain (do not prefix with &quot;light.</td>
</tr>

<tr id="i10" class="altColor">
<tr id="i11" class="rowColor">
<td class="colFirst"><code>final <a href=HAssKClient.Scene.html>HAssKClient.Scene</a></code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#scene(java.lang.String)>scene</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> name) </code>
</th>
<td class="colLast">Create an entity in the &quot;scene&quot; domain (do not prefix with &quot;scene.</td>
</tr>

<tr id="i11" class="rowColor">
<tr id="i12" class="altColor">
<td class="colFirst"><code>final <a href=HAssKClient.Switch.html>HAssKClient.Switch</a></code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#switch(java.lang.String)>switch</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> name) </code>
</th>
<td class="colLast">Create an entity in the &quot;switch&quot; domain (do not prefix with &quot;switch.</td>
</tr>

<tr id="i12" class="altColor">
<tr id="i13" class="rowColor">
<td class="colFirst"><code>final <a href=HAssKClient.Sensor.html>HAssKClient.Sensor</a></code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#sensor(java.lang.String)>sensor</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> name) </code>
</th>
<td class="colLast">Create an entity in the &quot;sensor&quot; domain (do not prefix with &quot;sensor.</td>
</tr>

<tr id="i13" class="rowColor">
<tr id="i14" class="altColor">
<td class="colFirst"><code>final <a href=https://docs.oracle.com/javase/8/docs/api/java/util/List.html>List</a>&lt;<a href=EntityState.html>EntityState</a>&gt;</code>
</td>
<th class="colSecond" scope="row"><code><a href=HAssKClient.html#states(java.lang.String)>states</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> domain) </code>
Expand Down Expand Up @@ -506,15 +514,15 @@ <h4>getToken</h4>
</li>
</ul>

<a id="callService(java.lang.String,java.lang.String,java.lang.String)">
<a id="callService(java.lang.String,java.lang.String,java.lang.String,java.util.Map)">
<!-- -->
</a>
<ul class=
"blockList"
>
<li class="blockList">
<h4>callService</h4>
<pre class="methodSignature"> final <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> <a href=HAssKClient.html#callService(java.lang.String,java.lang.String,java.lang.String)>callService</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> entityId, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> serviceType, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> serviceCommand)</pre>
<pre class="methodSignature"> final <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> <a href=HAssKClient.html#callService(java.lang.String,java.lang.String,java.lang.String,java.util.Map)>callService</a>(<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> entityId, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> serviceType, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a> serviceCommand, <a href=https://docs.oracle.com/javase/8/docs/api/java/util/Map.html>Map</a>&lt;<a href=https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>String</a>, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html>Object</a>&gt; extraData)</pre>
<div class="block"><p>Set up generic service call that uses the entity ID as the payload.</p></div>

<dl>
Expand All @@ -532,6 +540,8 @@ <h4>callService</h4>
<dd><code>serviceCommand</code> - the command</dd>




</dl>

<!-- TODO missing return annotation -->
Expand Down Expand Up @@ -610,6 +620,35 @@ <h4>turn</h4>
</li>
</ul>

<a id="set(crackers.hassk.HAssKClient.Light,java.lang.Integer)">
<!-- -->
</a>
<ul class=
"blockList"
>
<li class="blockList">
<h4>set</h4>
<pre class="methodSignature"> final <a href=https://docs.oracle.com/javase/8/docs/api/java/util/List.html>List</a>&lt;<a href=EntityState.html>EntityState</a>&gt; <a href=HAssKClient.html#set(crackers.hassk.HAssKClient.Light,java.lang.Integer)>set</a>(<a href=HAssKClient.Light.html>HAssKClient.Light</a> $self, <a href=https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html>Integer</a> level)</pre>
<div class="block"><p>Set a light level for a light/group.</p></div>

<dl>
<dt><span class="paramLabel">Parameters:</span></dt>




<dd><code>level</code> - 0-100<pre><code>with(haClient) {
light(&quot;foo&quot;) set 50
group(&quot;bar&quot;) set 0
}</code></pre></dd>


</dl>

<!-- TODO missing return annotation -->
</li>
</ul>

<a id="state(crackers.hassk.HAssKClient.Entity)">
<!-- -->
</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/index-files/index-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h2 class="title">C</h2>

<span class="memberNameLink">

<a href="../crackers/hassk/HAssKClient.html#callService(java.lang.String,java.lang.String,java.lang.String)">callService(java.lang.String,java.lang.String,java.lang.String)</a>
<a href="../crackers/hassk/HAssKClient.html#callService(java.lang.String,java.lang.String,java.lang.String,java.util.Map)">callService(java.lang.String,java.lang.String,java.lang.String,java.util.Map)</a>

</span> - function in crackers.hassk.<a href=../crackers/hassk/HAssKClient.html>HAssKClient</a>

Expand Down
13 changes: 13 additions & 0 deletions docs/index-files/index-7.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,19 @@ <h2 class="title">S</h2>
<dd>Create an entity in the &quot;sensor&quot; domain (do not prefix with &quot;sensor.</dd>


<dt>

<span class="memberNameLink">

<a href="../crackers/hassk/HAssKClient.html#set(crackers.hassk.HAssKClient.Light,java.lang.Integer)">set(crackers.hassk.HAssKClient.Light,java.lang.Integer)</a>

</span> - function in crackers.hassk.<a href=../crackers/hassk/HAssKClient.html>HAssKClient</a>


</dt>
<dd>Set a light level for a light/group.</dd>


<dt>

<span class="memberNameLink">
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en"><head>
<title>hassk 0.0.2 API </title>
<title>hassk 0.0.3 API </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="dc.created" content="2020-03-25">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
Expand Down Expand Up @@ -87,7 +87,7 @@
</header>
<main role="main">
<div class="header">
<h1 class="title">hassk 0.0.2 API </h1>
<h1 class="title">hassk 0.0.3 API </h1>
</div>
<div class="header">
<div class="subtitle">
Expand Down
Loading

0 comments on commit c01dbfc

Please sign in to comment.