How to control Xiaomi wired light switch through HA/Deconz?

I have a wired in Xiaomi smart switch that used to show up in Deconz as a light which could then be controlled through Home Assistant no problem. But after resetting my system mucking about, when I re-added it it seems to now be considered a switch. I can listen to events to know when the switch has been physically pressed but I don’t know how to activate it remotely so as to control the dumb light it’s wired to.

Please can anyone point me in the right direction? Thanks.

If the device in deconz has changed maybe the component needs to be updated as well. Can you enable debug and share logs of the device?