5iver
(Scott Rushworth)
October 9, 2018, 4:24pm
35
I’m happy to help, but there may be an issue in the latest snapshot. You will want to be on a recent snapshot or milestone build. This is where I suggest to start…
Scripts and modules for use with openHAB
… so you can use this…
I’ve pushed a major update to the openhab-scripters repo, with a number of changes to the openhab.triggers module, openhab.rules module, and updated the documentation. The biggest changes are a new rule decorator and a single unified trigger decorator that will work for (almost) all of the triggers available in the Rules DSL, and the trigger definitions should look familiar…
from openhab.rules import rule
from openhab.triggers import when
@rule("This is the name of a test rule")
@when("Item Te…