Trident IoT Z-Wave SDK
Loading...
Searching...
No Matches
LED Bulb sample application

LED Bulb

The Z-Wave certified LED Bulb application shows an implementation of a remotely controlled color switch. An example is a LED bulb or any other color capable device.

Configuration

Role Type Always On End device (AOS)
Supporting Device Type Actuator
Device Type Color Switch
Generic Type Switch Multilevel
Specific Type Color Tunable Multilevel
Requested security keys S0, S2_UNAUTHENTICATED, and S2_AUTHENTICATED

Supported Command Classes

The LED Bulb 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
Color Switch 3 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
Multilevel Switch 4 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

The Basic Command Class is mapped according to the table below.

Basic Command Mapped Command
Basic Set (Value) Multilevel Switch Set (Value)
Basic Report (Current Value, Duration) Multilevel Switch Report (Value, Duration)

Association Group configuration

The following association groups shown in the table below are available for Z-Wave and Z-Wave Long Range respectively.

IDNameNode CountDescription
1LifelineX

Supports the following command classes:

  • Device Reset Locally: triggered upon reset.
  • Color Switch Report: Triggered when the switch changes state.
  • Multilevel 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_led_bulb

Application uses single character commands read from standard input.

Note: This application supports only general commands common for all applications.

User Interface on the DKNCZ20 board

Buttons

ButtonActionDescription
BTN0PressResets the chip.
BTN1PressToggles learn mode.
Hold (5sec)Resets the application to factory settings.

LEDs

LEDBehaviorDescription
GreenFlashingLearn mode is active.
OffLearn mode is inactive.
REDDimmingDimming red LED up/down.
OffRed LED is off.
BLUEDimmingDimming blueLED up/down.
OffBlue LED is off.