I just tested this and it works
Trigger
Condition: lightIsOn object 159582 == "auto"
On activation: hint "lighton"
Of course, that doesn't actually tell you if the light is on or off, you'll have to do more work for that. But at least we have the syntax sorted out.
Now, do you know which light that is? First person with the correct answer wins a lifelong timeshare on a seafront villa in Moscow.
If you think long and hard you might get it first guess.