How to use groupItem.state in rule?

I have a 24V power supply (on a KNX actor) that I want to switch off if no lights (on DALI) are on. So I have made the following items:

Group:Dimmer:MAX g24Volt

Dimmer Licht_LED1 "Lichtleiste A [%d %%]" (g24Volt) { knx="1/1/1,1/1/2,1/1/3+1/1/4" }
Dimmer Licht_LED2 "Lichtleiste B [%d %%]" (g24Volt) { knx="1/1/5,1/1/6,1/1/7+1/1/8" }

and this rule

rule "rTrafoAusEin"
when
  Item g24Volt changed
then
  if (g24Volt.state > 0 ) {
    Licht_Trafo.sendCommand(ON)
  } else {
    Licht_Trafo.sendCommand(OFF)
  }
end

But the rule never gets executed. I do not see my mistake? Can anybody spot the error?

please try if((g24Volt.state as Number) > 0) instead.

Thank you - it works !