Преглед изворни кода

TH16: add display on/off

As the original config has a comment only mentioning the 3 dps from the config
this is added as an optional dp (though likely the original list is just
incomplete).

Issue #608
Jason Rumney пре 2 година
родитељ
комит
ea9b466383
1 измењених фајлова са 13 додато и 0 уклоњено
  1. 13 0
      custom_components/tuya_local/devices/th16_temp_humidity_sensor.yaml

+ 13 - 0
custom_components/tuya_local/devices/th16_temp_humidity_sensor.yaml

@@ -1,5 +1,9 @@
 # Example DPS Status
 # {'dps': {'1': 226, '2': 41, '9': 'f'}}
+# from issue #608 { "1": 183, "2": 63, "9": "c", "10": 390, "11": 0, "12": 60,
+#                   "13": 20, "14": "cancel", "15": "upperalarm", "21": true,
+#                   "101": true, "102": 9, "103": 0, "104": 1, "105": 0,
+#                   "106": 0, "107": 1 }
 name: TH16 TH06WB3S Temperature and Humidity Sensor
 products:
   - id: 7akwzwfwhukkdsib
@@ -37,3 +41,12 @@ secondary_entities:
             value: Fahrenheit
           - dps_val: "c"
             value: Celcius
+  - entity: light
+    name: Display
+    icon: "mdi:television-ambient-light"
+    category: config
+    dps:
+      - id: 21
+        type: boolean
+        name: switch
+        optional: true