Site updated at 2017-10-05 13:45:41 UTC
This commit is contained in:
parent
227b6752fe
commit
4c45d5ea48
26 changed files with 65 additions and 65 deletions
|
@ -76,7 +76,7 @@
|
|||
<hr class="divider">
|
||||
<p>Home Assistant keeps track of the states of entities in a state machine. The state machine has very few requirements:</p>
|
||||
<ul>
|
||||
<li>Each state is related to an entitiy identified by an entity id. This id is made up of a domain and an object id. For example <code class="highlighter-rouge">light.kitchen_ceiling</code>. You can make up any combination of domain and object id, even overwriting existing states.</li>
|
||||
<li>Each state is related to an entity identified by an entity id. This id is made up of a domain and an object id. For example <code class="highlighter-rouge">light.kitchen_ceiling</code>. You can make up any combination of domain and object id, even overwriting existing states.</li>
|
||||
<li>Each state has a primary attribute that describes the state of the entity. In the case of a light this could be for example “on” and “off”. You can store anything you want in the state, as long as it’s a string (will be converted if it’s not).</li>
|
||||
<li>You can store more information about an entity by setting attributes. Attributes is a dictionary that can contain any data that you want. The only requirement is that it’s JSON serializable, so you’re limited to numbers, strings, dictionaries and lists.</li>
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue