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

Thing actions should have a unique id #17707

Closed
8 tasks
lolodomo opened this issue Nov 6, 2024 · 5 comments
Closed
8 tasks

Thing actions should have a unique id #17707

lolodomo opened this issue Nov 6, 2024 · 5 comments
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@lolodomo
Copy link
Contributor

lolodomo commented Nov 6, 2024

Bindings sometimes define several thing actions with the same method name leading to thing actions having the same id. It should be fixed. openhab/openhab-core#4438 allows defining action id not depending on method name and as a consequence allows avoidding thing actions with the same id when the same method name is used.

Bindings to be fixed:

All bindings from a until m were checked

@lolodomo lolodomo added the bug An unexpected problem or unintended behavior of an add-on label Nov 6, 2024
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Nov 6, 2024
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Nov 6, 2024
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Nov 6, 2024
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Nov 6, 2024
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Nov 6, 2024
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Nov 6, 2024
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Nov 6, 2024
@lolodomo
Copy link
Contributor Author

lolodomo commented Nov 7, 2024

I realise that the id, when it is not the method name, should be mentioned in the documentation as this id is required to run the REST API (run the action).

Laith-Budairi pushed a commit to Laith-Budairi/openhab-addons that referenced this issue Nov 7, 2024
@Laith-Budairi
Copy link
Contributor

is there still a need to do the mqtt binding too?

@lsiepel
Copy link
Contributor

lsiepel commented Nov 10, 2024

is there still a need to do the mqtt binding too?

There is another PR in core that generates these id’s automatically. So this makes the live of contributors and maintainers a little easier as we do not need to care about the id in the bindings.

@lolodomo
Copy link
Contributor Author

The need disappeared with the enhancement in progress in core framework.
But the discussion in the core PR revealed another issue that should be fixed in bindings: you must not define several classes with the same action scope. I know for example caddx or freeboxos doing that.
@J-N-K explained this constraint.

@lolodomo
Copy link
Contributor Author

I am know closing th me issue as the core PR fixing the problem has been merged.

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

No branches or pull requests

3 participants