Muteable doorbell with Shelly one

You can have a look at my solution with a Shelly 1 and muting the chime -> Make a dumb doorbell smart with Shelly 1
I use the Shelly API to set the button type to Detached to mute the chime and show that as a switch in HA. Maybe you can use that approach with MQTT as well?