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

    • Zigbee network
    • Improve network range and stability
    • Secure your Zigbee network
    • 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
    • Secure your Zigbee network
    • 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)

Tuya ZS06

ModelZS06
VendorTuya
DescriptionUniversal smart IR remote control
Exposeslearn_ir_code, learned_ir_code, ir_code_to_send
PictureTuya ZS06

Notes

Device can learn IR codes and send already known IR codes.

Control

By publishing to zigbee2mqtt/FRIENDLY_NAME/set various device attributes can control the device:

Switch to a learning mode

Request:

{
    "learn_ir_code":"ON"
}

The command activates the orange light on the device. You have several seconds to take source IR remote, move it closer to the device and press a button. The learned IR code will be exposed as learned_ir_code.

Send already learned IR code

Request:

{
    "ir_code_to_send": "<previously learned IR code>"
}

Exposes

Learn ir code (binary)

Turn on to learn new IR code. Value will not be published in the state. 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 {"learn_ir_code": NEW_VALUE}. If value equals ON learn ir code is ON, if OFF OFF.

Learned ir code (text)

The IR code learned by device. Value can be found in the published state on the learned_ir_code property. It's not possible to read (/get) or write (/set) this value.

Ir code to send (text)

The IR code to send by device. Value will not be published in the state. 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 {"ir_code_to_send": NEW_VALUE}.

Help to make the docu better and edit this page on Github ✌
Last Updated:: 6/16/25, 5:45 PM