Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[insteon] Fix x10 device message handling #18031

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

jsetton
Copy link
Contributor

@jsetton jsetton commented Jan 4, 2025

This change fixes the message handling for x10 device.

This includes 3 bug fixes:

  • X10Address house code is incorrect when instantiated with a message address byte. This is affecting the legacy implementation as well preventing incoming X10 messages from being processed by the binding.
  • X10Address failed to instantiate with a string based X10 address including a unit code with more than 1 digit (e.g. L.15). This is affecting the legacy implementation which rely on a string based address being parsed, opposed to the new one that has the house and unit configuration already separated.
  • X10 messages received by the binding weren't changing their associated feature query status causing a 30 seconds delay for a X10 command to be sent to the device, waiting for the initial X10 address request timeout. This is affecting the new implementation only.

This change should be back ported as the X10 integration is currently broken.

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/insteon-x10-setup-broke-after-update-to-4-3-1/161382/2

@jlaur jlaur added bug An unexpected problem or unintended behavior of an add-on additional testing preferred The change works for the pull request author. A test from someone else is preferred though. labels Jan 4, 2025
@lsiepel lsiepel marked this pull request as draft January 4, 2025 19:05
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
@jsetton jsetton marked this pull request as ready for review January 4, 2025 22:15
@jsetton
Copy link
Contributor Author

jsetton commented Jan 4, 2025

These fixes have been fully tested on the legacy and new implementation as per the community thread linked above.

@lsiepel lsiepel removed the additional testing preferred The change works for the pull request author. A test from someone else is preferred though. label Jan 4, 2025
@lsiepel lsiepel requested a review from a team January 4, 2025 22:50
Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@jlaur jlaur merged commit 11baab4 into openhab:main Jan 4, 2025
2 checks passed
@jlaur jlaur added this to the 5.0 milestone Jan 4, 2025
jlaur pushed a commit that referenced this pull request Jan 4, 2025
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
@jlaur jlaur added the patch A PR that has been cherry-picked to a patch release branch label Jan 4, 2025
@jsetton jsetton deleted the insteon-x10-fix branch January 4, 2025 23:45
GearrelW pushed a commit to GearrelW/openhab-addons that referenced this pull request Jan 12, 2025
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
chilobo pushed a commit to chilobo/openhab-addons that referenced this pull request Feb 10, 2025
Signed-off-by: Jeremy Setton <jeremy.setton@gmail.com>
Signed-off-by: Christian Koch <78686276+chilobo@users.noreply.github.com>
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 patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants