I’m building an integration for a WEM thermostat and I’d like to visualise the outside temperature, the inside temperature (measure_temperature), the min and max temperature. But I have an issue finding the corresponding capabilities (Tutorial: Device Capabilities - Homey Apps SDK v3).
I assumed that they are shown on the web dashboard, so you can use your browser to download them. Or, as @Adrian_Rockall suggests, use subcapabilities.
You can have as many of those as you like just by changing the postfix and adding he relevant capabilitiesOptions to set the title.
When you define the flow card you name it measure_temperature_outside_changed and in your code you add: this.outsideTrigger = this.homey.flow.getDeviceTriggerCard( 'measure_temperature_outside_changed' );
The measure_temperature_outside_changed.json file will be something like:
@Adrian_Rockall thanks for the info, that is working perfectly and is way easier than expected.
One last thing, when I check the values in the app, I’m getting 2 times "temperature’ instead of temperature and the translation of the capability which is described in the driver.compose.json file
One addition…
You can’t change the icon for default capabilities or subcapabilities based on default capabilities - as far as I tried all combinations overwriting the capability settingsnin the driver.
So if you are planning to use separate icos for your capabilities, better define your own custom capability.
But use measure_ or meter_ as prefix to get these values selectable on the device tile.
Example for individual capability with their icon: