Skip to content

Commit

Permalink
Update light_zll_white_ambiance.json
Browse files Browse the repository at this point in the history
Add `state/effect`, as these lights do support `candle`.
Also miraculously solves dresden-elektronik#7579.
  • Loading branch information
ebaauw committed Feb 8, 2024
1 parent 7332d68 commit 6e411a1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions devices/philips/light_zll_white_ambiance.json
Expand Up @@ -175,6 +175,29 @@
},
"refresh.interval": 60
},
{
"name": "state/effect",
"values": [
[
"\"none\"",
"no effect is active"
],
[
"\"candle\"",
"candlelight dynamic effect"
]
],
"parse": {
"fn": "zcl:attr",
"ep": "0x0b",
"cl": "0x0300",
"at": "0x4002",
"eval": "if (Item.val === 'none' || Item.val === 'colorloop') Item.val = Attr.val ? 'colorloop' : 'none'"
},
"read": {
"fn": "none"
}
},
{
"name": "state/reachable"
}
Expand Down

0 comments on commit 6e411a1

Please sign in to comment.