From 8f8203524817fa9e88eb00c360987b5fa3951f99 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Fri, 5 Jul 2019 22:28:08 -0700 Subject: [PATCH] degrees/percentage both become "value" for consistency --- src/shtshow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shtshow.cpp b/src/shtshow.cpp index 2b15925..e1805aa 100644 --- a/src/shtshow.cpp +++ b/src/shtshow.cpp @@ -121,10 +121,10 @@ void publishStates() { Homie.getLogger() << "temp: " << temp << ", humidity: " << rh << endl; tempNode.setProperty("unit").send(useFahrenheit ? "F" : "C"); - tempNode.setProperty("degrees").send(String(temp)); + tempNode.setProperty("value").send(String(temp)); humidityNode.setProperty("unit").send("RH"); - humidityNode.setProperty("percentage").send(String(rh)); + humidityNode.setProperty("value").send(String(rh)); } else { Homie.getLogger() << "SHT3XD error: " << result.error << endl; } @@ -152,9 +152,9 @@ void setup() { fahrenheitSetting.setDefaultValue(DEFAULT_FAHRENHEIT_FLAG); humidityNode.advertise("unit"); - humidityNode.advertise("percentage"); + humidityNode.advertise("value"); tempNode.advertise("unit"); - tempNode.advertise("degrees"); + tempNode.advertise("value"); Homie.setup(); publishTimerId = homieLoopTimer.setInterval(5000, publishStates);