Custom capability with displayType state no longer updates in app

Hi

My/our direct connected device project has a number of custom capabilities.
Some of the custom capabilities use displayType state so that a text message
can be presented to the user.

During earlier phases of development and testing, i.e before latest app update,
these UI-elements have been updated in the app when the tested device
has updated the value.

But… The main interface is no longer updated even though *value changes/updates are
visible in the history-tab of the app.

See attached images.

Please note that this has worked previously, there have been no changes in
code, so I assume that the app is the cause.

The same problem exists in Android and iOS.

Cheers
/Anders Holm

Capability

{
    "id": "themetravel04733.flowinfo",
    "version": 1,
    "status": "proposed",
    "name": "flowInfo",
    "ephemeral": false,
    "attributes": {
        "flowInfo": {
            "schema": {
                "type": "object",
                "properties": {
                    "value": {
                        "type": "string"
                    }
                },
                "additionalProperties": false,
                "required": [
                    "value"
                ]
            },
            "enumCommands": []
        }
    },
    "commands": {}
}

Presentation

{
	"dashboard":{
		"states":[
		],
		"actions":[		
		]
	},
	"detailView":[
		{
			"label":"Information",
			"displayType":"state",
			"state": {
				 "label": "flowInfo.value"
			}
		}
	],
	"automation":{
		"conditions":[],
		"actions":[]
	},
	"id":"themetravel04733.flowinfo",
	"version":1
}

Hi, @senspix

Note that on the Display Types Documentation labels are setted between curly brackets. Please, try making that change and tell us how it goes

I’ll try.

But… it worked previously!

BTW,

Are there more examples, documentation, tutorials, guides, syntax documentation related to Capability presentations and translations? More than the ones at Capability Presentations | SmartThings Developers or close by.

The syntax for capability presentations and translations is not easily understood :wink:

Cheers

Have you checked the API reference (Localization/translation,capability presentation)?
We’ll create a report to ask for more details about the creation of the capability translations and continue the related discussion on this thread: