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

[ism8] Prevent sending for read-only channel types #17760

Merged
merged 2 commits into from
Nov 30, 2024

Conversation

holgerfriedrich
Copy link
Member

@holgerfriedrich holgerfriedrich commented Nov 17, 2024

ISM8 binding defines a few read-only channel types, e.g. switch-r.

With this PR, commands from sitemap elements will not be sent to ISM8 when read-only channel types are used.
Auto-update policy is set to veto to prevent state change.
One missing readonly attribute added (mode-r).

Commands from sitemap elements will not be sent to ISM8 when
read-only channel types are used.
Auto-update policy is set to veto to prevent state change.

Signed-off-by: Holger Friedrich <[email protected]>
@holgerfriedrich holgerfriedrich added enhancement An enhancement or new feature for an existing add-on additional testing preferred The change works for the pull request author. A test from someone else is preferred though. labels Nov 17, 2024
@holgerfriedrich holgerfriedrich removed the additional testing preferred The change works for the pull request author. A test from someone else is preferred though. label Nov 30, 2024
@holgerfriedrich
Copy link
Member Author

Additional testing done on live system. I works as expected.

…ding/ism8/internal/Ism8Handler.java

Signed-off-by: lsiepel <[email protected]>
@lsiepel lsiepel merged commit 3187b01 into openhab:main Nov 30, 2024
5 checks passed
@lsiepel lsiepel added this to the 4.3 milestone Nov 30, 2024
@holgerfriedrich holgerfriedrich deleted the pr-ism8-ro branch November 30, 2024 21:39
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Dec 16, 2024
* [ism8] Prevent sending for read-only channel types

Signed-off-by: Holger Friedrich <[email protected]>
cipianpascu pushed a commit to cipianpascu/openhab-addons that referenced this pull request Jan 2, 2025
* [ism8] Prevent sending for read-only channel types

Signed-off-by: Holger Friedrich <[email protected]>
Signed-off-by: Ciprian Pascu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants