Skip to content

Commit

Permalink
Update thing-xml.md (#1236)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
  • Loading branch information
cweitkamp committed Jun 16, 2020
1 parent 1ea8216 commit 2783303
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions developers/bindings/thing-xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ The granularity of channel types should be on its semantic level, i.e. very fine
If a Thing measures two temperature values, one for indoor and one for outdoor, this should be modelled as two different channel types.
Overriding labels of a channel type must only be done if the very same functionality is offered multiple times, e.g. having an actuator with 5 relays, which each is a simple "switch", but you want to individually name the channels (1-5).

### State Channel Types

The following XML snippet shows a thing type definition with 2 channels and one referenced channel type:

```xml
Expand Down Expand Up @@ -152,6 +154,8 @@ Especially for complex devices with a lot of channels, only a small set of chann
Whether a channel should be declared as `advanced` depends on the device and can be decided by the binding developer.
If a functionality is rarely used it should be better marked as `advanced`.

### Trigger Channel Types

The following XML snippet shows a trigger channel:

```xml
Expand Down

0 comments on commit 2783303

Please sign in to comment.