@tweedledope The static setup code can typically only be used once after each factory reset. You can generate a new temporary one by pressing "share device" or similar in the Matter controller that the device has already been added to.
And this is the code I'm using in FlicHub studio to handle the matter events for volume-up, volume-down, volume-set, toggle operations and preset handling.