Distinguishing between Channel & Item event in JS rules

Hi Rich,
thanks for the suggestion.

Tried that immediately. Tried to link an item to the channel “astro:sun:home:set#event (Trigger)”, but got error message that “No profile is available” for this channel" whatever ‘type’ I use.

This was already discusssed long time ago here Astro binding: Cannot create item from thing for Range event (there is no profile available for the selected item) - #6 by rossko57

So I’m a bit lost with your suggestion

Thx
Gerry