BREAKING CHANGE: add dtu serial to mqtt status topics #304
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
+++WIP+++
When two OpenDTU devices are connected to one mqtt broker, it is not possible
to distinguish the status topics between these two devices.
The status topics are composed like
<base topic>/dtu/<status item>
example:
proposed solution:
insert dtu serial into the status topics like
<base topic>/dtu/<dtu serial>/<status item>
BUT:
what to do with the configurable LWT topic
solar/dtu/status
?I did not touch this yet. I see two options:
solar
/dtu/#SERIAL#/status
What do you think?