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

rename config item and add range

Kirill Birger 2 лет назад
Родитель
Сommit
5d922f7d0c
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      custom_components/tuya_local/devices/reiga_52_fan_light.yaml

+ 5 - 4
custom_components/tuya_local/devices/reiga_52_fan_light.yaml

@@ -1,7 +1,7 @@
-name: Reiga Ceiling Fan
+name: Ceiling fan with light
 products:
   - id: g0ewlb1vmwqljzji
-    name: Reiga 52 Ceiling Fan with Light
+    name: Reiga 52 ceiling fan with light
 primary_entity:
   entity: fan
   translation_key: fan_with_presets
@@ -61,14 +61,15 @@ secondary_entities:
       - id: 16
         type: integer
         name: brightness
-
+        range:
+          min: 0
+          max: 255
         mapping:
           - scale: 0.392156862745098
       - id: 17
         type: integer
         name: color_temp
         mapping:
-          - step: 1
           - target_range:
               min: 2700
               max: 6500