From a171e3c5f24d219a6f9438f8be7d9b1cb3dd6878 Mon Sep 17 00:00:00 2001 From: jaymemaurice Date: Tue, 30 Mar 2021 02:37:45 +0000 Subject: [PATCH 1/2] Wrapped humidity in TuyaAdjustedTemperature --- tasmota/xdrv_16_tuyamcu.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_16_tuyamcu.ino b/tasmota/xdrv_16_tuyamcu.ino index fc2cd861c..34e483c8c 100644 --- a/tasmota/xdrv_16_tuyamcu.ino +++ b/tasmota/xdrv_16_tuyamcu.ino @@ -1332,7 +1332,7 @@ void TuyaSensorsShow(bool json) dtostrfd(TuyaAdjustedTemperature(Tuya.Sensors[1], Settings.flag2.temperature_resolution), Settings.flag2.temperature_resolution, tempval), TempUnit()); break; case 73: - WSContentSend_PD(HTTP_SNS_HUM, "", dtostrfd(Tuya.Sensors[2], Settings.flag2.temperature_resolution, tempval)); + WSContentSend_PD(HTTP_SNS_HUM, "", dtostrfd(TuyaAdjustedTemperature(Tuya.Sensors[2], Settings.flag2.temperature_resolution), Settings.flag2.temperature_resolution, tempval)); break; case 74: WSContentSend_PD(PSTR("{s}" D_HUMIDITY " Set{m}%s " D_UNIT_PERCENT "{e}"), From 9e304fd127d1ea5631ad93c54ce6d3326319fe43 Mon Sep 17 00:00:00 2001 From: jaymemaurice Date: Tue, 30 Mar 2021 02:50:34 +0000 Subject: [PATCH 2/2] Wrapped humidity set in TuyaAdjustedTemperature --- tasmota/xdrv_16_tuyamcu.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_16_tuyamcu.ino b/tasmota/xdrv_16_tuyamcu.ino index 34e483c8c..285588553 100644 --- a/tasmota/xdrv_16_tuyamcu.ino +++ b/tasmota/xdrv_16_tuyamcu.ino @@ -1336,7 +1336,7 @@ void TuyaSensorsShow(bool json) break; case 74: WSContentSend_PD(PSTR("{s}" D_HUMIDITY " Set{m}%s " D_UNIT_PERCENT "{e}"), - dtostrfd(Tuya.Sensors[3], Settings.flag2.temperature_resolution, tempval)); + dtostrfd(TuyaAdjustedTemperature(Tuya.Sensors[3], Settings.flag2.temperature_resolution), Settings.flag2.temperature_resolution, tempval)); break; case 75: WSContentSend_PD(HTTP_SNS_ILLUMINANCE, "", Tuya.Sensors[4]);