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

Issue with sending Tristate messages #65

Open
owainlloyd opened this issue Jan 1, 2022 · 0 comments
Open

Issue with sending Tristate messages #65

owainlloyd opened this issue Jan 1, 2022 · 0 comments

Comments

@owainlloyd
Copy link

owainlloyd commented Jan 1, 2022

Just upgraded to the OH3 and took new binding. I have some cheap sockets that use the TriState type. Old binding use to work sending messages but the new one no longer works. I was using a very old version 2.3.0.

Taking a look it looks like in the buildmessage in RfLinkBaseMessage.java there is an assumption that the channel should be a 8 character string where as for Tristate its only 6 characters.

eg the message being send is 10;TriState;0082aaa1;10;ON; when it should be 10;TriState82aaa1;10;ON
I've tested this by sending the commands directly and the later on does work.

In the 2.3.0 version there isnt the use the mask. Looks like it was increased from 6 to 8 as part of issue #23 by @johnjore

I'm going to do a quick fix on a local version to change the mask back to 6 but might need some help getting a more permanent fix in the code as I'm VERY rusty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant