Closed SwoopX closed 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.
@SwoopX I suppose you wanted to use $TYPE_ON_OFF_LIGHT
here ?
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.
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
Hey @SwoopX, thanks for your pull request!
[!TIP] Modified bundles can be downloaded here.
xiaomi/xiaomi_dcm-k01_t2_dual_relay.json
: Aqara Dual Relay Module T2 (DCM-K01) :heavy_check_mark:[!TIP] Everything is fine !
:clock10: Updated for commit 0286ec7d133b5af3a4716097165a2ada26f9b29d
Validator has some problem with JSON here?