Skip to content

Commit

Permalink
TRV06 added mode control.
Browse files Browse the repository at this point in the history
  • Loading branch information
www-data committed Nov 4, 2023
1 parent c0fd591 commit cdf4d3f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/class/AbeilleCmdProcess.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5124,9 +5124,9 @@ function processCmd($Command) {
$fcf = "11"; // Frame Control Field
$sqn = $this->genSqn();
$cmdId = "00"; // TY_DATA_REQUEST, 0x00, The gateway sends data to the Zigbee module.
cmdLog2('debug', $addr, ' BEN: '.json_encode($Command) );
cmdLog2('debug', $addr, ' BEN: Command : '.json_encode($Command) );
$dp = tuyaCmd2Dp($Command);
cmdLog2('debug', $addr, ' BEN: '.json_encode($dp) );
cmdLog2('debug', $addr, ' BEN: dp : '.json_encode($dp) );
if ($dp === false) {
return;
}
Expand Down
12 changes: 12 additions & 0 deletions core/config/commands/act_tuyaEF00-SetThermostatMode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"act_tuyaEF00-SetThermostatMode": {
"subType": "other",
"template": "",
"configuration": {
"topic": "cmd-tuyaEF00",
"request": "ep=#EP#&cmd=setThermostat-Mode"
},
"type": "action",
"genericType": "GENERIC_ACTION"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@
"nextLine": "after"
},
"Auto": {
"use": "act_tuyaEF00-SetValue",
"use": "act_tuyaEF00-SetThermostatMode",
"params": "dpId=02&data=00",
"genericType": "THERMOSTAT_SET_MODE",
"isVisible": 1
},
"Heat": {
"use": "act_tuyaEF00-SetValue",
"use": "act_tuyaEF00-SetThermostatMode",
"params": "dpId=02&data=01",
"genericType": "THERMOSTAT_SET_MODE",
"isVisible": 1
},
"OFF": {
"use": "act_tuyaEF00-SetValue",
"use": "act_tuyaEF00-SetThermostatMode",
"params": "dpId=02&data=02",
"genericType": "THERMOSTAT_SET_MODE",
"isVisible": 1,
Expand Down

0 comments on commit cdf4d3f

Please sign in to comment.