@@ -27,11 +27,11 @@ metadata {
27
27
capability " Switch Level"
28
28
29
29
command " pause"
30
-
30
+
31
31
// NodOn
32
- fingerprint profileId : " 0104" , inClusters : " 0000, 0003, 0004, 0005, 0006, 0008, 0102" , outClusters : " 0019" , manufacturer : " NodOn" , model : " SIN-4-RS-20" , deviceJoinName : " NodOn Window Treatment"
32
+ fingerprint profileId : " 0104" , inClusters : " 0000, 0003, 0004, 0005, 0006, 0008, 0102" , outClusters : " 0019" , manufacturer : " NodOn" , model : " SIN-4-RS-20" , deviceJoinName : " NodOn Window Treatment"
33
33
fingerprint profileId : " 0104" , inClusters : " 0000, 0003, 0004, 0005, 0006, 0008, 0102" , outClusters : " 0019" , manufacturer : " NodOn" , model : " SIN-4-RS-20_PRO" , deviceJoinName : " NodOn Window Treatment"
34
-
34
+
35
35
fingerprint profileId : " 0104" , inClusters : " 0000, 0003, 0004, 0102" , outClusters : " 0019" , model : " E2B0-KR000Z0-HA" , deviceJoinName : " eZEX Window Treatment" // SY-IoT201-BD //SOMFY Blind Controller/eZEX
36
36
fingerprint profileId : " 0104" , inClusters : " 0000, 0003, 0004, 0005, 0006, 0008, 0102" , outClusters : " 000A" , manufacturer : " Feibit Co.Ltd" , model : " FTB56-ZT218AK1.6" , deviceJoinName : " Wistar Window Treatment" // Wistar Curtain Motor(CMJ)
37
37
fingerprint profileId : " 0104" , inClusters : " 0000, 0003, 0004, 0005, 0006, 0008, 0102" , outClusters : " 000A" , manufacturer : " Feibit Co.Ltd" , model : " FTB56-ZT218AK1.8" , deviceJoinName : " Wistar Window Treatment" // Wistar Curtain Motor(CMJ)
@@ -149,10 +149,10 @@ def levelEventHandler(currentLevel) {
149
149
sendEvent(name : " level" , value : currentLevel, unit : " %" , displayed : false )
150
150
151
151
if (currentLevel == 0 || currentLevel == 100 ) {
152
- if (device. getDataValue(" manufacturer" ) == " Third Reality, Inc" ){
153
- sendEvent(name : " windowShade" , value : currentLevel == 0 ? " open" : " closed" )
152
+ if (device. getDataValue(" manufacturer" ) == " Third Reality, Inc" ){
153
+ sendEvent(name : " windowShade" , value : currentLevel == 0 ? " open" : " closed" )
154
154
} else {
155
- sendEvent(name : " windowShade" , value : currentLevel == 0 ? " closed" : " open" )
155
+ sendEvent(name : " windowShade" , value : currentLevel == 0 ? " closed" : " open" )
156
156
}
157
157
} else {
158
158
if (priorLevel < currentLevel) {
@@ -222,14 +222,10 @@ def pause() {
222
222
log. info " pause()"
223
223
def currentShadeStatus = device. currentValue(" windowShade" )
224
224
225
- if (device . getDataValue( " manufacturer " ) == " Third Reality, Inc " ) {
226
- zigbee . command( CLUSTER_WINDOW_COVERING , COMMAND_PAUSE )
225
+ if (isSomfy() && (currentShadeStatus == " open " || currentShadeStatus == " closed " ) ) {
226
+ sendEvent( name : " windowShade " , value : currentShadeStatus )
227
227
} else {
228
- if (currentShadeStatus == " open" || currentShadeStatus == " closed" ) {
229
- sendEvent(name : " windowShade" , value : currentShadeStatus)
230
- } else {
231
- zigbee. command(CLUSTER_WINDOW_COVERING , COMMAND_PAUSE )
232
- }
228
+ zigbee. command(CLUSTER_WINDOW_COVERING , COMMAND_PAUSE )
233
229
}
234
230
}
235
231
0 commit comments