published host, ipAddress, fwVersion, and serverId to MQTT #167

This commit is contained in:
Robert Strouse 2023-10-06 09:11:17 -07:00
parent 31dd12d90f
commit bbebc22bb9
2 changed files with 4 additions and 0 deletions

View file

@ -193,6 +193,10 @@ bool MQTTClass::connect() {
Serial.print("Successfully connected MQTT client ");
Serial.println(this->clientId);
this->publish("status", "online", true);
this->publish("ipAddress", settings.IP.ip.toString().c_str(), true);
this->publish("host", settings.hostname, true);
this->publish("firmware", settings.fwVersion, true);
this->publish("serverId", settings.serverId, true);
somfy.publish();
this->subscribe("shades/+/target/set");
this->subscribe("shades/+/tiltTarget/set");