Are you shure ?
I have the following Rule (for testing):
rule "sunset check"
when
Channel 'astro:sun:local:set#event' triggered
or Channel 'astro:sun:local:noon#event' triggered
or Channel 'astro:sun:local:rise#event' triggered
or Channel 'astro:sun:stowing3:astroDusk#event' triggered
or Channel 'astro:sun:local:civilDusk#event' triggered
or Channel 'astro:sun:local:nauticDusk#event' triggered
or Channel 'astro:sun:local:astroDusk#event' triggered
or Channel 'astro:sun:local:daylight#event' triggered
or Channel 'astro:sun:local:noon#event' triggered
or Channel 'astro:sun:stowing1:noon#event' triggered START
or Channel 'astro:sun:stowing2:noon#event' triggered
or Channel 'astro:sun:stowing3:noon#event' triggered
or Channel 'astro:sun:local:rise#event' triggered
or Channel 'astro:sun:local:morningNight#event' triggered
or Channel 'astro:sun:local:astroDawn#event' triggered
or Channel 'astro:sun:local:nauticDawn#event' triggered
or Channel 'astro:sun:local:night#event' triggered
then
// val String ruleTitle="event::getCanonicalName()"
logInfo( "sunset Check", "INFO: receivedEvent.class.getCanonicalName() --> [{}], Event = '{}'", receivedEvent.class.getCanonicalName(), receivedEvent.getEvent() )
logInfo( "sunset Check", "INFO: receivedEvent.channel.toString() --> [{}], Event = '{}'", receivedEvent.channel.toString(), receivedEvent.getEvent() )
logInfo( "sunset Check", "INFO: receivedEvent.channel.toString() --> [{}], Event = '{}'", receivedEvent.channel.toString(), receivedEvent.getEvent.toString() )
val channelevent = receivedEvent.getEvent()
logInfo( "sunset Check", "INFO: Channel Event = '{}'", channelevent )
val channelname = receivedEvent.channel.toString()
logInfo( "sunset Check", "INFO: Channel Name = '{}'", channelname )
val channelthingUID = receivedEvent.channel.thingUID.toString()
logInfo( "sunset Check", "INFO: Channel UID = '{}'", channelthingUID )
val channelID = receivedEvent.channel.id.toString()
logInfo( "sunset Check", "INFO: Channel ID = '{}'", channelID )
logInfo( "sunset Check", "INFO: receivedEvent.channel.toString() Line 37 --> [{}], receivedEvent = '{}'", receivedEvent.channel.toString(), receivedEvent)
// logInfo( "sunset Check", "INFO: receivedEvent.channel.toString() Line 40 --> [{}], Event = '{}'", receivedEvent.class.getCanonicalName.toString().split(".").get(5), receivedEvent.getEvent() ) // geht so nicht - doesn't work either
// val channelState = receivedEvent.getStatusInfo // geht so nicht - doesn't work either
// logInfo( "sunset Check", "INFO: Channel Status Line 42 = '{}'", channelState ) // geht so nicht - doesn't work either
val triggerEvent_split = receivedEvent.toString
logInfo( "sunset Check", "INFO: Trigger Line 42 = '{}'", triggerEvent_split )
logInfo( "sunset Check", "INFO: Thing Type Line 43 = '{}'", triggerEvent_split.split(":").get(1))
logInfo( "sunset Check", "INFO: Thing Name Line 44 = '{}'", triggerEvent_split.split(":").get(2))
logInfo( "sunset Check", "INFO: Thing Channel Line 45 = '{}'", triggerEvent_split.split(":").get(3))
logInfo( "sunset Check", "INFO: Thing Channel Line 46 = '{}'", triggerEvent_split.split(":").get(3).split(" ").get(0))
logInfo( "sunset Check", "INFO: Thing Channel Line 47 = '{}'", triggerEvent_split.split(":").get(3).split(" ").get(0).split("#").get(0))
val triggerEvent_split_3 = triggerEvent_split.split(":").get(3)
logInfo( "sunset Check", "INFO: Split_3 ID Line 49 = '{}'", triggerEvent_split_3 )
end
and in the third logInfo I used the above command and the Rule triggers and shows the following in the Logger:
2019-08-23 17:15:00.471 [INFO ] [.smarthome.model.script.sunset Check] - INFO: receivedEvent.class.getCanonicalName() --> [org.eclipse.smarthome.core.thing.events.ChannelTriggeredEvent], Event = 'START'
2019-08-23 17:15:00.478 [INFO ] [.smarthome.model.script.sunset Check] - INFO: receivedEvent.channel.toString() --> [astro:sun:stowing1:noon#event], Event = 'START'
2019-08-23 17:15:00.486 [INFO ] [.smarthome.model.script.sunset Check] - INFO: receivedEvent.channel.toString() --> [astro:sun:stowing1:noon#event], Event = 'START'
2019-08-23 17:15:00.489 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Channel Event = 'START'
2019-08-23 17:15:00.496 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Channel Name = 'astro:sun:stowing1:noon#event'
2019-08-23 17:15:00.505 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Channel UID = 'astro:sun:stowing1'
2019-08-23 17:15:00.511 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Channel ID = 'noon#event'
2019-08-23 17:15:00.518 [INFO ] [.smarthome.model.script.sunset Check] - INFO: receivedEvent.channel.toString() Line 37 --> [astro:sun:stowing1:noon#event], receivedEvent = 'astro:sun:stowing1:noon#event triggered START'
2019-08-23 17:15:00.522 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Trigger Line 42 = 'astro:sun:stowing1:noon#event triggered START'
2019-08-23 17:15:00.528 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Thing Type Line 43 = 'sun'
2019-08-23 17:15:00.534 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Thing Name Line 44 = 'stowing1'
2019-08-23 17:15:00.539 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Thing Channel Line 45 = 'noon#event triggered START'
2019-08-23 17:15:00.548 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Thing Channel Line 46 = 'noon#event'
2019-08-23 17:15:00.556 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Thing Channel Line 47 = 'noon'
2019-08-23 17:15:00.561 [INFO ] [.smarthome.model.script.sunset Check] - INFO: Split_3 ID Line 49 = 'noon#event triggered START'
The third INFO is the one used with receivedEvent.getEvent.toString() Command
I upgraded from 2.5.M1 to 2.5.M2 too. So for me it seems to work