diff --git a/.tools/check_json.php b/.tools/check_json.php index 06bae3200..87d888342 100644 --- a/.tools/check_json.php +++ b/.tools/check_json.php @@ -398,7 +398,7 @@ function checkDeviceModel($devModName, $dev) { continue; } $func = $dpVal['function']; - $supportedFunc = ['rcvValue', 'rcvValueDiv', 'rcvValueMult', 'rcvValue0Is1']; + $supportedFunc = ['rcvValue', 'rcvValueEnum', 'rcvValueDiv', 'rcvValueMult', 'rcvValue0Is1']; if (!in_array($func, $supportedFunc)) { $error = newDevError($devModName, "ERROR", "Invalid function '${func}' for private/${pKey} DP ${dpId}"); continue; diff --git a/core/config/devices/TS0021__TZ3210_3ulg9kpo/TS0021__TZ3210_3ulg9kpo.json b/core/config/devices/TS0021__TZ3210_3ulg9kpo/TS0021__TZ3210_3ulg9kpo.json index 37af05ceb..c34314cde 100644 --- a/core/config/devices/TS0021__TZ3210_3ulg9kpo/TS0021__TZ3210_3ulg9kpo.json +++ b/core/config/devices/TS0021__TZ3210_3ulg9kpo/TS0021__TZ3210_3ulg9kpo.json @@ -4,6 +4,7 @@ "model": "LKWSZ211", "type": "Tuya 2 keys remote", "genericType": "Light", + "isVisible": 0, "category": { "light": "1" }, @@ -21,12 +22,16 @@ "use": "inf_click", "comment": "value = single, double or long", "logicalId": "inf_click1", + "returnStateValue": "", + "returnStateTime": 1, "isVisible": 1 }, "Click 2": { "use": "inf_click", "comment": "value = single, double or long", "logicalId": "inf_click2", + "returnStateValue": "", + "returnStateTime": 1, "isVisible": 1 } },