In JRuby:
received_command(LightSceneDSL) { |event| rules[event.command].run }
Or if you prefer a more traditional syntax
rule "Start a scene" do
received_command LightSceneDSL
run { |event| rules[event.command].run }
end
Or in a UI rule, setup the trigger and put this inside the script action
rules[event.command].run