Add Tuya Soil sensor (#96819)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Teesit E 2023-07-18 22:51:18 +07:00 committed by GitHub
parent 4e9ce235e8
commit 701c8a3768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1017,6 +1017,22 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
state_class=SensorStateClass.MEASUREMENT,
),
),
# Soil sensor (Plant monitor)
"zwjcy": (
TuyaSensorEntityDescription(
key=DPCode.TEMP_CURRENT,
name="Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
TuyaSensorEntityDescription(
key=DPCode.HUMIDITY,
name="Humidity",
device_class=SensorDeviceClass.HUMIDITY,
state_class=SensorStateClass.MEASUREMENT,
),
*BATTERY_SENSORS,
),
}
# Socket (duplicate of `kg`)