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

Add support for Moes star projector

Issue #821
Jason Rumney 2 лет назад
Родитель
Сommit
241dbc1ac7
3 измененных файлов с 96 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 94 0
      custom_components/tuya_local/devices/moes_star_projector.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -339,3 +339,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [jaydensmith](https://github.com/jaydensmith) for assistance with support for Cadence aroma diffusers.
 - [davidsch1992](https://github.com/davidsch1992) for contributing support for Lyfco OL-A0012 air conditioners.
 - [lhassel](https://github.com/lhassel) for assisting with support for a variant of Inkbird iBBQ-4T thermometers with measurements combined into a single dp similar to IBS-M1S.
+- [SergioFuchs](https://github.com/SergioFuchs) for assisting with support for Moes star projector.

+ 1 - 0
DEVICES.md

@@ -344,6 +344,7 @@ of device.
 - Marpou RGBCW ceiling light
 - Moes dimmer switch
 - Moes motion sensor lights (XZ-CGV3)
+- Moes star projector
 - MoesGo dimmer switch
 - Space Dog Music Lamp
 - Tampa Magnetic LED System CD-TY-WY05

+ 94 - 0
custom_components/tuya_local/devices/moes_star_projector.yaml

@@ -0,0 +1,94 @@
+name: Star projector
+products:
+  - id: cw7kinnselbesfp9
+    name: Moes Smart Star Projector
+primary_entity:
+  entity: light
+  name: Background
+  icon: "mdi:projector"
+  dps:
+    - id: 20
+      type: boolean
+      name: switch
+    - id: 21
+      name: color_mode
+      type: string
+      mapping:
+        - dps_val: white
+          value: white
+        - dps_val: colour
+          value: rgbw
+        - dps_val: scene
+          value: Scene
+    - id: 24
+      name: rgbhsv
+      type: hex
+      format:
+        - name: h
+          bytes: 2
+          range:
+            min: 0
+            max: 360
+        - name: s
+          bytes: 2
+          range:
+            min: 0
+            max: 1000
+        - name: v
+          bytes: 2
+          range:
+            min: 0
+            max: 1000
+    - id: 25
+      name: scene_data
+      type: hex
+secondary_entities:
+  - entity: light
+    name: Laser
+    icon: "mdi:laser-pointer"
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+        mapping:
+          - scale: 3.92
+  - entity: number
+    name: Star rotation speed
+    category: config
+    icon: "mdi:rotate-orbit"
+    dps:
+      - id: 101
+        type: integer
+        name: value
+        unit: 
+        range:
+          min: 10
+          max: 1000
+  - entity: switch
+    name: Color
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+  - entity: number
+    name: Timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 26
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60