Skip to content

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Oct 13, 2025

I'm not seeing a clear way to get any sort of identifier for what user/connection sent a message in MatterBridge.java, so this only emits the package name without any actor information.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
@ccutrer ccutrer requested a review from digitaldan as a code owner October 13, 2025 22:35
@ccutrer ccutrer requested a review from florian-h05 October 13, 2025 22:37
Copy link
Contributor

@digitaldan digitaldan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, i don't see a cleaner way either short of creating a send(Item item, Command command) in the BaseDevice class and then sending a message on the event bus (like we do in scripting/rules), but that also introduces quite a bit of code/complexity just to tag commands with source.

@lsiepel lsiepel merged commit b474109 into openhab:main Oct 16, 2025
2 checks passed
@lsiepel lsiepel added this to the 5.1 milestone Oct 16, 2025
@lsiepel lsiepel added the enhancement An enhancement or new feature for an existing add-on label Oct 16, 2025
@ccutrer ccutrer deleted the matter-command-source branch October 16, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement or new feature for an existing add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants