Channnel triggers

I have been playing around with the JSR223 port to openHAB2. In this work I wanted to make som classes that could monitor events from a specific item. For instance a Ubiquiti Wifi Client. I can easily create triggers for each item I want to monitor. Instead I wanted just to indicate the name of the thing and then let my jython script trigger on the relevant channels. In the JSR223 thread there was an discussion about this, related to the astro events:

rule "example trigger rule"
when
    Channel 'astro:sun:home:rise#event' triggered START 
then
...

That works excellent, but I haven’t found other bindings where (I can trigger on a channel, I have tried in a rule).
Question is: Is it meant to be possible to trigger channel events in general? Should it be possible to trigger that a Zwave channel changes state?

The ability to trigger on a channel trigger is not a general capability and is something that is built into the binding. To my knowledge, the only bindings that implement channel triggers are Astro and Amazon Dash Button.

Thx, I guessed that was the case :slight_smile:

1 Like