zigbeefordomoticz / Domoticz-Zigbee

Zigbee plugin for Domoticz. Allow to connect various zigbee controllers like Zigate but also Texas Instrument CC2531, CC13x2, CC26x2 ; Silicon-Labs; deConz based chipset to be connected to Domoticz
GNU General Public License v3.0
98 stars 43 forks source link

refactor paramDevice in order to have a self documented DEVICE_PARAMETERS #1709

Closed pipiche38 closed 3 months ago

pipiche38 commented 5 months ago

Provides a self documented list of parameters via a Dict

can also link to https://zigbeefordomoticz.github.io/wiki/en-eng/HowTo_Device-parameters.html

DEVICE_PARAMETERS = {
    "device_setting" : { "function": the_function_to_be_called,
                                     "description": "what every is needed to describe what the parameter does",
                                     "working device": [ "model", "model" ... ]
                                  },
   ...
}