Zigbee2MQTTZigbee2MQTT
  • Getting started
  • Supported Adapters
  • Supported Devices
  • Installation
  • Configuration
  • Usage
  • FAQ
Devices
  • Zigbee

    • Zigbee network
    • Improve network range and stability
    • Sniff Zigbee traffic
    • Create a CC2530 router
  • Support new devices

    • Support new devices
    • Support new Tuya devices
    • Find Tuya Data Points
  • Remote Adapter

    • Connect to a remote adapter
    • Connect to a remote Sonoff ZBBridge
  • More

    • 3D cases
    • External converters
    • External extensions
    • Switch to the dev branch
    • Get Tuya and Xiaomi OTA url
  • Forum
  • Discord
  • Issues
  • Donate
GitHub
GitHub (docs)
  • Getting started
  • Supported Adapters
  • Supported Devices
  • Installation
  • Configuration
  • Usage
  • FAQ
Devices
  • Zigbee

    • Zigbee network
    • Improve network range and stability
    • Sniff Zigbee traffic
    • Create a CC2530 router
  • Support new devices

    • Support new devices
    • Support new Tuya devices
    • Find Tuya Data Points
  • Remote Adapter

    • Connect to a remote adapter
    • Connect to a remote Sonoff ZBBridge
  • More

    • 3D cases
    • External converters
    • External extensions
    • Switch to the dev branch
    • Get Tuya and Xiaomi OTA url
  • Forum
  • Discord
  • Issues
  • Donate
GitHub
GitHub (docs)

Skydance WZS2

ModelWZS2
VendorSkydance
DescriptionZigbee 3.0 CCT LED controller
Exposeslight (state, brightness, color_temp), do_not_disturb, color_power_on_behavior, effect, scene_data
PictureSkydance WZS2

Notes

Effects

The controller plays effects (Tuya scenes) on its own, Zigbee2MQTT only starts them. Available effects: breathe_white, warm_cold_fade, candle_flicker, flash_white.

{"effect": "candle_flicker"}

{"effect": "stop"} returns to the static light, setting a color temperature also ends the effect.

Custom effects (scene_data)

A custom effect is a hex string in the Tuya cloud scene format: 1 byte scene id, followed by up to 8 steps of 13 bytes each. Spaces are allowed. The scene id is the number of the scene in the Tuya app, the controller does not use it, so any value works (e.g. 06).

BytesFieldRange
1speed0-100, higher is faster
1duration0-100
1mode01 jump, 02 gradient (00 static is ignored by the controller)
2H, S, V (color)0000, not used by this controller
2B (brightness)0-1000
2T (color temperature)0-1000, 0 = warm

Example, slowly fading between warm and cold white:

{"scene_data": "06 1e1e02 0000 0000 0000 03e8 0000 1e1e02 0000 0000 0000 03e8 03e8"}

Scenes can also be designed in the Tuya app on a virtual device and copied from the Tuya IoT Platform (device debugging, scene_data property).

Power on behavior

color_power_on_behavior sets the state after a power cut: initial, previous or customized. customized stores the brightness and color temperature that are active when you set it.

Do not disturb

When do_not_disturb is enabled and the light was switched off before a power cut, it stays off when the power comes back. It turns on only after switching the power on twice in a row.

Options

How to use device type specific configuration

  • transition: Controls the transition time (in seconds) of on/off, brightness, color temperature (if applicable) and color (if applicable) changes. Defaults to 0 (no transition). The value must be a number with a minimum value of 0

  • color_sync: When enabled colors will be synced, e.g. if the light supports both color x/y and color temperature a conversion from color x/y to color temperature will be done when setting the x/y color (default true). The value must be true or false

  • state_action: State actions will also be published as 'action' when true (default false). The value must be true or false

Exposes

Light

