blinduvula:
how do you add the icon?
First, you should be using the custom Device Handler found at post 22 in this thread
I wrote a custom device call pressure mat that is the same as the door device but with new icon and message for stepped on and empty. Then I wrote a smart app that does something when stepped on, which is reverse logic from the existing built in open door app. I then took a picture of my mat and used it to override the icon so it looks like a mat. The device code is:
/**
* Z-Wave Pressure Mat Sensor
*
* Author: SmartThings - edited by KW
* Date: 2013-11-3
*/
// for the UI
metadata {
// Automatically generated. Make future change here.
definition (name: "Z-Wave Pressure Mat Sensor", namespace: "kewashi", author: "Ken Washington") {
capability "Contact Sensor"
capability "Sensor"
capability "Battery"
capability "Configuration"
fingerprint deviceId: "0x2001", inCluster…
If you need help installing custom DH and SmartApps
The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud.
As of May 2023, you can no longer add new Groovy DTH‘s or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, I’m afraid the Groovy information is no longer usable.
All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use “Edge Drivers,” written in the LUA programming language. Here’s the official announcement on those:
The process for using a custom Edge Driver in the new …
Download my icon (or use one of your own) and transfer it to your photo library of your phone.
For anyone interested, I created an icon that better matches the ones that SmartThings uses. It has a transparent background so the colors and text still show up.
[image]
In the device handler on your SmartThings app, click on the gear icon in the top right corner. Then simply click on the “Set Device Image” link to browse for your icon.
2 Likes