mirror of https://github.com/arendst/Tasmota.git
parent
5e9fe677f3
commit
5af6c1baec
|
@ -749,7 +749,7 @@ void TuyaProcessStatePacket(void) {
|
|||
} else { res = Settings.flag2.temperature_resolution; }
|
||||
GetTextIndexed(sname, sizeof(sname), (fnId-71), kTuyaSensors);
|
||||
ResponseClear(); // Clear retained message
|
||||
Response_P(PSTR("{\"TuyaSNS\":{\"%s\":%s}}"), sname, dtostrfd(packetValue, res, tempval)); // sensor update is just on change
|
||||
Response_P(PSTR("{\"TuyaSNS\":{\"%s\":%s}}"), sname, dtostrfd(TuyaAdjustedTemperature(packetValue, res), res, tempval)); // sensor update is just on change
|
||||
MqttPublishPrefixTopicRulesProcess_P(TELE, PSTR(D_CMND_SENSOR));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue