Trigger in jython for astro event channel

I can’t figure out how I’d create a trigger for an astro event in jython. In other words, how does the following trigger:

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

Translate into jython?

I guess I’d need something like this:

class EventTrigger(Trigger):
    def __init__(self, eventSource, eventTypes, eventTopic, triggerName):
        Trigger.__init__(self, triggerName, "core.GenericEventTrigger", Configuration({
                "eventTopic": eventTopic,
                "eventSource": eventSource,
                "eventTypes": eventTypes

but what do I need for eventTopic, eventSource and eventType?

Thanks for any hints.

Looking at the ChannelTrigger.json file, there is this:


It looks like the eventSource is the channel identifier and it shows the values for eventTopic and eventTypes. It’s a hint, but I haven’t confirmed it in a running system yet.

That’s it. with e.g. channelUID=“astro:sun:home:rise#event” the trigger worked.
Thanks a lot.