Slacky-DIY ZG-222ZA-z-SlD
| Model | ZG-222ZA-z-SlD |
| Vendor | Slacky-DIY |
| Description | Tuya water leak sensor with custom firmware |
| Exposes | battery, voltage, water_leak, battery_low, switch_actions, action |
| Picture | ![]() |
OTA updates
This device supports OTA updates, for more information see OTA updates.
Exposes
Battery (numeric)
Remaining battery in %. Value can be found in the published state on the battery property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"battery": ""}. It's not possible to write (/set) this value. The minimal value is 0 and the maximum value is 100. The unit of this value is %.
Voltage (numeric)
Reported battery voltage in millivolts. Value can be found in the published state on the voltage property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"voltage": ""}. It's not possible to write (/set) this value. The unit of this value is mV.
Water leak (binary)
Indicates whether the device detected a water leak. Value can be found in the published state on the water_leak property. It's not possible to read (/get) or write (/set) this value. If value equals true water leak is ON, if false OFF.
Battery low (binary)
Indicates whether the battery of the device is almost empty. Value can be found in the published state on the battery_low property. It's not possible to read (/get) or write (/set) this value. If value equals true battery low is ON, if false OFF.
Switch actions (enum)
Actions switch. Value can be found in the published state on the switch_actions property. To read (/get) the value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/get with payload {"switch_actions": ""}. To write (/set) a value publish a message to topic zigbee2mqtt/FRIENDLY_NAME/set with payload {"switch_actions": NEW_VALUE}. The possible values are: off, on.
Action (enum)
Triggered action (e.g. a button click). Value can be found in the published state on the action property. It's not possible to read (/get) or write (/set) this value. The possible values are: on, off, toggle.

