Sensor status widget?

Hi

I know how to setup a widget on my android phone to control lights etc.

But how do I create a widget that reports a sensor value, like for instance the status of a door sensor?

Thanks.

Exactly the same way but use one of the capabilities such as alarm_contact or one of the measure_ capabilities. If you want a custom one then use “uiComponent”: “sensor” and “setable”: false.

All the built in capabilities are documented here: https://developer.athom.com/docs/apps-reference
If you click on the three dots it shows you what all the settings are so you can get an idea of how to create your custom ones.