dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 503 forks source link

Make `state/alert` customizable through DDF #7839

Closed SwoopX closed 3 months ago

SwoopX commented 4 months ago

Not all state resource items are fit for usage in DDFs yet. Especially with lights, they are often associated with commands and the functionality is hardcoded. To allow customization in DDFs, the item shall accept arbitrary commands for the values "select" and "none". The value "lselect" (to pass a user defined ontime via API) is currently skipped, as there's currently no aligned way to expose/leverage it. For the time being, this works via legacy code; so do the other possible values.

The changes have been tested with the Develco/frient smoke and heat sensors and the DDFs were updated accordingly.

github-actions[bot] commented 4 months ago

Hey @SwoopX, thanks for your pull request!

[!TIP] Modified bundles can be downloaded here. Relative expire date

DDB changes

Modified

Validation

[!TIP] Everything is fine !

:clock8: Updated for commit 20ede2f054b565965d19a610d4f2d5210a6b1f74

manup commented 3 months ago

Guess this needs a small refresh to solve merge conflict due earlier merged large PR :)

github-actions[bot] commented 3 months ago

This pull request is now merged. The new DDB files have been uploaded to the store.

DDB Files

Modified

:clock830: Updated for commit bbff304ec61d8c08812a0b1c244a323e1d8c1d27