This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
plugins:03_units [2018/08/11 17:10] James Sentman updated for APIv2 |
plugins:03_units [2019/01/20 15:06] James Sentman [deviceTypes] |
||
---|---|---|---|
Line 13: | Line 13: | ||
====deviceTypes==== | ====deviceTypes==== | ||
- | Required: (json list) a list of the JSON data describing at least one unit device type | + | Required: (json list) a list of the JSON data describing any unit types. If your plugin does not define any unit types say for a sharing only plugin then the list must be included but can be empty. Any plugin that provides a unit must include at least one unit type even if it’s just a generic “Register” so that the unit type plugin has something that can be selected and there is a unique address tag. |
<code> | <code> | ||
Line 22: | Line 22: | ||
] | ] | ||
</code> | </code> | ||
- | |||
====Device Type Keys==== | ====Device Type Keys==== | ||
Each device type dictionary may use the following keys to describe it’s behavior and interface: | Each device type dictionary may use the following keys to describe it’s behavior and interface: |