Discussions
H6072 segment information mismatch
11 months ago by Wez Furlong
The number of segments in the size
field doesn't seem to match up to the elementRage
field for either brightness or rgb:
{
"type": "devices.capabilities.segment_color_setting",
"instance": "segmentedBrightness",
"parameters": {
"dataType": "STRUCT",
"fields": [
{
"fieldName": "segment",
"size": {
"min": 1,
"max": 8
},
"dataType": "Array",
"elementRange": {
"min": 0,
"max": 14
},
"elementType": "INTEGER",
"required": true
},
{
"fieldName": "brightness",
"dataType": "INTEGER",
"range": {
"min": 0,
"max": 100,
"precision": 1
},
"required": true
}
]
}
},
{
"type": "devices.capabilities.segment_color_setting",
"instance": "segmentedColorRgb",
"parameters": {
"dataType": "STRUCT",
"fields": [
{
"fieldName": "segment",
"size": {
"min": 1,
"max": 8
},
"dataType": "Array",
"elementRange": {
"min": 0,
"max": 14
},
"elementType": "INTEGER",
"required": true
},
{
"fieldName": "rgb",
"dataType": "INTEGER",
"range": {
"min": 0,
"max": 16777215,
"precision": 1
},
"required": true
}
]
}
},