deconz-rest-plugin
deconz-rest-plugin copied to clipboard
DDF clone for Tuya 4 Gang remote (_TZ3000_5tqxpine)
"manufacturername": "_TZ3000_5tqxpine" "modelid": "TS0044"
See #8247
Hey @mattreim, thanks for your pull request!
[!TIP] Modified bundles can be downloaded here.
DDB changes
Modified
tuya/_TZ3000_TS0044_4gang_remote.json: Tuya 4-gang remote (TS0044) :heavy_check_mark:
Validation
[!TIP] Everything is fine !
:clock11: Updated for commit 1304500281425cca43604d10015d97ef8c10284e
@mattreim @Smanar
PR is alright.
Just some considerations to enhance the DDF in future.
Since a few versions DDFs support "buttons" and "buttonevents" to describe these (similar to button_maps.json). Good example is the Hue remote https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/philips/rwl022_dimmer_switch.json
With that the buttons and possible events are automatically exposed in the introspection API, which can be used by REST-API clients to be more generic, e.g. UIs showing the remote with proper amount of buttons.
The Hue remote DDF also uses a extra Javascript file to parse state/buttonevent which entirely removes dependency on button_maps.json making the DDF self contained, as generated DDF bundles do include all item files and referenced .js files.
If we do the same for this DDF, in order to add a new Tuya clone (manufacturername / modelid) only the main DDF .json needs to be extended.
This pull request is now merged. The new DDB files have been uploaded to the store.
DDB Files
Modified
-
tuya/_TZ3000_TS0044_4gang_remote.json: Tuya 4-gang remote (TS0044) : with hash (6bcc941d07) -
tuya/TZE204_c2fmom5z_air_sensor.json: Smart Air House keeper (TS0601) : with hash (e08859ae4e)
:clock7: Updated for commit 6d8253938e1a33eba881996badf1579e2f3c2ea0