Values
Scalable
Scalable value
fields | type | description |
---|---|---|
scale | string | |
value | float |
example:
{
"scale": "celsius",
"value": 36
}
RGB
Rgb value
example:
{
...
"red": 10,
"green": 10,
"blue": 10,
...
}
User Code
User code value
fields | type | description |
---|---|---|
code | string | |
name | string |
example:
{
"code": "some code",
"name": "code name"
}
Button State
Button state value
fields | type | description |
---|---|---|
button_number | int | |
button_state | string |
example:
{
button_number = 1,
button_state = "press_1_time"
}
Device Status
Device status value
fields | type | description |
---|---|---|
idle | string | device is in normal mode |
broken | string | device has invalid data |
example:
local status = "broken"
Text
Localized text
fields | type | description |
---|---|---|
lang_tag | string | optional identifier that represents the text in different languages |
text | string | default text (English) |
example:
{
lang_tag = "zwave_device_configuration_descr",
text = "Specific Z-Wave configuration parameters"
}
ZWave Configuration
Generic ZWave configuration parameter
fields | type | description |
---|---|---|
name | string | parameter name |
description | string | parameter description |
number | int | parameter number |
size | int | size of the value in bytes (1, 2, or 4) |
value | int | actual value |
format | string | "dec" or "hex" |
example:
{
name = "Parameter 1",
description = "Parameter 1",
number = 1,
size = 1,
value = 1,
format = "dec"
}