It maybe that the change is only superficial and the name change is handled by HA’s gui. Events all is the raw event feed so you may just need to use the discovered device names.
This is the way that multiple devices are handled with a raw feed.
[{"id":"8ba05ea79810b838","type":"server-events","z":"0a325c35fc29f44e","name":"All shelly clicks","server":"6b1110b5.183a4","version":3,"exposeAsEntityConfig":"","eventType":"shelly.click","eventData":"","waitForRunning":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"eventData"}],"x":260,"y":4300,"wires":[["23cd128f34d9e047"]]},{"id":"23cd128f34d9e047","type":"switch","z":"0a325c35fc29f44e","name":"which device","property":"payload.event.device","propertyType":"msg","rules":[{"t":"eq","v":"device 1 #","vt":"str"},{"t":"eq","v":"device 2 #","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":470,"y":4300,"wires":[["4ce5dafe9fbe2f41"],["aeedd9bd3fa402b9"]]},{"id":"4ce5dafe9fbe2f41","type":"switch","z":"0a325c35fc29f44e","name":"which channel device 1","property":"payload.event.channel","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":730,"y":4260,"wires":[["1f39d6097684baf4"],[]]},{"id":"aeedd9bd3fa402b9","type":"switch","z":"0a325c35fc29f44e","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":670,"y":4340,"wires":[[]]},{"id":"1f39d6097684baf4","type":"switch","z":"0a325c35fc29f44e","name":"button press type","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":970,"y":4240,"wires":[[],[]]},{"id":"6b1110b5.183a4","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"id","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
Although mqtt not working does indicate there is a problem with the shelly firmware, perhaps it can be reflashed/ updated.