Alexey Popovich 2 лет назад
Родитель
Сommit
f7fa54e602
1 измененных файлов с 49 добавлено и 0 удалено
  1. 49 0
      custom_components/tuya_local/devices/feit_dimmer.yaml

+ 49 - 0
custom_components/tuya_local/devices/feit_dimmer.yaml

@@ -0,0 +1,49 @@
+name: Feit Dimmer
+product:
+  # https://www.feit.com/collections/smart-controls/products/smart-wi-fi-dimmer-dim-wifi
+  - id: tebc75erlgslgpn5
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      name: brightness
+      type: integer
+      range:
+        min: 10
+        max: 1000
+      mapping:
+        - scale: 3.92 # this is important for that device, else lights are too dim
+
+# optional, but does not let me select this file when I add new device
+# secondary_entities:
+
+# this is useless, does not actually limit brighness controls in my testing
+# - entity: number
+#   name: Minimum brightness
+#   category: config
+#   icon: "mdi:lightbulb-on-50"
+#   dps:
+#     - id: 3
+#       type: integer
+#       name: value
+#       range:
+#         min: 10
+#         max: 1000
+
+# this seems fine
+# - entity: select
+#   name: Light Type
+#   icon: mdi:lightbulb-variant
+#   # category: config
+#   dps:
+#     - id: 4
+#       type: string
+#       name: option
+#       mapping:
+#         - dps_val: incandescent
+#           value: Incandescent
+#         - dps_val: halogen
+#           value: LED