Skip to content

Commit

Permalink
Make state/alert customizable through DDF (#7839)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwoopX authored Aug 8, 2024
1 parent e2dc40a commit bbff304
Show file tree
Hide file tree
Showing 5 changed files with 369 additions and 297 deletions.
13 changes: 12 additions & 1 deletion devices/develco/heszb-120_heat_detector.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,18 @@
"name": "attr/uniqueid"
},
{
"name": "state/alert"
"name": "state/alert",
"description": "Start warning command payload has 5 Bytes. Byte 1: Options. 0x17 = Warning mode 1 (burglar), Strobe, Very high sound. Byte 2-3: Duration, Byte 4: Strobe duty cycle, Byte 5: Strobe level",
"read": {
"fn": "none"
},
"write": {
"cl": "0x0502",
"cmd": "0x00",
"ep": "0x01",
"eval": "if (Item.val=='select') { '1701000000' } else if (Item.val=='none') { '0000000000' }",
"fn": "zcl:cmd"
}
},
{
"name": "state/reachable"
Expand Down
Loading

0 comments on commit bbff304

Please sign in to comment.