Mqtt discovery for ha (#323)
* MQTT discovery factoring * add DHT discovery * BME topic macro change * add sensors to ha discovery * correct a comment typo #327 * let the possibility at buildtime to don't publish service data * reduce string usage * change MQTT ONOFF actuator to ON OFF commands instead of true false * add ZactuatorONOFF discovery * add simple publishing for GPIO input * Add RF switch and gateway discovery
This commit is contained in:
1 parent
ed44418a7f
commit
133e9cd33a
21 files changed
+442
-201
No files matched your search
+3
-3
@@ -81,9 +81,9 @@ void MeasureINA226(){
|
||||
dtostrf(volt,6,3,volt_c);
|
||||
dtostrf(current,6,3,current_c);
|
||||
dtostrf(power,6,3,power_c);
|
||||
INA226data.set("Volt", (char *)volt_c);
|
||||
INA226data.set("Current", (char *)current_c);
|
||||
INA226data.set("Power", (char *)power_c);
|
||||
INA226data.set("volt", (char *)volt_c);
|
||||
INA226data.set("current", (char *)current_c);
|
||||
INA226data.set("power", (char *)power_c);
|
||||
pub(subjectINA226toMQTT,INA226data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user