Browse Source

feat (devices): add support for Feit OneSync lighting controller

Issue #3146
Jason Rumney 4 tháng trước cách đây
mục cha
commit
142eea3a0b

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1058,3 +1058,4 @@ Further device support has been made with the assistance of users. Please consid
 - [siobhanellis](https://github.com/siobhanellis) for assisting with support for Weeket KES5211TE-CE kettle.
 - [saappleg](https://github.com/saappleg) for assisting with support for MolyPet F02W pet feeder.
 - [trebic](https://github.com/trebic) for assisting with support for Deta 6914HA Series 3 fan controller.
+- [millerim](https://github.com/millerim) for assisting with support for Feit OneSync Smart Bridge lighting controller.

+ 1 - 0
DEVICES.md

@@ -708,6 +708,7 @@ of device.
 - Fancy LEDs screen sync light 2.0
 - Feit dimmer (may work with other brands that just have a switch, dimmer and
   optional minimum brightness and bulb type)
+- Feit OneSync Smart Bridge lighting controller
 - Feit RGBWW light bulb (like generic RGBWW, but without scene support)
 - Galaxy Projector
 - Gosund SW2 dimmer switch

+ 62 - 0
custom_components/tuya_local/devices/feit_onesync_lightcontroller.yaml

@@ -0,0 +1,62 @@
+name: Lights
+products:
+  - id: md1jguhfrhdklqyh
+    manufacturer: Feit
+    model: OneSync Smart Bridge
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        type: string
+        name: work_mode
+        optional: true
+      - id: 101
+        name: brightness
+        type: string
+        mapping:
+          - dps_val: "Low"
+            value: 1
+          - dps_val: "Mid"
+            value: 82
+          - dps_val: "High"
+            value: 164
+          - dps_val: "Max"
+            value: 255
+      - id: 102
+        name: color_temp
+        type: string
+        mapping:
+          - dps_val: 2700K
+            value: 2700
+          - dps_val: 3000K
+            value: 3000
+          - dps_val: 3500K
+            value: 3500
+          - dps_val: 4000K
+            value: 4000
+          - dps_val: 5000K
+            value: 5000
+  - entity: text
+    name: Scene
+    category: config
+    icon: "mdi:palette"
+    hidden: true
+    dps:
+      - id: 25
+        type: hex
+        name: value
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: second
+        optional: true
+        unit: min
+        range:
+          min: 0
+          max: 86400