Skip to content

Commit

Permalink
Corections to meta extension (#173)
Browse files Browse the repository at this point in the history
* Corrections to meta extension
  • Loading branch information
arjanmels authored and David Gräff committed Jul 17, 2019
1 parent 608541a commit 2c1999e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extensions/documents/homie_meta_extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ License: **<!--LICENSE-->[CCA 4.0](https://homieiot.github.io/license)<!--LICENS
## Abstract
This extension defines how to add metadata and tags to devices, nodes and properties.

Tags are simple annotations that every device, node oder property can have.
Tags are simple annotations that every device, node or property can have.
Metadata on the other hand are more complex. They allow the definition of multiple *mainkeys* and *mainvalues* for each device, node or property.
Each main-key-value-pair may have nested sub-key-value-pairs.
Having metadata might be useful for Homie controllers.
Expand Down Expand Up @@ -58,10 +58,10 @@ For each element in the `$mainkey-ids` list, two nested attributes are **require
**Examples**
With respect to the previous example:
```java
homie/super-car/engine/temperature/$meta/0/$key → "HomeKit"
homie/super-car/engine/temperature/$meta/0/$value → "Fan.v2"
homie/super-car/engine/temperature/$meta/1/$key → "Alexa"
homie/super-car/engine/temperature/$meta/1/$value → "Fan"
homie/super-car/engine/temperature/$meta/homekit/$key → "HomeKit"
homie/super-car/engine/temperature/$meta/homekit/$value → "Fan.v2"
homie/super-car/engine/temperature/$meta/alexa/$key → "Alexa"
homie/super-car/engine/temperature/$meta/alexa/$value → "Fan"
```

Notice that in this example, the *mainkey ids* are *alexa* and *homekit*, but the actual key names are *Alexa* and *HomeKit*.
Expand Down Expand Up @@ -96,4 +96,4 @@ homie/super-car/engine/temperature/$meta/alexa/type/$key → "type"
homie/super-car/engine/temperature/$meta/alexa/type/$value → "oscillating"
homie/super-car/engine/temperature/$meta/alexa/step-speed/$key → "stepSpeed"
homie/super-car/engine/temperature/$meta/alexa/step-speed/$value → "3"
```
```

0 comments on commit 2c1999e

Please sign in to comment.