Skip to content

Commit

Permalink
Fix wrong value for state/open on Window Covering devices (#7314)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw authored and manup committed Nov 17, 2023
1 parent 726aafa commit ecd3bc4
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
8 changes: 7 additions & 1 deletion devices/ikea/blind.json
Expand Up @@ -70,6 +70,9 @@
{
"name": "cap/groups/not_supported"
},
{
"name": "state/alert"
},
{
"name": "state/lift"
},
Expand All @@ -80,7 +83,7 @@
"ep": 1,
"cl": "0x0102",
"at": "0x0008",
"eval": "Item.val = Attr.val === 0"
"eval": "Item.val = Attr.val < 100"
},
"read": {
"fn": "none"
Expand Down Expand Up @@ -162,6 +165,9 @@
{
"name": "attr/uniqueid"
},
{
"name": "config/alert"
},
{
"name": "config/on"
},
Expand Down
2 changes: 1 addition & 1 deletion devices/ikea/fyrtur_block-out_roller_blind.json
Expand Up @@ -52,7 +52,7 @@
"ep": 1,
"cl": "0x0102",
"at": "0x0008",
"eval": "Item.val = Attr.val === 0"
"eval": "Item.val = Attr.val < 100"
},
"read": {
"fn": "none"
Expand Down
2 changes: 1 addition & 1 deletion devices/iluminize/roller_shutter_actuator_mini.json
Expand Up @@ -81,7 +81,7 @@
"at": "0x0008",
"cl": "0x0102",
"ep": 1,
"eval": "Item.val = Attr.val === 100",
"eval": "Item.val = Attr.val < 100",
"fn": "zcl:attr"
}
},
Expand Down
4 changes: 2 additions & 2 deletions devices/merten/meg5113-0300_cover_controller.json
Expand Up @@ -71,7 +71,7 @@
"at": "0x0008",
"cl": "0x0102",
"ep": 5,
"eval": "if(Attr.val == 100) { Item.val = false; } else { Item.val = true; }",
"eval": "Item.val = Attr.val < 100",
"fn": "zcl:attr"
}
},
Expand All @@ -97,4 +97,4 @@
]
}
]
}
}
4 changes: 2 additions & 2 deletions devices/ubisys/j1_5502.json
Expand Up @@ -77,7 +77,7 @@
"at": "0x0008",
"cl": "0x0102",
"ep": 1,
"eval": "if (Attr.val == 100) { Item.val = false; } else { Item.val = true; }",
"eval": "Item.val = Attr.val < 100",
"fn": "zcl:attr"
},
"read": {
Expand Down Expand Up @@ -362,4 +362,4 @@
]
}
]
}
}
4 changes: 2 additions & 2 deletions devices/ubisys/j1r_5602.json
Expand Up @@ -77,7 +77,7 @@
"at": "0x0008",
"cl": "0x0102",
"ep": 1,
"eval": "if (Attr.val == 100) { Item.val = false; } else { Item.val = true; }",
"eval": "Item.val = Attr.val < 100",
"fn": "zcl:attr"
},
"read": {
Expand Down Expand Up @@ -362,4 +362,4 @@
]
}
]
}
}
4 changes: 2 additions & 2 deletions devices/wiser/wall_switch_shutter.json
Expand Up @@ -60,7 +60,7 @@
"at": "0x0008",
"cl": "0x0102",
"ep": 5,
"eval": "Item.val = Attr.val != 0",
"eval": "Item.val = Attr.val < 100",
"fn": "zcl:attr"
},
"awake": true,
Expand Down Expand Up @@ -269,4 +269,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion devices/xiaomi/lumi_curtain.json
Expand Up @@ -79,7 +79,7 @@
"ep": 1,
"cl": "0x0102",
"at": "0x0008",
"eval": "Item.val = Attr.val === 100"
"eval": "Item.val = Attr.val > 0"
},
"read": {
"fn": "none"
Expand Down
2 changes: 1 addition & 1 deletion devices/xiaomi/lumi_curtain_acn002.json
Expand Up @@ -126,7 +126,7 @@
"ep": 1,
"cl": "0x000D",
"at": "0x0055",
"eval": "Item.val = Attr.val === 100"
"eval": "Item.val = Attr.val > 0"
},
"read": {
"fn": "none"
Expand Down

0 comments on commit ecd3bc4

Please sign in to comment.