Dictionary
Dictionary defines a human-readable form for stats to be shown in widgets.
Field | Type | Description |
---|---|---|
id | String | Dictionary's ID. |
name | String | Dictionary's name. |
content | String | Dictionary's key — value pair in the JSON format. |
Example
This example dictionary is meant to be used with a door sensor.
Door sensor sends values 0
and 1
that correspond with the door being closed and opened respectively. If you use the dictionary with a widget, it will show these values in a human-readable form.
Values and their replacements are specified as a JSON string in the content
field.