Trident IoT Z-Wave SDK
Loading...
Searching...
No Matches
Power Strip sample application

Power Strip

The Z-Wave certified Power Strip application shows an extension block implementation used to turn on several devices that are connected to power. Examples include lights, appliances, etc.

The Power Strip Z-Wave certified application implements several endpoints, which can be controlled individually.

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
Endpoint 1 Device Type Binary Switch
Endpoint 1 Generic Type Switch Binary
Endpoint 1 Specific Type Not Used
Endpoint 2 Device Type Multilevel Switch
Endpoint 2 Generic Type Switch Multilevel
Endpoint 2 Specific Type Not Used

Power Strip supports the "push mode" only of Notification CC and transmits the following notification types/events:

  • Power Management
    • Overload detected (both endpoint 1 and 2)

Supported Command Classes

The Power Strip application implements mandatory and some optional command classes. The table below lists the supported command classes, their version, and their required Security class, if any.

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
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 4 Highest Granted Security Class
Multi-Channel Association 3 Highest Granted Security Class
Notification 8 Highest Granted Security Class
Powerlevel 1 Highest Granted Security Class
Security 0 1 None
Security 2 1 None
Supervision 1 None
Switch Binary 2 Highest Granted Security Class
Transport Service 2 None
Version 3 Highest Granted Security Class
Z-Wave Plus Info 2 None

Supported Command Classes: Endpoint 1

Endpoint 1 implements the following command classes.

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
Multi-Channel Association 3 Highest Granted Security Class
Notification 8 Highest Granted Security Class
Security 0 1 None
Security 2 1 None
Supervision 1 None
Switch Binary 2 Highest Granted Security Class
Z-Wave Plus Info 2 None

Supported Command Classes: Endpoint 2

Endpoint 2 implements the following command classes.

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
Multi-Channel Association 3 Highest Granted Security Class
Notification 8 Highest Granted Security Class
Security 0 1 None
Security 2 1 None
Supervision 1 None
Multilevel Switch 4 Highest Granted Security Class
Z-Wave Plus Info 2 None

Basic Command Class mapping

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

Endpoin Basic Command Mapped Command
1 Basic Set (Value) Binary Switch Set (Value)
1 Basic Report (Current Value, Duration) Binary Switch Report (Value, Duration)
2 Basic Set (Value) Multilevel Switch Set (Value)
2 Basic Report (Current Value, Duration) Multilevel Switch Report (Value, Duration)

Association Group configuration

The following three tables show the available association groups for Z-Wave and Z-Wave Long Range respectively. Backward compatibility for non-Multi Channel devices forces the root device AGI table to contain all the association groups mentioned in each of the endpoints AGI tables except from group 1, the Lifeline group.

Association Group configuration: Root Device

IDNameNode CountDescription
1LifelineX

Supports the following command classes:

  • Device Reset Locally: triggered upon reset.
  • Binary Switch Report: Triggered when the switch changes state.
  • Notification: triggered by the endpoints
  • Indicator Report: Triggered when LED1 changes state.
2alarm EP 1YMirror of endpoint 1, group 2
3alarm EP 2YMirror of endpoint 2, group 2

X: For Z-Wave node count is equal to 5 and for Z-Wave Long Range it is 1.

Y: For Z-Wave node count is equal to 5 and for Z-Wave Long Range it is 0.

Association Group configuration: Endpoint 1

IDNameNode CountDescription
1Lifeline0

Supports the following command classes:

  • Binary Switch Report: Triggered when the switch changes state.
  • Notification: triggered by the endpoints
2alarm EP 1YNotification report on overload.

Y: For Z-Wave node count is equal to 5 and for Z-Wave Long Range it is 0.

Association Group configuration: Endpoint 2

IDNameNode CountDescription
1Lifeline0

Supports the following command classes:

  • Multilevel Switch Report: Triggered when the switch changes state.
  • Notification: triggered by the endpoints
2alarm EP 2YNotification report on overload.

Y: For Z-Wave node count is equal to 5 and for Z-Wave Long Range it is 0.

Usage on Linux platform - zwave_soc_power_strip

Application uses single character commands read from standard input.

Character Description
1 Outlet 1 toggle on/off
2 Outlet 2 dim/on/off
3 Dim up/down start
4 Dim up/down stop
5 Toggle notification every 30 sec

User Interface on the DKNCZ20 board

Buttons

ButtonActionDescription
BTN0PressResets the chip.
BTN1PressToggles learn mode.
Hold (5sec)Resets the application to factory settings.
Release (after 300 ms)Send application notification event

LEDs

LEDBehaviorDescription
GreenFlashingLearn mode is active.
OffLearn mode is inactive.
REDOnDimming outlet2 up/down.
OffOutlet2 is off.
BLUEOnOutlet1 is on.
OffOutlet 1 is off.