Skip to content

Commit

Permalink
configureReporting to configureReporting2 for cluster 0001-0021
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Dec 5, 2023
1 parent 8f9b8b2 commit 69ff904
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .tools/update_json.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ function updateDevice($devName, $fullPath, $dev) {
$commands2[$cmdJName] = $cmd;
$devUpdated = true;
echo " Cmd '${cmdJName}' UPDATED.\n";
} else if (($cmdFName == "act_zbConfigureReporting") &&
($cmd['params'] == "ep=01&clustId=0001&attrType=20&attrId=0021&minInterval=0708&maxInterval=0E10&changeVal=")) {
$cmd['use'] = "act_zbConfigureReporting2";
$cmd['params'] = "ep=01&clustId=0001&attrId=0021&attrType=20&minInterval=1800&maxInterval=3600";
$commands2[$cmdJName] = $cmd;
$devUpdated = true;
echo " Cmd '${cmdJName}' UPDATED.\n";
} else if (($cmdFName == "BindToPowerConfig") && $oldSyntax) {
$cmdArr = Array(
"use"=> "zbBindToZigate",
Expand Down
4 changes: 2 additions & 2 deletions core/config/devices/HT-EF-3.0_HEIMAN/HT-EF-3.0_HEIMAN.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"params": "ep=01"
},
"SetReporting 01-0001-00021": {
"use": "act_zbConfigureReporting",
"params": "ep=01&clustId=0001&attrType=20&attrId=0021&minInterval=0708&maxInterval=0E10&changeVal=",
"use": "act_zbConfigureReporting2",
"params": "ep=01&clustId=0001&attrId=0021&attrType=20&minInterval=1800&maxInterval=3600",
"execAtCreation": "yes"
},
"Bind 01-0001-ToZigate": {
Expand Down
4 changes: 2 additions & 2 deletions core/config/devices/PIR323-PTH_OWON/PIR323-PTH_OWON.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"params": "ep=01"
},
"SetReporting 01-0001-00021": {
"use": "act_zbConfigureReporting",
"params": "ep=01&clustId=0001&attrType=20&attrId=0021&minInterval=0708&maxInterval=0E10&changeVal=",
"use": "act_zbConfigureReporting2",
"params": "ep=01&clustId=0001&attrId=0021&attrType=20&minInterval=1800&maxInterval=3600",
"execAtCreation": "yes"
},
"Bind 01-0001-ToZigate": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"params": "ep=01"
},
"SetReporting 01-0001-00021": {
"use": "act_zbConfigureReporting",
"params": "ep=01&clustId=0001&attrType=20&attrId=0021&minInterval=0708&maxInterval=0E10&changeVal=",
"use": "act_zbConfigureReporting2",
"params": "ep=01&clustId=0001&attrId=0021&attrType=20&minInterval=1800&maxInterval=3600",
"execAtCreation": "yes"
},
"Bind 01-0001-ToZigate": {
Expand Down
4 changes: 2 additions & 2 deletions core/config/devices/SNZB-02D_SONOFF/SNZB-02D_SONOFF.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"params": "ep=01"
},
"SetReporting 01-0001-00021": {
"use": "act_zbConfigureReporting",
"params": "ep=01&clustId=0001&attrType=20&attrId=0021&minInterval=0708&maxInterval=0E10&changeVal=",
"use": "act_zbConfigureReporting2",
"params": "ep=01&clustId=0001&attrId=0021&attrType=20&minInterval=1800&maxInterval=3600",
"execAtCreation": "yes"
},
"Bind 01-0001-ToZigate": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"params": "ep=01"
},
"SetReporting 01-0001-00021": {
"use": "act_zbConfigureReporting",
"params": "ep=01&clustId=0001&attrType=20&attrId=0021&minInterval=0708&maxInterval=0E10&changeVal=",
"use": "act_zbConfigureReporting2",
"params": "ep=01&clustId=0001&attrId=0021&attrType=20&minInterval=1800&maxInterval=3600",
"execAtCreation": "yes"
},
"Bind 01-0001-ToZigate": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"execAtCreation": "yes"
},
"SetReporting 01-0001-00021": {
"use": "act_zbConfigureReporting",
"params": "ep=01&clustId=0001&attrType=20&attrId=0021&minInterval=0708&maxInterval=0E10&changeVal=",
"use": "act_zbConfigureReporting2",
"params": "ep=01&clustId=0001&attrId=0021&attrType=20&minInterval=1800&maxInterval=3600",
"execAtCreation": "yes"
},
"Get Battery-Percent": {
Expand Down

0 comments on commit 69ff904

Please sign in to comment.