Skip to content

Easy syntax for GenericEventTrigger triggers #481

Description

@ccutrer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions