From cdf4d3ff829327c652cfbc7d01cbf136c37a63b3 Mon Sep 17 00:00:00 2001 From: www-data Date: Sat, 4 Nov 2023 21:01:27 +0000 Subject: [PATCH] TRV06 added mode control. --- core/class/AbeilleCmdProcess.class.php | 4 ++-- .../commands/act_tuyaEF00-SetThermostatMode.json | 12 ++++++++++++ .../TS0601__TZE200_p3dbf6qs.json | 6 +++--- 3 files changed, 17 insertions(+), 5 deletions(-) create mode 100755 core/config/commands/act_tuyaEF00-SetThermostatMode.json diff --git a/core/class/AbeilleCmdProcess.class.php b/core/class/AbeilleCmdProcess.class.php index 5abb2329ac..70534341a0 100755 --- a/core/class/AbeilleCmdProcess.class.php +++ b/core/class/AbeilleCmdProcess.class.php @@ -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; } diff --git a/core/config/commands/act_tuyaEF00-SetThermostatMode.json b/core/config/commands/act_tuyaEF00-SetThermostatMode.json new file mode 100755 index 0000000000..7074d4b35b --- /dev/null +++ b/core/config/commands/act_tuyaEF00-SetThermostatMode.json @@ -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" + } +} \ No newline at end of file diff --git a/core/config/devices_local/TS0601__TZE200_p3dbf6qs/TS0601__TZE200_p3dbf6qs.json b/core/config/devices_local/TS0601__TZE200_p3dbf6qs/TS0601__TZE200_p3dbf6qs.json index ca3c2e4101..c830926f8d 100755 --- a/core/config/devices_local/TS0601__TZE200_p3dbf6qs/TS0601__TZE200_p3dbf6qs.json +++ b/core/config/devices_local/TS0601__TZE200_p3dbf6qs/TS0601__TZE200_p3dbf6qs.json @@ -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,