Skip to content

Commit

Permalink
Add origin information to homeassistant MQTT discovery information.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAndi committed Jan 3, 2025
1 parent e8e95c6 commit 016f1f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/MqttApiTopicHandler/src/HomeAssistantMqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ void HomeAssistantMqtt::publishAutoDiscoveryInfo(MqttDiscoveryInfo& mqttDiscover
jsonDoc["dev"]["sw"] = Version::getSoftwareVersion();
/* HW version is used for the target name (hw_version). */
jsonDoc["dev"]["hw"] = Version::getTargetName();
/* Origin name */
jsonDoc["o"]["name"] = "Pixelix";
/* Origin URL */
jsonDoc["o"]["url"] = "https://github.com/BlueAndi/Pixelix";

while (discoveryDetailsIt != mqttDiscoveryInfo.discoveryDetails.as<JsonObjectConst>().end())
{
Expand Down

0 comments on commit 016f1f1

Please sign in to comment.