Toggle lights with one button; how to query ON/OFF state

What’s ‘action 2’? We don’t know the structure of your rule. Use the 'code tab. We still don’t know the type of the Item involved.

Example of usage here