Closed henrythasler closed 1 month ago
Do I see it right that this change only has an impact on devices which have a /
in the maintopic?
Or will it break existing systems?
And can you also extend the documentation at https://github.com/jomjol/AI-on-the-edge-device/blob/rolling/param-docs/parameter-pages/MQTT/MainTopic.md please?
Do I see it right that this change only has an impact on devices which have a
/
in the maintopic? Or will it break existing systems?
It does only impact topics with multiple levels. To make this more clear, I have added a unit-test.
And can you also extend the documentation at https://github.com/jomjol/AI-on-the-edge-device/blob/rolling/param-docs/parameter-pages/MQTT/MainTopic.md please?
Done
Thanks!
Seems to work well:
homeassistant needs the MQTT discovery topic according to the following structure:
<discovery_prefix>/<component>/[<node_id>/]<object_id>/config
If the main topic is embedded in a nested structure, we just use the last part as node_id. This means a maintopichome/test/watermeter
is transformed to the discovery topichomeassistant/sensor/watermeter/...
fixes #1792