Using Yeelights with Hue Hub and dimmer switches

I’ve got some Yeelight colour bulbs and light strips and I’ve got a Hue hub and a few Hue dimmer switches which I want to use to control my Yeelights. Will this be relatively easy with diyHue?

I tried Home Assistant and managed to get it to recognise all the hardware and I could toggle the lights on/off from the browser interface but I couldn’t work out how to associate the switches with the lights, let alone how to assign different functions to the various buttons on the switches and then make them trigger different functions depending on whether they were tapped or held.