Skip to content

Commit

Permalink
Tuya 2keysremote update
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Nov 17, 2024
1 parent db753bd commit dce1276
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .tools/check_json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"model": "LKWSZ211",
"type": "Tuya 2 keys remote",
"genericType": "Light",
"isVisible": 0,
"category": {
"light": "1"
},
Expand All @@ -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
}
},
Expand Down

0 comments on commit dce1276

Please sign in to comment.