Switch On/Off
The Z-Wave certified Switch On/Off application shows a switch implementation, that turns on any device that is connected to power. Examples include lights, appliances, etc.
Configuration
| |
| Role Type | Always On End device (AOS) |
| Supporting Device Type | Actuator |
| Device Type | Binary Switch |
| Generic Type | Switch Binary |
| Specific Type | Not Used |
| Requested security keys | S0, S2_UNAUTHENTICATED, and S2_AUTHENTICATED |
Supported Command Classes
The Switch On/Off application implements mandatory and some optional command classes. The table below lists the supported Command Classes, their version, and their required Security class.
| Command Class | Version | Required Security Class |
| Association | 2 | Highest granted Security Class |
| Association Group Info | 3 | Highest granted Security Class |
| Basic | 2 | Highest granted Security Class |
| Binary Switch | 2 | Highest granted Security Class |
| Device Reset Locally | 1 | Highest granted Security Class |
| Firmware Update Meta Data | 5 | Highest granted Security Class |
| Indicator | 3 | Highest granted Security Class |
| Manufacturer Specific | 2 | Highest Granted Security Class |
| Multi-Channel Association | 3 | Highest granted Security Class |
| Powerlevel | 1 | Highest granted Security Class |
| Security 0 | 1 | None |
| Security 2 | 1 | None |
| Supervision | 1 | None |
| Transport Service | 2 | None |
| Version | 3 | Highest granted Security Class |
| Z-Wave Plus Info | 2 | None |
Basic Command Class mapping
Basic Command Class is mapped to Binary Switch CC
| Basic Command | Mapped Command |
| Basic Set (Value) | Binary Switch Set (Value) |
| Basic Report (Current Value, Duration) | Binary Switch Report (Value, Duration) |
Association Group configuration
| ID | Name | Node Count | Description |
| 1 | Lifeline | X |
Supports the following command classes:
-
Device Reset Locally: triggered upon reset.
-
Binary Switch Report: Triggered when the switch changes state.
-
Indicator Report: Triggered when LED1 changes state.
|
X: For Z-Wave node count is equal to 5 and for Z-Wave Long Range it is 1.
Usage on Linux platform - zwave_soc_switch_on_off
Application uses single character commands read from standard input.
| Character | Description |
| 1 | Toggle switch on/off |
| 2 | Send Included NIF |
User Interface on the DKNCZ20 board
Buttons
| Button | Action | Description |
| BTN0 | Press | Resets the chip. |
| BTN1 | Press | Toggles learn mode. |
| Hold (5sec) | Resets the application to factory settings. |
| BTN2 | Press | Toggles the state of the switch. |
LEDs
| LED | Behavior | Description |
| Green | Flashing | Learn mode is active. |
| Off | Learn mode is inactive. |
| Blue | On | The switch is turned on. |
| Off | The switch is turned off. |