Create a flow to dim a lamp

I’m new to Homey and flows. I have problems with creating a flow for the divices below.

I have a zigbee dim-puck:

And a z-wave dim swich:

How would you create a flow to be able to dim a lamp from 0% to 100% (and back) and turn on/off the lamp?

Depends on your actual usecase.
If your device does not support such directly, it might be worth to have a look at the Chronograph app.
It can do transitions of capability values over time.

Are you sure it’s zigbee?

Yes, you ar right, the dim-puck is Zigbee. The remote switch is Z-Wave.