Add Tuya Soil sensor (#96819)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Teesit E
2023-07-18 17:51:18 +02:00
committed by GitHub
co-authored by Franck Nijhof
parent 4e9ce235e8
commit 701c8a3768
+16
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`)