The code has an object for GenericEventTrigger, but no easy way to use it from the trigger builder. Some addons add new event types, so being able to create triggers using GenericEventTrigger is helpful to access those events. JRuby does it via an event method on its rule builder object, and Python does it via a GenericEventTrigger object that can be passed to the triggers argument of the @rule decorator
Your Environment
- openHAB version used (check Main UI -> About): 5.1.0-SNAPSHOT
- openhab-js version used (run
console.log('openhab-js ' + utils.OPENHAB_JS_VERSION) from a JS script): none :)
- Operating System and version (e.g. desktop or mobile, Windows 10, Raspbian Buster, ...): Ubuntu 24.04
The code has an object for
GenericEventTrigger, but no easy way to use it from the trigger builder. Some addons add new event types, so being able to create triggers usingGenericEventTriggeris helpful to access those events. JRuby does it via aneventmethod on its rule builder object, and Python does it via aGenericEventTriggerobject that can be passed to thetriggersargument of the@ruledecoratorYour Environment
console.log('openhab-js ' + utils.OPENHAB_JS_VERSION)from a JS script): none :)