瀏覽代碼

Label Sound type according to Tuya app.

The iot.tuya.com docs seemed to suggest that this was used together
with dp 10, so the assumption was it selects between different groups
of 34 sounds.  But the app screenshot shows only 11 sounds selecatable
within one category, so it may just be filtering the list of 34, and
therefore redundant.

Since I don't know for sure which of these, it is left in for now, and
changed to match the app naming.

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

+ 5 - 5
custom_components/tuya_local/devices/loycco_sound_nightlight.yaml

@@ -177,7 +177,7 @@ secondary_entities:
           min: 0
           max: 90
   - entity: select
-    name: Sound source
+    name: Sound type
     icon: "mdi:music-box-multiple"
     category: config
     dps:
@@ -187,13 +187,13 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: ringtone_1
-            value: Album 1
+            value: Nature 1
           - dps_val: ringtone_2
-            value: Album 2
+            value: Nature 2
           - dps_val: ringtone_3
-            value: Album 3
+            value: Object
           - dps_val: ringtone_4
-            value: Album 4
+            value: Sleep
           - dps_val: null
             value: Default
             hidden: true