Hallo Rudi,
zu 3) Sorry. $EVTPART2 habe ich logischer Weise weggelassen. Da kam ich wegen $EVTPART1/usw in der Ankündigung drauf...
zu 2) Stimmt. on-for-timer x funktioniert ohne $EVTPART2 ;)
zu 1) "*" war richtig. Ich habe einfach mal 4 Versionen von notify angelegt:
define notify_test1 notify .* {Log 1, "notify_test1: $NAME, $TYPE, $EVENT, $EVTPART0, $EVTPART1"}
define notify_test2 notify .* {Log 1, "notify_test2: %NAME, %TYPE, %EVENT, %EVTPART0, %EVTPART1"}
define notify_test3 notify * {Log 1, "notify_test3: $NAME, $TYPE, $EVENT, $EVTPART0, $EVTPART1"}
define notify_test4 notify * {Log 1, "notify_test4: %NAME, %TYPE, %EVENT, %EVTPART0, %EVTPART1"}
cmd line: set z_FS20_ST1 on; set z_FS20_ST1 on-for-timer 10
Log files:
2013.03.26 19:06:46 3: FS20 set z_FS20_ST1 on
2013.03.26 19:06:46 3: notify_test1 return value: Global symbol "$EVTPART1" requires explicit package name at (eval 737) line 1.
2013.03.26 19:06:46 1: notify_test2: z_FS20_ST1, FS20, on, on, %EVTPART1
2013.03.26 19:06:46 3: notify_test3 return value: Global symbol "$EVTPART1" requires explicit package name at (eval 739) line 1.
2013.03.26 19:06:46 1: notify_test4: z_FS20_ST1, FS20, on, on, %EVTPART1
2013.03.26 19:06:46 3: FS20 set z_FS20_ST1 on-for-timer 10
2013.03.26 19:06:46 1: notify_test1: global, Global, DEFINED z_FS20_ST1_timer, DEFINED, z_FS20_ST1_timer
2013.03.26 19:06:46 1: notify_test2: global, Global, DEFINED z_FS20_ST1_timer, DEFINED, z_FS20_ST1_timer
2013.03.26 19:06:46 1: notify_test3: global, Global, DEFINED z_FS20_ST1_timer, DEFINED, z_FS20_ST1_timer
2013.03.26 19:06:46 1: notify_test4: global, Global, DEFINED z_FS20_ST1_timer, DEFINED, z_FS20_ST1_timer
2013.03.26 19:06:46 1: notify_test1: z_FS20_ST1, FS20, on-for-timer 10, on-for-timer, 10
2013.03.26 19:06:46 1: notify_test2: z_FS20_ST1, FS20, on-for-timer 10, on-for-timer, 10
2013.03.26 19:06:47 1: notify_test3: z_FS20_ST1, FS20, on-for-timer 10, on-for-timer, 10
2013.03.26 19:06:47 1: notify_test4: z_FS20_ST1, FS20, on-for-timer 10, on-for-timer, 10
MfG Groby