We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dear community,
in order to analyze all things in my scripts, I need something like things.getAll().
things.getAll()
See https://www.openhab.org/javadoc/latest/org/openhab/core/thing/thingregistry 🚀
Are you planning to integrate it?
The text was updated successfully, but these errors were encountered:
This probably doesn't need to be implemented as part of the library itself. You can do the following right now:
const thingRegistry = osgi.getService('org.openhab.core.thing.ThingRegistry'); const allThings = thingRegistry.getAll();
That will give you a Java Set I think. If you need to you can convert it to a JS Array
const jsAllThings = utils.javaSetToJsArray(allThings);
If I'm wrong and it's a List, well there's a javaListToJsArray function too.
Sorry, something went wrong.
florian-h05
Successfully merging a pull request may close this issue.
Dear community,
in order to analyze all things in my scripts, I need something like
things.getAll()
.See https://www.openhab.org/javadoc/latest/org/openhab/core/thing/thingregistry 🚀
Are you planning to integrate it?
The text was updated successfully, but these errors were encountered: