deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

DDF clone for Tuya 4 Gang remote (_TZ3000_5tqxpine)

Open mattreim opened this issue 5 months ago • 2 comments

"manufacturername": "_TZ3000_5tqxpine" "modelid": "TS0044"

See #8247

mattreim avatar Jun 13 '25 11:06 mattreim

Hey @mattreim, thanks for your pull request!

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

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

github-actions[bot] avatar Jun 13 '25 11:06 github-actions[bot]

@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.

manup avatar Jun 18 '25 10:06 manup

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

github-actions[bot] avatar Jun 23 '25 14:06 github-actions[bot]