I have something like this:
{
"link": "http://192.168.0.131:8080/rest/items/ups_status",
"state": "OL",
"stateDescription": {
"pattern": "%s",
"readOnly": true,
"options": [
{
"value": "OFF",
"label": "Off"
},
{
"value": "OL",
"label": "CHRG LB = Online, charging, low battery"
},
{
"value": "OB",
"label": "On battery"
},
{
"value": "LB",
"label": "Low battery"
},
{
"value": "CHRG",
"label": "Charging"
},
{
"value": "OL CHRG",
"label": "Online, charging"
},
{
"value": "OL LB",
"label": "Online, low battery"
},
{
"value": "OL CHRG LB",
"label": "Online, charging, low battery"
},
{
"value": "RB",
"label": "Replace battery"
},
{
"value": "OVER",
"label": "Overload"
},
{
"value": "TRIM",
"label": "Voltage trim"
},
{
"value": "BOOST",
"label": "Voltage boost"
},
{
"value": "CAL",
"label": "Calibration"
},
{
"value": "BYPASS",
"label": "Bypass"
},
{
"value": "NULL",
"label": "Null"
}
]
},
"commandDescription": {
"commandOptions": [
{
"command": "OFF",
"label": "Off"
},
{
"command": "OL",
"label": "CHRG LB = Online, charging, low battery"
},
{
"command": "OB",
"label": "On battery"
},
{
"command": "LB",
"label": "Low battery"
},
{
"command": "CHRG",
"label": "Charging"
},
{
"command": "OL CHRG",
"label": "Online, charging"
},
{
"command": "OL LB",
"label": "Online, low battery"
},
{
"command": "OL CHRG LB",
"label": "Online, charging, low battery"
},
{
"command": "RB",
"label": "Replace battery"
},
{
"command": "OVER",
"label": "Overload"
},
{
"command": "TRIM",
"label": "Voltage trim"
},
{
"command": "BOOST",
"label": "Voltage boost"
},
{
"command": "CAL",
"label": "Calibration"
},
{
"command": "BYPASS",
"label": "Bypass"
},
{
"command": "NULL",
"label": "Null"
}
]
},
"editable": false,
"type": "String",
"name": "ups_status",
"label": "Alarm",
"tags": [],
"groupNames": []
}