Z-Wave Shared MethodsThese methods are shared among non-controller Z-Wave Devices. For most systems, you won't need to use these methods, as the default configuration set up by the Virtual Wiring System works well. These methods are good for doing lower level device configuration, control and monitoring, and they are useful if you want to learn more about how Z-Wave devices work. Z-Wave Command MethodsThe following methods allow you to send low level Z-Wave commands to a device in the system. do_cmd method:The As an example, here is how one asks a device implementing the Basic Command Class for its state. The number for the Basic Command Class is 0x20. Getting state is done by the "get" command, which, for the Basic Command Class, is command number 2. The get command takes no parameters. If we assume our Device has ID "zwave_device", type into the system Console:
You should get back a successful response, like:
Go to the Log screen and look at the bottom. You will see something like this:
It is the result of your command. The log describes it as "Unhandled" because the system got a response it didn't ask for (you, the user, asked for it). do_class_set method:This method runs the The Z-Wave Informational MethodsThe following commands are used to display and acquire information about Z-Wave devices. get_zwave_info method:This method asks a Z-Wave Device to acquire device information from its Z-Wave device. It is used when a device's runtime information (supported command classes, for example) is not yet known by the Device and one wishes the Device to learn it. This method is handy when the Z-Wave device is offline during initialization. This method takes no parameters. zwave_info method:This method returns the information available about a Z-Wave device in a human readable string. Other Z-Wave Device Commandsassociate method:This associates the system controller with a Z-Wave device's groups. Associating the controller with a device allows the device to send the controller real time state changes. Not all devices support the Association Command Class, but when they do, associating a controller with a device's groups helps do away with the need to poll the device for state changes. This command is typically performed in a Device's installation Script, so there is usually no need to run it. queue_command method:The The
|