Skip to content

[intesis] Fix type collision#20471

Open
lsiepel wants to merge 5 commits intoopenhab:mainfrom
lsiepel:intesis-fix-type
Open

[intesis] Fix type collision#20471
lsiepel wants to merge 5 commits intoopenhab:mainfrom
lsiepel:intesis-fix-type

Conversation

@lsiepel
Copy link
Copy Markdown
Contributor

@lsiepel lsiepel commented Mar 29, 2026

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lsiepel lsiepel requested a review from hmerk as a code owner March 29, 2026 12:37
@lsiepel lsiepel added bug An unexpected problem or unintended behavior of an add-on translation labels Mar 29, 2026
Copilot AI review requested due to automatic review settings March 29, 2026 12:37
@lsiepel lsiepel marked this pull request as draft March 29, 2026 12:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to resolve a channel-type ID collision in the Intesis binding that caused the errorStatus channel to end up with the wrong item type (see issue #19533), by splitting the conflicting channel types and adding an update instruction to migrate existing Things.

Changes:

  • Add an update description (thingTypeVersion + instruction.xml) to migrate errorStatus channel types.
  • Rename the colliding channel-type IDs into distinct errorStatusString and errorStatusSwitch.
  • Update Java handlers/constants and README to reflect the intended types per Thing.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/update/instruction.xml Adds migration instructions to change the errorStatus channel’s type.
bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/thing-types.xml Adds thingTypeVersion; renames the String errorStatus channel-type.
bundles/org.openhab.binding.intesis/src/main/resources/OH-INF/thing/dynamic-channels.xml Renames the Switch errorStatus channel-type.
bundles/org.openhab.binding.intesis/src/main/java/org/openhab/binding/intesis/internal/handler/IntesisHomeHandler.java Updates dynamic channel creation/state updates for errorStatus.
bundles/org.openhab.binding.intesis/src/main/java/org/openhab/binding/intesis/internal/handler/IntesisBoxHandler.java Updates state updates for errorStatus.
bundles/org.openhab.binding.intesis/src/main/java/org/openhab/binding/intesis/internal/IntesisBindingConstants.java Splits errorStatus constants into String/Switch variants.
bundles/org.openhab.binding.intesis/README.md Documents differing errorStatus item types per Thing type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
lsiepel added 2 commits March 29, 2026 16:47
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lsiepel lsiepel marked this pull request as ready for review March 29, 2026 16:15
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 translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[intesis] Channel errorStatus has wrong itemtype

3 participants