Thanks @Andremain. Currently, the tiles configuration in the DTH is not taken into consideration, that’s why you need to create a device configuration as Andreas said.
To do so, you need to set up the SmartThings CLI as follows:
- Download the latest release (Releases · SmartThingsCommunity/smartthings-cli · GitHub)
- Create a Personal Access Token, preferably selecting all the scopes (Samsung account)
- Depending on your PC OS, you need to create the “@smartthings/cli” folder at the location indicated on the configuration page (https://github.com/SmartThingsCommunity/smartthings-cli/blob/master/packages/cli/doc/configuration.md)
- Once you have the folder, you need to add there the “config.yaml” with your Personal Access Token created previously, it should have the correct indentation as the sample below:
default:
token: xxxx-xxx-xxxx
- To verify the configuration, use the command
smartthings devices
. It should retrieve the devices list, if you receive an authentication error, check the config.yaml file or add the--token
flag, for example,smartthings devices --token=PAT
After that, you can create your device configuration, the steps are:
- Generate the default configuration using the command:
smartthings presentation:device-config:generate dth-id --dth -j -o=devConfigPres.json
- Edit the
devConfigPres.json
file. There, you need to leave only therelativeHumidityMeasurement
capability in the Dashboard View. - Create the device configuration with the command:
smartthings presentation:device-config:create -i devConfigPres.json
- Add the properties
vid
andmnmn
in your DTH definition. Example:
definition (name: "dthName", vid:"xxxx-xxxx-xxxx", mnmn: "SmartThingsCommunity", //...) {
//...
}
- Then, save and publish it again. If changes are not effective, you need to re-add the device.
For more info, check this document or the post below (section " Generate / Post Device Configuration")