openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Enhance openhab-core to access thing properties via rule for virtual items

Open MS1982 opened this issue 3 years ago • 2 comments

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.

MS1982 avatar Dec 23 '20 19:12 MS1982

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?

J-N-K avatar May 12 '22 15:05 J-N-K

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.

stale[bot] avatar Jul 11 '22 17:07 stale[bot]