فهرست منبع

Support for a white-only generic table lamp

This is tested with Desk Lamp Setti+ SL601
szupi-ipuzs 2 سال پیش
والد
کامیت
27bf33865f
1فایلهای تغییر یافته به همراه32 افزوده شده و 0 حذف شده
  1. 32 0
      custom_components/tuya_local/devices/desk_lamp.yaml

+ 32 - 0
custom_components/tuya_local/devices/desk_lamp.yaml

@@ -0,0 +1,32 @@
+name: Desk Lamp
+products:
+  - id: b0j0lto1o0ijwb39
+    name: Desk Lamp Setti+ SL601
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: color_mode
+      mapping:
+        - dps_val: white
+          value: color_temp
+    - id: 3
+      name: brightness
+      type: integer
+      optional: true
+      range:
+        min: 25
+        max: 255
+    - id: 4
+      name: color_temp
+      type: integer
+      optional: true
+      range:
+        min: 0
+        max: 255
+      mapping:
+        - invert: true