The shelly gen2 uses rpc channel to switch the device, so the topic is totally different.
There is an example here which should be similar
and the shelly docs here