Smartthings Device Handler for Qubino Flush Relay used as a Thermostat.
This allows the Qubino flush relay module and an attached thermometer to behave like a thermostat and control an attached electric radiator.
- Create capability - definition of attributes & commands
smartthings capabilities:create
Name: Custom Cape
Commands:
- abc
- xyz
- Create presentation capability - Define how the capability will look in the dashboard, detail view
2a. Define a file that a describe the controls
2b. Create the capability via the api
smartthings capabilities:presentation:create <XXXX NAMESPACE XXXX>.capabilityName 1 -y -i=customLevels.json
- Generate device config - Which capabilities to show on dashboard, detail view
3.a Export one based on DTH
smartthings presentation:device-config:generate [ID HERE] --dth -o=deviceConfig-orig.json -j
where id is the dth id from https://graph-eu01-euwest1.api.smartthings.com/ide/device/editor/[ID here]
3b. Remove extroneus output
Remove presentationId Remove manufacturerName
3c. Create the config via the api
smartthings presentation:device-config:create -j -i deviceConfig.json
3d. add vid: 'xxx' to DTH, from the output of presentation:device-config:create