Hello,
I wrote a JavaScript SmartApp using the new guidelines and it works very well when creating the “Project” and “Device Profile” manually from the Developer Workspace. I am now trying to find an easier way to let people install the SmartApp for themselves without having to manually reproduce every single step in the web interface.
I then experimented with the SmartThings CLI and found out that some inputs seem ignored.
The input file I use is the following:
name: Temperature and Humidity for OpenWeather sensor
metadata:
deviceType: Thermostat
components:
- id: main
capabilities:
- id: temperatureMeasurement
- id: relativeHumidityMeasurement
- id: momentary
view:
dashboard:
states:
- capability: temperatureMeasurement
actions:
- capability: momentary
Then, I create the Device Profile with:
smartthings deviceprofiles:view:create --input inputfile
As a result, the Device Profile appears in the Developer Workspace, has all the expected values on the two first tabs (Basic Info, Components & Capabilities), but keeps default values on the third one (UI Display) instead of my customized ones.
I can manually fix these ones, but even when exporting the result, deleting the Device Profile, creating a new with the exported file, these 3rd tab values and still ignored.
smartthings deviceprofiles:view ae761338-1dd7-460d-a6ae-92246f6b2a79 --output exportfile
smartthings deviceprofiles:delete ae761338-1dd7-460d-a6ae-92246f6b2a79
smartthings deviceprofiles:view:create --input exportfile
Am I missing something here?