Răsfoiți Sursa

adding co2_box and smoke sensor (still struggling ...)

ahori 2 ani în urmă
părinte
comite
8a771a4068
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      custom_components/tuya_local/device.py

+ 1 - 1
custom_components/tuya_local/device.py

@@ -345,7 +345,7 @@ class TuyaLocalDevice(object):
             # devices have dp 1. Lights generally start from 20.  101 is where
             # vendor specific dps start.  Between them, these three should cover
             # most devices.
-            self._api.set_dpsUsed({"1": None, "20": None, "101": None})
+            self._api.set_dpsUsed({"1": None, "2": None, "20": None, "101": None})
             await self.async_refresh()
             cached_state = self._get_cached_state()