This light supports the following features: state, brightness, color_temp.

  • state: To control the state publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"state": "ON"}, {"state": "OFF"} or {"state": "TOGGLE"}. To read the state send a message to zigbee2mqtt/FRIENDLY_NAME/get with payload {"state": ""}.

  • brightness: To control the brightness publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"brightness": VALUE} where VALUE is a number between 0 and 254. To read the brightness send a message to zigbee2mqtt/FRIENDLY_NAME/get with payload {"brightness": ""}.

  • color_temp: To control the color temperature (in reciprocal megakelvin a.k.a. mired scale) publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"color_temp": VALUE} where VALUE is a number between 153 and 500, the higher the warmer the color. To read the color temperature send a message to zigbee2mqtt/FRIENDLY_NAME/get with payload {"color_temp": ""}. Besides the numeric values the following values are accepted: coolest, cool, neutral, warm, warmest.

On with timed off

When setting the state to ON, it might be possible to specify an automatic shutoff after a certain amount of time. To do this add an additional property on_time to the payload which is the time in seconds the state should remain on. Additionally an off_wait_time property can be added to the payload to specify the cooldown time in seconds when the light will not answer to other on with timed off commands. Support depends on the light firmware. Some devices might require both on_time and off_wait_time to work Examples : {"state" : "ON", "on_time": 300}, {"state" : "ON", "on_time": 300, "off_wait_time": 120}.

Transition

For all of the above mentioned features it is possible to do a transition of the value over time. To do this add an additional property transition to the payload which is the transition time in seconds. Examples: {"brightness":156,"transition":3}, {"color_temp":241,"transition":1}.

Moving/stepping

Instead of setting a value (e.g. brightness) directly it is also possible to:

  • move: this will automatically move the value over time, to stop send value stop or 0.
  • step: this will increment/decrement the current value by the given one.

The direction of move and step can be either up or down, provide a negative value to move/step down, a positive value to move/step up. To do this send a payload like below to zigbee2mqtt/FRIENDLY_NAME/set

NOTE: brightness move/step will stop at the minimum brightness and won't turn on the light when it's off. In this case use brightness_move_onoff/brightness_step_onoff

{
  "brightness_move": -40, // Starts moving brightness down at 40 units per second
  "brightness_move": 0, // Stop moving brightness
  "brightness_step": 40 // Increases brightness by 40
  "color_temp_move": 60, // Starts moving color temperature up at 60 units per second
  "color_temp_move": -40, // Starts moving color temperature down at 40 units per second
  "color_temp_move": "stop", // Stop moving color temperature
  "color_temp_move": "release", // Stop moving color temperature
  "color_temp_move": 0, // Stop moving color temperature
  "color_temp_move": "up", // Move to warmer color temperature at default rate
  "color_temp_move": 1, // Move to warmer color temperature at default rate
  "color_temp_move": "down", // Move to cooler color temperature at default rate
  "color_temp_move": {"rate": 30, "minimum": 150, "maximum": 500}, // Move with custom rate and constraints
  "color_temp_step": 99, // Increase color temperature by 99
}

Do not disturb (binary)

Controls state after power outage: false = on, true = restore previous state. Power-cycle twice to ignore this setting and force on. Value can be found in the published state on the do_not_disturb 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 {"do_not_disturb": VALUE}. If value equals true do not disturb is ON, if false OFF.

Color power on behavior (enum)

Power on behavior state. Value can be found in the published state on the color_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 {"color_power_on_behavior": "VALUE"}. The possible values are: initial, previous, customized.

Effect (enum)

Effect played by the light, 'stop' ends it. Value can be found in the published state on the effect 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 {"effect": "VALUE"}. The possible values are: breathe_white, warm_cold_fade, candle_flicker, flash_white, stop.

Scene data (text)

Custom effect in Tuya cloud scene format (hex): 1 byte id, then per unit (max 8) speed (0-100), duration (0-100), mode (01 jump, 02 gradient), H (0-360), S, V, brightness and color temperature (0-1000), each 2 bytes. Value can be found in the published state on the scene_data 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 {"scene_data": "VALUE"}.

Help to make the docu better and edit this page on Github ✌