From 7b8765b2887714c20d625861bae962877b3f3d41 Mon Sep 17 00:00:00 2001 From: rboy1 <3846367+rboy1@users.noreply.github.com> Date: Mon, 26 Aug 2019 20:34:34 -0400 Subject: [PATCH] Allow user to select icon for generic child switch The default icon is a light bulb but the child DTH is a generic switch. It can (is) used by many DTH's using multi component devices for switch endpoints. This allows the user to select their own icon there by allow it to be more meaningful when used a child switch or outlet. --- devicetypes/smartthings/child-switch.src/child-switch.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicetypes/smartthings/child-switch.src/child-switch.groovy b/devicetypes/smartthings/child-switch.src/child-switch.groovy index bc516d0953d..d883d18735b 100644 --- a/devicetypes/smartthings/child-switch.src/child-switch.groovy +++ b/devicetypes/smartthings/child-switch.src/child-switch.groovy @@ -19,7 +19,7 @@ metadata { } tiles(scale: 2) { - multiAttributeTile(name: "switch", width: 6, height: 4, canChangeIcon: false) { + multiAttributeTile(name: "switch", width: 6, height: 4, canChangeIcon: true) { tileAttribute("device.switch", key: "PRIMARY_CONTROL") { attributeState "on", label: '${name}', action: "switch.off", icon: "st.switches.light.on", backgroundColor: "#00a0dc" attributeState "off", label: '${name}', action: "switch.on", icon: "st.switches.light.off", backgroundColor: "#ffffff"