From 9b85487d399490ed44b1eb71caec7a00dba796f4 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Fri, 2 Oct 2020 22:30:11 +0200 Subject: [PATCH] Zigbee add TRV to UI --- tasmota/xdrv_23_zigbee_A_impl.ino | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_23_zigbee_A_impl.ino b/tasmota/xdrv_23_zigbee_A_impl.ino index 7bacb43d9..3e29c7962 100644 --- a/tasmota/xdrv_23_zigbee_A_impl.ino +++ b/tasmota/xdrv_23_zigbee_A_impl.ino @@ -1432,16 +1432,26 @@ void ZigbeeShow(bool json) // Sensors bool temperature_ok = device.validTemperature(); + bool tempareture_target_ok = device.validTemperatureTarget(); + bool th_setpoint_ok = device.validThSetpoint(); bool humidity_ok = device.validHumidity(); bool pressure_ok = device.validPressure(); - if (temperature_ok || humidity_ok || pressure_ok) { + if (temperature_ok || tempareture_target_ok || th_setpoint_ok || humidity_ok || pressure_ok) { WSContentSend_P(PSTR("┆")); if (temperature_ok) { char buf[12]; dtostrf(device.temperature / 10.0f, 3, 1, buf); WSContentSend_PD(PSTR(" ☀️ %s°C"), buf); } + if (tempareture_target_ok) { + char buf[12]; + dtostrf(device.temperature_target / 10.0f, 3, 1, buf); + WSContentSend_PD(PSTR(" 🎯 %s°C"), buf); + } + if (th_setpoint_ok) { + WSContentSend_PD(PSTR(" ⚙️ %d%%"), device.th_setpoint); + } if (humidity_ok) { WSContentSend_P(PSTR(" 💧 %d%%"), device.humidity); }