Tuya SGS02Z
| Model | SGS02Z |
| Vendor | Tuya |
| Description | Soil sensor |
| Exposes | temperature, soil_moisture, temperature_unit, illuminance_level, battery |
| Picture | ![]() |
Options
How to use device type specific configuration
temperature_calibration: Calibrates the temperature value (absolute offset), takes into effect on next report of device. The value must be a number.temperature_precision: Number of digits after decimal point for temperature, 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 with a maximum value of3soil_moisture_calibration: Calibrates the soil_moisture value (absolute offset), takes into effect on next report of device. The value must be a number.soil_moisture_precision: Number of digits after decimal point for soil_moisture, 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 with a maximum value of3
Exposes
Temperature (numeric)
Measured temperature value. Value can be found in the published state on the temperature property. It's not possible to read (/get) or write (/set) this value. The unit of this value is °C.
Soil moisture (numeric)
Measured soil moisture value. Value can be found in the published state on the soil_moisture property. It's not possible to read (/get) or write (/set) this value. The unit of this value is %.
Temperature unit (enum)
Temperature unit. Value can be found in the published state on the temperature_unit 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 {"temperature_unit": NEW_VALUE}. The possible values are: celsius, fahrenheit.
Illuminance level (enum)
Illuminance level. Value can be found in the published state on the illuminance_level property. It's not possible to read (/get) or write (/set) this value. The possible values are: low-, low, nor, high, high+.
Battery (numeric)
Remaining battery in %, can take up to 24 hours before reported. Value can be found in the published state on the battery property. It's not possible to read (/get) or write (/set) this value. The minimal value is 0 and the maximum value is 100. The unit of this value is %.

