openhab-core
openhab-core copied to clipboard
Enhance openhab-core to access thing properties via rule for virtual items
As proposed by Kai Kreuzer in the openhab-addons issue #9491 it would be great to have access to the thing property from the openhab rules in order to populate virtual items with thing properties.
var ThingUID = Java.type("org.openhab.core.thing.ThingUID");
var thing = things.get(new ThingUID('http:url:625adb1b4b'));
var firmwareVersion = thing.getProperties().get('firmwareVersion');
Isn't this what you want/need?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.