1414 * Hampton Bay Universal Ceiling Fan/Light Controller Model#MR101Z
1515 * This device handler is specifically for the Home Depot Hampton Bay Universal Ceiling Fan/Light Premier Remote Control model#9943241
1616 *
17- * Author: Dale Coffing, Ranga Pedamallu
17+ * Author: Ranga Pedamallu with modification by Dale Coffing
1818 *
1919
2020 Change Log
@@ -54,10 +54,10 @@ metadata {
5454 tiles(scale : 2 ) {
5555 multiAttributeTile(name :" switch" , type : " lighting" , width : 6 , height : 4 , canChangeIcon : true ){
5656 tileAttribute (" device.switch" , key : " PRIMARY_CONTROL" ) {
57- attributeState " on" , label :' ${name}' , action :" switch.off" , icon :" st.Lighting.light24 " , backgroundColor :" #79b821" , nextState :" turningOff"
58- attributeState " off" , label :' ${name}' , action :" switch.on" , icon :" st.Lighting.light24 " , backgroundColor :" #ffffff" , nextState :" turningOn"
59- attributeState " turningOn" , label :' ${name}' , action :" switch.off" , icon :" st.Lighting.light24 " , backgroundColor :" #2179b8" , nextState : " turningOn"
60- attributeState " turningOff" , label :' ${name}' , action :" switch.on" , icon :" st.Lighting.light24 " , backgroundColor :" #2179b8" , nextState : " turningOff"
57+ attributeState " on" , label :' ${name}' , action :" switch.off" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/light.png " , backgroundColor :" #79b821" , nextState :" turningOff"
58+ attributeState " off" , label :' ${name}' , action :" switch.on" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/light.png " , backgroundColor :" #ffffff" , nextState :" turningOn"
59+ attributeState " turningOn" , label :' ${name}' , action :" switch.off" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/light.png " , backgroundColor :" #2179b8" , nextState : " turningOn"
60+ attributeState " turningOff" , label :' ${name}' , action :" switch.on" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/light.png " , backgroundColor :" #2179b8" , nextState : " turningOff"
6161 }
6262 tileAttribute (" device.level" , key : " SLIDER_CONTROL" ) {
6363 attributeState " level" , action :" switch level.setLevel"
@@ -67,14 +67,14 @@ metadata {
6767 }
6868 }
6969 standardTile(" fanOff" , " device.fanMode" , inactiveLabel : false , width :2 , height :2 ) {
70- state " default" , label : ' Off' , action : " fanOff" , icon :" st.Home.home30 " , backgroundColor : " #ffffff" , nextState : " turningOff"
71- state " fanOff" , label :' Off' , action : " fanOff" , icon :" st.Home.home30 " , backgroundColor : " #79b821" , nextState : " turningOff"
72- state " turningOff" , label :' Off' , action : " fanOff" , icon :" st.Home.home30 " , backgroundColor : " #2179b8" , nextState : " turningOff"
70+ state " default" , label : ' Off' , action : " fanOff" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/OnOff.png " , backgroundColor : " #ffffff" , nextState : " turningOff"
71+ state " fanOff" , label :' Off' , action : " fanOff" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/OnOff.png " , backgroundColor : " #79b821" , nextState : " turningOff"
72+ state " turningOff" , label :' Off' , action : " fanOff" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/OnOff.png " , backgroundColor : " #2179b8" , nextState : " turningOff"
7373 }
7474 standardTile(" fanOne" , " device.fanMode" , inactiveLabel : false , width : 2 , height : 2 ) {
75- state " default" , label : ' One' , action : " fanOne" , icon :" st.Lighting.light24 " , backgroundColor : " #ffffff" , nextState : " turningOne"
76- state " fanOne" , label :' One' , action : " fanOne" , icon :" st.Lighting.light24 " , backgroundColor : " #79b821" , nextState : " turningOne"
77- state " turningOne" , label :' One' , action : " fanOne" , icon :" st.Lighting.light24 " , backgroundColor : " #2179b8" , nextState : " turningOne"
75+ state " default" , label : ' One' , action : " fanOne" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/fan.png " , backgroundColor : " #ffffff" , nextState : " turningOne"
76+ state " fanOne" , label :' One' , action : " fanOne" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/fan.png " , backgroundColor : " #79b821" , nextState : " turningOne"
77+ state " turningOne" , label :' One' , action : " fanOne" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/fan.png " , backgroundColor : " #2179b8" , nextState : " turningOne"
7878 }
7979 standardTile(" fanTwo" , " device.fanMode" , inactiveLabel : false , width : 2 , height : 2 ) {
8080 state " default" , label : ' Two' , action : " fanTwo" , icon :" st.Home.home30" , backgroundColor : " #ffffff" , nextState : " turningTwo"
@@ -92,9 +92,9 @@ metadata {
9292 state " turningFour" , label :' Four' , action : " fanFour" , icon :" st.Home.home30" , backgroundColor : " #2179b8" , nextState : " turningFour"
9393 }
9494 standardTile(" fanBreeze" , " device.fanMode" , inactiveLabel : false , width :2 , height :2 ) {
95- state " default" , label : ' Breeze' , action : " fanAuto" , icon :" st.Home.home30 " , backgroundColor : " #ffffff" , nextState : " turningBreeze"
96- state " fanAuto" , label :' Breeze' , action : " fanAuto" , icon :" st.Home.home30 " , backgroundColor : " #79b821" , nextState : " turningBreeze"
97- state " turningBreeze" , label :' Breeze' , action : " fanAuto" , icon :" st.Home.home30 " , backgroundColor : " #2179b8" , nextState : " turningBreeze"
95+ state " default" , label : ' Breeze' , action : " fanAuto" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/breeze.png " , backgroundColor : " #ffffff" , nextState : " turningBreeze"
96+ state " fanAuto" , label :' Breeze' , action : " fanAuto" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/breeze.png " , backgroundColor : " #79b821" , nextState : " turningBreeze"
97+ state " turningBreeze" , label :' Breeze' , action : " fanAuto" , icon :" https://raw.githubusercontent.com/dcoffing/SmartThingsPublic/master/devicetypes/dcoffing/hampton-bay-universal-ceiling-fan-light-controller.src/breeze.png " , backgroundColor : " #2179b8" , nextState : " turningBreeze"
9898 }
9999 standardTile(" refresh" , " device.refresh" , inactiveLabel : false , decoration : " flat" , width : 6 , height : 2 ) {
100100 state " default" , label :" " , action :" refresh.refresh" , icon :" st.secondary.refresh"
0 commit comments