prefixkit Ask an engineerAsk Support RU

Zigbee devices Smart plugs with energy metering

Tuya TS0601_6gang_switch_2

6 gang touch panel switch with power monitoring and configurable indicator colors. Works with Zigbee2MQTT with no vendor hub or cloud: it pairs with a Zigbee stick and shows up in Home Assistant.

Vendor
Tuya
Model
TS0601_6gang_switch_2
Type
Smart plugs with energy metering
Power
mains: usually a router that extends the mesh
Firmware updates (OTA)
no

Find it in shops: AliExpress

Links open a search in the shop; some are affiliate links: buying through them costs you nothing extra and supports this site. We do not sell devices or get them from manufacturers.

What it exposes

FeaturePropertyValuesControl
Switch (button_1)state_button_1—settable
Switch (button_2)state_button_2—settable
Switch (button_3)state_button_3—settable
Switch (button_4)state_button_4—settable
Switch (button_5)state_button_5—settable
Switch (button_6)state_button_6—settable
Switch (all)state_all—settable
EnergyenergykWhread only
PowerpowerWread only
CurrentcurrentAread only
VoltagevoltageVread only
Child lockchild_lock—settable
Backlightbacklight—settable
Indicatorindicator—settable
After power losspower_on_behavioroff, on, previoussettable
After power losspower_on_behavior_1off, on, previoussettable
After power losspower_on_behavior_2off, on, previoussettable
After power losspower_on_behavior_3off, on, previoussettable
After power losspower_on_behavior_4off, on, previoussettable
After power losspower_on_behavior_5off, on, previoussettable
After power losspower_on_behavior_6off, on, previoussettable
Color (button_1)color_button_1—read only
On brightness (button_1)brightness_on_button_1% · 0…100settable
Off brightness (button_1)brightness_off_button_1% · 0…100settable
Color (button_2)color_button_2—read only
On brightness (button_2)brightness_on_button_2% · 0…100settable
Off brightness (button_2)brightness_off_button_2% · 0…100settable
Color (button_3)color_button_3—read only
On brightness (button_3)brightness_on_button_3% · 0…100settable
Off brightness (button_3)brightness_off_button_3% · 0…100settable
Color (button_4)color_button_4—read only
On brightness (button_4)brightness_on_button_4% · 0…100settable
Off brightness (button_4)brightness_off_button_4% · 0…100settable
Color (button_5)color_button_5—read only
On brightness (button_5)brightness_on_button_5% · 0…100settable
Off brightness (button_5)brightness_off_button_5% · 0…100settable
Color (button_6)color_button_6—read only
On brightness (button_6)brightness_on_button_6% · 0…100settable
Off brightness (button_6)brightness_off_button_6% · 0…100settable

MQTT: state and commands

Zigbee2MQTT publishes the device state to zigbee2mqtt/my_device (my_device is the name you give the device). An example message:

{
  "state_button_1": "ON",
  "state_button_2": "ON",
  "state_button_3": "ON",
  "state_button_4": "ON",
  "state_button_5": "ON",
  "state_button_6": "ON",
  "state_all": "ON",
  "energy": 3.21,
  "power": 12.4,
  "current": 0.06,
  "voltage": 230,
  "child_lock": false,
  "backlight": false,
  "indicator": false,
  "linkquality": 120
}

Send commands to zigbee2mqtt/my_device/set:

mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_1":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_2":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_3":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_4":"TOGGLE"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"state_button_5":"TOGGLE"}'

Watch the topics live from the browser: MQTT client.

Home Assistant automation example

Zigbee2MQTT creates Home Assistant entities from the device name. If it is called my_device, an automation in automations.yaml can look like this:

- alias: "Turn off when idle"
  mode: single
  triggers:
    - trigger: numeric_state
      entity_id: sensor.my_device_power
      below: 2
      for: "00:15:00"
  actions:
    - action: switch.turn_off
      target:
        entity_id: switch.my_device_button_1

Check the YAML: YAML checker.

How to pair it

  1. In Zigbee2MQTT click Permit join.
  2. Put the device in pairing mode: usually a long press of the reset button (5–10 s) until the LED blinks; bulbs: switch the power off and on 5–6 times.
  3. Keep the device close to the coordinator or a router while pairing.
  4. Give it a clear name: MQTT topics and Home Assistant entities are built from it.

Exact procedure and model notes: the device page in the Zigbee2MQTT docs. No coordinator yet: coordinator picker.

Similar devices

Idea?