Add TRV (wkf) support to Tuya (#65649)

This commit is contained in:
Franck Nijhof 2022-02-04 12:34:15 +01:00 committed by GitHub
parent 320df10a26
commit b7007b364a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 0 deletions

View file

@ -194,6 +194,16 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
),
TAMPER_BINARY_SENSOR,
),
# Thermostatic Radiator Valve
# Not documented
"wkf": (
TuyaBinarySensorEntityDescription(
key=DPCode.WINDOW_STATE,
name="Window",
device_class=BinarySensorDeviceClass.WINDOW,
on_value="opened",
),
),
# Temperature and Humidity Sensor
# https://developer.tuya.com/en/docs/iot/categorywsdcg?id=Kaiuz3hinij34
"wsdcg": (TAMPER_BINARY_SENSOR,),