I am using openHAB with Phoscon and want to trigger the alarm for a smoke detector.
The smoke detector has cluster 502.
When I trigger the alarm for one second through the deCONZ GUI, the alarm goes off immediately and stops after one second. Perfect.
When I search for the smoke detector via Phoscon and integrate it into openHAB, an alarm channel is created, where I can select “none,” “select,” and “lselect.”
Unfortunately, triggering the alarm this way doesn’t work – when I switch multiple times between select and lselect, the alarm eventually goes off, but this seems random.
I have saved the DDF, which is visible in the deCONZ preview, as a JSON file under /home/user/.local/share/deCONZ/devices. Changes to the file also take effect.
I have logged the command from the deCONZ GUI; what should I do with it now?
{
“type”: “$TYPE_WARNING_DEVICE”,
“restapi”: “/lights”,
“uuid”: [
“$address.ext”,
“0x23”
],
“items”: [
{
“name”: “attr/id”
},
{
“name”: “attr/lastannounced”
},
{
“name”: “attr/lastseen”
},
{
“name”: “attr/manufacturername”
},
{
“name”: “attr/modelid”
},
{
“name”: “attr/name”
},
{
“name”: “attr/swversion”
},
{
“name”: “attr/type”
},
{
“name”: “attr/uniqueid”
},
{
“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’) { ‘01FF001001000000’ } else { ‘0000000000000000’ }”,
“fn”: “zcl:cmd”
},
“default”: “none”
},
{
“name”: “state/reachable”
}
]
}
does not work. I can switch multiple times between “none” and “select”. Nothing happens. If i choose “lselect” (like before), it goes off.
If I trigger it, it sends:
APS-DATA.request id: 19, addrmode: 0x03, addr: 0x0015BC00310269B4, profile: 0x0104, cluster: 0x0502, ep: 0x01 → 0x01 queue: 0 len: 8 tx.options 0x00
21:23:40:814 asdu (length: 8): 110B001701000000
This is NOT the payload I have declared…
How can I address this issue?