I have to different items where displayState behaves different.
On the first item displayState = transformedState but not on the second one.
{
"link": "http://openhab:8080/rest/items/Kitchen_Door_State",
"state": "CLOSED",
"transformedState": "Stängd",
"stateDescription": {
"pattern": "MAP(se.map):%s",
"readOnly": true,
"options": []
},
"editable": false,
"type": "Contact",
"name": "Kitchen_Door_State",
"label": "Altandörr Kök",
"category": "door",
"tags": [
"OpenState"
],
"groupNames": [
"geKitchen_Door",
"gcDoors",
"gpCR"
]
}
and
{
"link": "http://openhab:8080/rest/items/Garage_Gate_Contact",
"state": "CLOSED",
"transformedState": "Stängd",
"stateDescription": {
"pattern": "MAP(se.map):%s",
"readOnly": true,
"options": [
{
"value": "OPEN",
"label": "Open"
},
{
"value": "CLOSED",
"label": "Closed"
}
]
},
"commandDescription": {
"commandOptions": [
{
"command": "CLOSED",
"label": "Stängd"
},
{
"command": "OPEN",
"label": "Öppen"
}
]
},
"editable": false,
"type": "Contact",
"name": "Garage_Gate_Contact",
"label": "Garageport",
"category": "garagedoor",
"tags": [
"OpenState"
],
"groupNames": [
"geGarage_Gate",
"gcDoors",
"gpCR"
]
}