Browse Source

Add support for generic lightbulbs.

Austin Hodak 3 năm trước cách đây
mục cha
commit
81c6e3b838
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 13 0
      custom_components/tuya_local/devices/simple_lightbulb.yaml

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

@@ -0,0 +1,13 @@
+name: Simple lightbulb
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: brightness
+      type: integer
+      range:
+        min: 10
+        max: 255