Google Assistant entity

Good morning,
I exposed from HA to Google Assistant an ESPHome switch operating an electromagnetic lock on my outdoor gate. To operate the gate I use on/off commands and it’s not how I want it. It would be good to use Open/Close in Google Assistant, but I can’t find a way to expose the switch as an entity that accepts Open/Close.
Am I missing something? Please advise.