Skip to content

Commit

Permalink
Fix IKEA FYRTUR block-out roller blind (#6895)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw committed Apr 16, 2023
1 parent c6541a0 commit 4cdd240
Showing 1 changed file with 8 additions and 36 deletions.
44 changes: 8 additions & 36 deletions devices/ikea/fyrtur_block-out_roller_blind.json
Expand Up @@ -42,45 +42,17 @@
{
"name": "attr/uniqueid"
},
{
"name": "state/bri",
"parse": {
"at": "0x0008",
"cl": "0x0102",
"ep": 1,
"eval": "Item.val = Math.round((254 * Attr.val) / 100)",
"fn": "zcl"
},
"read": {
"fn": "none"
},
"deprecated": "2020-04-08"
},
{
"name": "state/lift"
},
{
"name": "state/on",
"parse": {
"at": "0x0008",
"cl": "0x0102",
"ep": 1,
"eval": "Item.val = Attr.val > 0",
"fn": "zcl"
},
"read": {
"fn": "none"
},
"deprecated": "2020-04-08"
},
{
"name": "state/open",
"parse": {
"at": "0x0008",
"cl": "0x0102",
"fn": "zcl",
"ep": 1,
"eval": "Item.val = Attr.val === 100",
"fn": "zcl"
"cl": "0x0102",
"at": "0x0008",
"eval": "Item.val = Attr.val === 0"
},
"read": {
"fn": "none"
Expand Down Expand Up @@ -153,11 +125,11 @@
"name": "state/battery",
"refresh.interval": 3700,
"parse": {
"at": "0x0021",
"fn": "zcl",
"ep": 1,
"cl": "0x0001",
"ep": 0,
"eval": "Item.val = Attr.val",
"fn": "zcl"
"at": "0x0021",
"eval": "Item.val = Attr.val"
}
},
{
Expand Down

0 comments on commit 4cdd240

Please sign in to comment.