Zwave dimmer brightness

I was able to turn my zwave dimmer on and off but I can't figure out how to dim the lights. Is there a simple sample that shows how to do so?

Figured it out...

Had to write two functions, one to have the dimmer go to 100% brightness when ON is voiced and one function to set a custom brightness when a percentage is voiced.