Tuya ZN2S-RS02E
Model | ZN2S-RS02E |
Vendor | Tuya |
Description | Two gang switch with colored backlight modes |
Exposes | switch (state), backlight_mode, indicator_mode, power_on_behavior, child_lock, on_color, off_color, countdown_l1, countdown_l2 |
Picture | ![]() |
Exposes
Switch
The current state of this switch is in the published state under the state
property (value is ON
or OFF
). To control this switch publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"state": "ON"}
, {"state": "OFF"}
or {"state": "TOGGLE"}
. To read the current state of this switch publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get
with payload {"state": ""}
.
Switch (l1 endpoint)
The current state of this switch is in the published state under the state_l1
property (value is ON
or OFF
). To control this switch publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"state_l1": "ON"}
, {"state_l1": "OFF"}
or {"state_l1": "TOGGLE"}
. To read the current state of this switch publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get
with payload {"state_l1": ""}
.
Switch (l2 endpoint)
The current state of this switch is in the published state under the state_l2
property (value is ON
or OFF
). To control this switch publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"state_l2": "ON"}
, {"state_l2": "OFF"}
or {"state_l2": "TOGGLE"}
. To read the current state of this switch publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get
with payload {"state_l2": ""}
.
Backlight mode (binary)
Backlight mode. Value can be found in the published state on the backlight_mode
property. It's not possible to read (/get
) this value. To write (/set
) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"backlight_mode": NEW_VALUE}
. If value equals ON
backlight mode is ON, if OFF
OFF.
Indicator mode (binary)
Indicator mode. Value can be found in the published state on the indicator_mode
property. It's not possible to read (/get
) this value. To write (/set
) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"indicator_mode": NEW_VALUE}
. If value equals ON
indicator mode is ON, if OFF
OFF.
Power-on behavior (enum)
Controls the behavior when the device is powered on after power loss. Value can be found in the published state on the power_on_behavior
property. It's not possible to read (/get
) this value. To write (/set
) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"power_on_behavior": NEW_VALUE}
. The possible values are: off
, previous
, on
.
Child lock (binary)
Child lock. Value can be found in the published state on the child_lock
property. It's not possible to read (/get
) this value. To write (/set
) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"child_lock": NEW_VALUE}
. If value equals ON
child lock is ON, if OFF
OFF.
On color (enum)
ON color. Value can be found in the published state on the on_color
property. It's not possible to read (/get
) this value. To write (/set
) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"on_color": NEW_VALUE}
. The possible values are: red
, blue
, green
, white
, yellow
, magenta
, cyan
, warm_white
, warm_yellow
.
Off color (enum)
OFF color. Value can be found in the published state on the off_color
property. It's not possible to read (/get
) this value. To write (/set
) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"off_color": NEW_VALUE}
. The possible values are: red
, blue
, green
, white
, yellow
, magenta
, cyan
, warm_white
, warm_yellow
.
Countdown l1 (numeric)
Countdown for l1. Value can be found in the published state on the countdown_l1
property. It's not possible to read (/get
) this value. To write (/set
) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"countdown_l1": NEW_VALUE}
. The minimal value is 0
and the maximum value is 86400
. The unit of this value is s
.
Countdown l2 (numeric)
Countdown for l2. Value can be found in the published state on the countdown_l2
property. It's not possible to read (/get
) this value. To write (/set
) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set
with payload {"countdown_l2": NEW_VALUE}
. The minimal value is 0
and the maximum value is 86400
. The unit of this value is s
.