Skip to content

[mqtt] Expose read-only trigger channels - #21449

Open
lsiepel wants to merge 1 commit into
openhab:mainfrom
lsiepel:mqtt-trigger-channel-metadata
Open

[mqtt] Expose read-only trigger channels#21449
lsiepel wants to merge 1 commit into
openhab:mainfrom
lsiepel:mqtt-trigger-channel-metadata

Conversation

@lsiepel

@lsiepel lsiepel commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Typed channels configured with trigger=true and without a commandTopic are now exposed as trigger channels. This allows framework consumers such as Main UI to distinguish them from state channels.

Typed trigger behavior remains backward compatible: incoming payloads are validated using the configured channel type before emitting a trigger event. Channels that also define a commandTopic retain state-channel metadata so linked Item commands can still be published to MQTT.

Adapted docs to:

  • Recommend Type trigger for untyped MQTT trigger events.
  • Explain the typed trigger=true behavior.
  • Document the command-capable hybrid case.
  • Clarify that Trigger String and Trigger Switch do not select an MQTT channel type and are unsupported.

Fixes: #19583

Disclaimer: tests and documentation created here with assistence from codex, supervised and reviewed by me, runtime code by me

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lsiepel
lsiepel requested a review from ccutrer as a code owner August 21, 2026 09:18
@lsiepel lsiepel added the bug An unexpected problem or unintended behavior of an add-on label Aug 21, 2026
@lsiepel
lsiepel requested a review from a team August 22, 2026 19:22
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.

[mqtt] Trigger channels created in .things file are not shown as such in Mailn UI

2 participants