How to set the parameters of z wave devices with openzwave?

I want to turn a switch from “toggle” to “momentary”, to delete the energy displayed by a device at a given time, how to make associations, etc.