How to control on/off with alexa and emulated_hue on a switch?

I already have a running alexa setup with emulate_hue.

Now I have a switch that I want to trigger with alexa. So when I say “alexa, turn on the fountain”, I want it to be turned on IF it’s not already on. So I’m not looking for a toggle, but for a real on/off state send.

Is it possible that alexa get’s to know the state before it executes? Or would I have to create two scripts, and expose those scripts to alexa instead of the switch? And then each script can only send a switch.on or switch.off command?