A switch is not controllable. A socket is.
I looked at your link but what is your configuration? Do you have one switch for two sockets?
Give us more details, what are the features in Gladys, Z2M?
In « Control a device » what other devices do you have available?