Просмотр исходного кода

fix(airam_s1wfaa_siren): fix volume scaling

Volume level in HA is floating point in range 0.0 - 1.0
Previous implementation of this config used 0-100
Jason Rumney 1 неделя назад
Родитель
Сommit
acb68ad3d5
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      custom_components/tuya_local/devices/airam_s1wfaa_siren.yaml

+ 4 - 4
custom_components/tuya_local/devices/airam_s1wfaa_siren.yaml

@@ -23,13 +23,13 @@ entities:
         name: volume_level
         mapping:
           - dps_val: mute
-            value: 0
+            value: 0.0
           - dps_val: low
-            value: 33
+            value: 0.33
           - dps_val: middle
-            value: 66
+            value: 0.66
           - dps_val: high
-            value: 100
+            value: 1.0
       - id: 7
         type: integer
         name: duration