Automation hue sensor error

I choose 3 lights for my Hue Sensor to turn on for 30 seconds when motion is detected, but I get an error that extra keys are not allowed, how do I fix this?