boc-tothefuture / openhab-jruby

JRuby Libraries for Openhab
Eclipse Public License 2.0
6 stars 9 forks source link

fix(actions): remove script_thing_actions.rb #616

Closed jimtng closed 1 year ago

jimtng commented 2 years ago

Fix #596 by not looking at THING_ACTIONS_MAP at all.

This is an alternative to #614

It assumes that the scope is just the first part of the thing uid. I have tried this on my production system and it seems to work. Would there be any situation where a thing may have multiple scopes? I haven't come across it.

Tested with the actions from these bindings: