dresden-elektronik / deconz-rest-plugin

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

DDF for Aqara Dual Relay Module T2 (DCM-K01) #7847

Closed SwoopX closed 1 month ago

manup commented 1 month ago

Validator has some problem with JSON here?

Zehir commented 1 month ago

Validator has some problem with JSON here?

Yes but even if he don't say what there is a problem here, it's because there is no generic file for subdevice $TYPE_ON_OFF_SWITCH.

Error: ENOENT: no such file or directory, open 'devices/generic/subdevices/on_off_switch.json'

When I can I will update it to add a better error message here.

Zehir commented 1 month ago

@SwoopX I suppose you wanted to use $TYPE_ON_OFF_LIGHT here ?

SwoopX commented 1 month ago

Nope, the device is of type on/off switch. But if there's no such constant defined, that kinda explains the error message. Could add that maybe later today.

Zehir commented 1 month ago

Nope, the device is of type on/off switch. But if there's no such constant defined, that kinda explains the error message. Could add that maybe later today.

True, it's defined in the constants.json file but there is no subdevice generic for it

github-actions[bot] commented 1 month 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 !

:clock10: Updated for commit 0286ec7d133b5af3a4716097165a2ada26f9b29d