ソースを参照

RGBCW lightbulb: add Beamlux BLX501 product

from PR #2962
Jason Rumney 1 年間 前
コミット
6231544946
1 ファイル変更21 行追加0 行削除
  1. 21 0
      custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

+ 21 - 0
custom_components/tuya_local/devices/rgbcw_lightbulb.yaml

@@ -24,6 +24,9 @@ products:
     model: Grid Connect 6W RGB+CCT downlight
     name: RGBCW downlight
     model_id: ALD275HA
+  - id: kw2oclsjnfal3mfv
+    manufacturer: Beamlux
+    name: BLX501
 entities:
   - entity: light
     dps:
@@ -120,6 +123,24 @@ entities:
           - scale: 60
             step: 60
           - dps_val: null
+  - entity: switch
+    name: Do not disturb
+    icon: "mdi:minus-circle"
+    hidden: unavailable
+    category: config
+    dps:
+      - id: 34
+        type: boolean
+        optional: true
+        name: switch
+      - id: 34
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
   - entity: text
     translation_key: scene
     category: config