Another thing that is happening and I can’t find an explanation or if I have an error.
Units defined in a custom capability are not displayed in the app and are displayed correctly in my.smartthings.com
In App:
This is the capability:
{
"id": "legendabsolute60149.localHourOffset",
"version": 1,
"status": "proposed",
"name": "Local Hour Offset",
"ephemeral": false,
"attributes": {
"localHourOffset": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": -12,
"maximum": 12
},
"unit": {
"type": "string",
"enum": [
"hr"
],
"default": "hr"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setLocalHourOffset",
"enumCommands": []
}
},
"commands": {
"setLocalHourOffset": {
"name": "setLocalHourOffset",
"arguments": [
{
"name": "value",
"optional": false,
"schema": {
"type": "integer",
"minimum": -12,
"maximum": 12
}
}
]
}
}
}
Capability presentation:
{
"dashboard": {
"states": [
{
"label": "{{localHourOffset.value}}"
}
],
"actions": []
},
"detailView": [
{
"label": "Local Hour to UTC Offset",
"displayType": "numberField",
"numberField": {
"value": "localHourOffset.value",
"valueType": "integer",
"unit": "localHourOffset.unit",
"command": "setLocalHourOffset",
"argumentType": "integer",
"range": [
-12,
12
]
},
"state": null
}
],
Thanks
Update:
This happens also in the previous version of the app, if you want change this post to other thread