Skip to content

Commit

Permalink
Merge pull request #4980 from Smanar/tuya_trv_12
Browse files Browse the repository at this point in the history
FIX : missing Temperature and Setpoint Value return for Hama (Tuya) TRV
  • Loading branch information
manup authored Jun 12, 2021
2 parents 49217fb + 58736e0 commit da8f579
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tuya.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@ void DeRestPluginPrivate::handleTuyaClusterIndication(const deCONZ::ApsDataIndic
{
//Can be Temperature for some device
if (productId == "Tuya_THD SEA801-ZIGBEE TRV" ||
productId == "Tuya_THD Smart radiator TRV" ||
productId == "Tuya_THD WZB-TRVL TRV")
{
qint16 temp = static_cast<qint16>(data & 0xFFFF) * 10;
Expand All @@ -1011,6 +1012,7 @@ void DeRestPluginPrivate::handleTuyaClusterIndication(const deCONZ::ApsDataIndic
{
//can be setpoint for some device
if (productId == "Tuya_THD SEA801-ZIGBEE TRV" ||
productId == "Tuya_THD Smart radiator TRV" ||
productId == "Tuya_THD WZB-TRVL TRV")
{
qint16 temp = static_cast<qint16>(data & 0xFFFF) * 10;
Expand Down

0 comments on commit da8f579

Please sign in to comment.