Tuya MG-DIM02Z
| Model | MG-DIM02Z |
| Vendor | Tuya |
| Description | Zigbee dimmer module with power monitoring |
| Exposes | light (state, brightness), min_brightness, max_brightness, power_on_state, power, current, voltage |
| Picture | ![]() |
Options
How to use device type specific configuration
time_start: Reply to Tuya-specific time synchronization requests: "1970" - Reply with seconds since 1970/01/01 (recommended, should stop the device from asking), "2000" - Reply with seconds since 2000/01/01 (use if the weekday is wrong with 1970), "off" - Don't reply (use if replying causes too much traffic). Default for this device: "off". The value must be one of1970,2000,offpower_calibration: Calibrates the power value (percentual offset), takes into effect on next report of device. The value must be a number.power_precision: Number of digits after decimal point for power, takes into effect on next report of device. This option can only decrease the precision, not increase it. The value must be a number with a minimum value of0and with a maximum value of3current_calibration: Calibrates the current value (percentual offset), takes into effect on next report of device. The value must be a number.current_precision: Number of digits after decimal point for current, takes into effect on next report of device. This option can only decrease the precision, not increase it. The value must be a number with a minimum value of0and with a maximum value of3voltage_calibration: Calibrates the voltage value (percentual offset), takes into effect on next report of device. The value must be a number.voltage_precision: Number of digits after decimal point for voltage, takes into effect on next report of device. This option can only decrease the precision, not increase it. The value must be a number with a minimum value of0and with a maximum value of3
Exposes
Light
This light supports the following features: state, brightness.
state: To control the state publish a message to topiczigbee2mqtt/FRIENDLY_NAME/setwith payload{"state": "ON"},{"state": "OFF"}or{"state": "TOGGLE"}. To read the state send a message tozigbee2mqtt/FRIENDLY_NAME/getwith payload{"state": ""}.brightness: To control the brightness publish a message to topiczigbee2mqtt/FRIENDLY_NAME/setwith payload{"brightness": VALUE}whereVALUEis a number between0and254. To read the brightness send a message tozigbee2mqtt/FRIENDLY_NAME/getwith payload{"brightness": ""}.
Min brightness (numeric)
Minimum brightness limit. Value can be found in the published state on the min_brightness 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 {"min_brightness": NEW_VALUE}. The minimal value is 10 and the maximum value is 1000.
Max brightness (numeric)
Maximum brightness limit. Value can be found in the published state on the max_brightness 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 {"max_brightness": NEW_VALUE}. The minimal value is 10 and the maximum value is 1000.
Power on state (enum)
Power-on state after power loss. Value can be found in the published state on the power_on_state 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_state": NEW_VALUE}. The possible values are: memory, power_on, power_off.
Power (numeric)
Instantaneous measured power. Value can be found in the published state on the power property. It's not possible to read (/get) or write (/set) this value. The unit of this value is W.
Current (numeric)
Instantaneous measured electrical current. Value can be found in the published state on the current property. It's not possible to read (/get) or write (/set) this value. The unit of this value is A.
Voltage (numeric)
Measured electrical potential value. Value can be found in the published state on the voltage property. It's not possible to read (/get) or write (/set) this value. The unit of this value is V.

