Skip to content

[shelly] Fix "duplicate id" in device log#20092

Closed
markus7017 wants to merge 2 commits intoopenhab:mainfrom
markus7017:shelly_fixduplid
Closed

[shelly] Fix "duplicate id" in device log#20092
markus7017 wants to merge 2 commits intoopenhab:mainfrom
markus7017:shelly_fixduplid

Conversation

@markus7017
Copy link
Copy Markdown
Contributor

@markus7017 markus7017 commented Jan 18, 2026

This PR changes the generation of RPC message.src and message.id to avoid "duplicate id" messages in the device log cause by overlapping http requests. In addition message.jsonrpc will be set to "2.0" according to the latest API spec.

@Nadahar I'm starting to carve-out self-contained PRs from the mDNS one to make merging easier (and in fact the changes here do are not in scope of mDNS fixing)

Signed-off-by: Markus Michels <markus7017@gmail.com>
@markus7017 markus7017 self-assigned this Jan 18, 2026
@markus7017 markus7017 requested a review from Nadahar January 18, 2026 08:55
@markus7017 markus7017 added the bug An unexpected problem or unintended behavior of an add-on label Jan 18, 2026
requested id includes "ohshelly-<id>-<request id>"

Signed-off-by: Markus Michels <markus7017@gmail.com>
@markus7017
Copy link
Copy Markdown
Contributor Author

inconsistent PR

@markus7017 markus7017 closed this Jan 18, 2026
@markus7017 markus7017 removed the request for review from Nadahar January 18, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An unexpected problem or unintended behavior of an add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant