In order to simplify the code, I'm currently looking into the many places where device specific code paths are implemented.
I've created a small wiki page to gather some ideas for device description files in hindsight to improve device support and make ResourceItem and device specifics less depended on C++ code.
Be aware this may look a bit cumbersome and too complex currently ;)
There are a lot of missing pieces, I have some ideas for generic device support for common devices like IAS devices and lights as well as similar devices (and same devices under different name). I think for the most part we'll end up with very small device descriptions and can simplyfy the C++ side a lot.
In order to simplify the code, I'm currently looking into the many places where device specific code paths are implemented. I've created a small wiki page to gather some ideas for device description files in hindsight to improve device support and make
ResourceItem
and device specifics less depended on C++ code.Be aware this may look a bit cumbersome and too complex currently ;)
https://github.com/dresden-elektronik/deconz-rest-plugin-v2/wiki/Device-Descriptions-Draft
There are a lot of missing pieces, I have some ideas for generic device support for common devices like IAS devices and lights as well as similar devices (and same devices under different name). I think for the most part we'll end up with very small device descriptions and can simplyfy the C++ side a lot.