mirror of https://github.com/arendst/Tasmota.git
Merge pull request #9454 from s-hadinger/zigbee_trv_ui
Zigbee add TRV to UI
This commit is contained in:
commit
b63a7302f2
|
@ -1432,16 +1432,26 @@ void ZigbeeShow(bool json)
|
||||||
|
|
||||||
// Sensors
|
// Sensors
|
||||||
bool temperature_ok = device.validTemperature();
|
bool temperature_ok = device.validTemperature();
|
||||||
|
bool tempareture_target_ok = device.validTemperatureTarget();
|
||||||
|
bool th_setpoint_ok = device.validThSetpoint();
|
||||||
bool humidity_ok = device.validHumidity();
|
bool humidity_ok = device.validHumidity();
|
||||||
bool pressure_ok = device.validPressure();
|
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("<tr class='htr'><td colspan=\"4\">┆"));
|
WSContentSend_P(PSTR("<tr class='htr'><td colspan=\"4\">┆"));
|
||||||
if (temperature_ok) {
|
if (temperature_ok) {
|
||||||
char buf[12];
|
char buf[12];
|
||||||
dtostrf(device.temperature / 10.0f, 3, 1, buf);
|
dtostrf(device.temperature / 10.0f, 3, 1, buf);
|
||||||
WSContentSend_PD(PSTR(" ☀️ %s°C"), 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) {
|
if (humidity_ok) {
|
||||||
WSContentSend_P(PSTR(" 💧 %d%%"), device.humidity);
|
WSContentSend_P(PSTR(" 💧 %d%%"), device.humidity);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue