How to set a zwave scene for a switch in Home Assistant

The easiest way is to use this blueprint that I made: Z-Wave 800 Series 2-1 Switch (On/Off & Dimmer) | Project Phoenix - #505 by rohan

You use to it make an automation and then assign the scenes to each of the commands in the blueprint.