I an just evaluation some options and wondering how to retrieve the value of a ChannelEventTrigger.
Here the hello world sample extended to ChannelEventTrigger:
from core.rules import rule from core.triggers import ChannelEventTrigger @rule("Jython Hello World (CronTrigger extension with rule decorator)", description="This is an example rule using a CronTrigger extension and rule decorator", tags=["Example rule tag"]) class ExampleExtensionRule(object): def __init__(self): self.triggers = [ChannelEventTrigger("deconz:switch:d6dfbf93:ccccccfffe51c077011000:buttonevent").trigger] def execute(self, module, inputs): self.log.info("Hello World!") self.log.info(inputs['event'].getChannel())
I get the channel, but what is the inputs[‘event’] method to get the trigger value.
Unfortunately, the VSC autocompletion does not suggest here at all. Where to look to find the method list?
Can anybody help, please?