Binary Switch

Version supported : 2

Interview process

  1. Binary Switch Get

Command Class Commands

Binary Switch Set

Trigger on new desired value of STATE

Mapping between attribute store and Set command :

Z-Wave Attribute Store

Attribute State

Z-Wave Set Field

VALUE

Desired

Target Value

DURATION

Desired

Duration

Binary Switch Get

Trigger on undefined reported value of STATE

Binary Switch Report

Mapping between Report command and attribute store :

Z-Wave Command Attribute

Z-Wave Attribute Store

Current Value

VALUE

Target Value

VALUE

Duration

DURATION

Note

The structure of the attribute store is :

|__ STATE
    |__ VALUE
    |__ DURATION

Unify Clusters

UAM files

UAM File

Cluster

Comments

OnOff_to_BinarySwitch.uam

OnOff.xml

Used to control On/Off Binary Switch

Bindings

Z-Wave Attribute Store

Cluster attribute

Comments

VALUE

OnOff On/Off

Z-Wave <-> Cluster (Read/Write)

Command actions

Action

MQTT Topic

Comments

Turn On Switch

ucl/by-unid/+/+/OnOff/Commands/On {}

Will set VALUE to 255

Turn Off Switch

ucl/by-unid/+/+/OnOff/Commands/Off {}

Will set VALUE to 0

Toggle Switch

ucl/by-unid/+/+/OnOff/Commands/Toggle {}

Will toggle VALUE

Get On/Off Value

ucl/by-unid/+/+/OnOff/Attributes/OnOff/[Desired|Reported] {"value": 1}

0 is Off. 1 is On