瀏覽代碼

Light string: use string rather than hex for mapped values.

Since we map the values to strings rather than making use of the hex values,
using hex for the type causes decode errors.

Add product details for popotan device

#1171
Jason Rumney 2 年之前
父節點
當前提交
16f01a5998
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      custom_components/tuya_local/devices/light_string.yaml

+ 5 - 2
custom_components/tuya_local/devices/light_string.yaml

@@ -1,4 +1,7 @@
 name: Fairy lights
+products:
+  - id: rqsvgaquywwekm6x
+    name: Popotan Smart Fairy String Lights
 primary_entity:
   entity: light
   dps:
@@ -41,7 +44,7 @@ secondary_entities:
     category: config
     dps:
       - id: 25
-        type: hex
+        type: string
         name: option
         mapping:
           - dps_val: "0103e8"
@@ -78,7 +81,7 @@ secondary_entities:
     icon: "mdi:music"
     dps:
       - id: 101
-        type: hex
+        type: string
         name: option
         mapping:
           - dps_val: 16401bb1006e03e801f4