Skip to content

Commit

Permalink
Added node ID to discovery topic
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Nov 10, 2024
1 parent ab1227a commit 0d32d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BSB_LAN/include/mqtt_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ void mqtt_send_discovery(boolean create=true) {
appendStringBuffer(&sb_payload, "\"unit_of_measurement\":\"%s\",\"command_topic\":\"~/set\",\"command_template\":\"{{value}}\",", decodedTelegram.unit);
}
}
appendStringBuffer(&sb_topic, "%g-%d-%d-%d/config", line, cmdtbl[i].dev_fam, cmdtbl[i].dev_var, my_dev_id);
appendStringBuffer(&sb_topic, "BSB-LAN/%g-%d-%d-%d/config", line, cmdtbl[i].dev_fam, cmdtbl[i].dev_var, my_dev_id);
appendStringBuffer(&sb_payload, "\"device\":{\"name\":\"%s\",\"identifiers\":\"%s-%02X%02X%02X%02X%02X%02X\",\"manufacturer\":\"bsb-lan.de\",\"model\":\"" MAJOR "." MINOR "." PATCH "\"}}", MQTTTopicPrefix, MQTTTopicPrefix, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);

if (!create) {
Expand Down

0 comments on commit 0d32d3e

Please sign in to comment.