Selaa lähdekoodia

Add support for Mayborn GroClock Connect (aka Tommy Tippee)

Issue #2601

- no support for alarms, as there is no sample message for them, and
format is anyway complex to decode.
Jason Rumney 1 vuosi sitten
vanhempi
commit
0b1f3955b7
3 muutettua tiedostoa jossa 125 lisäystä ja 0 poistoa
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 123 0
      custom_components/tuya_local/devices/mayborn_groclock.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -790,3 +790,4 @@ Further device support has been made with the assistance of users. Please consid
 - [djvalex](https://github.com/djvalex) for assisting with support for Axen/Arielli KS-100W/EN8BP combo heat pump.
 - [djvalex](https://github.com/djvalex) for assisting with support for Axen/Arielli KS-100W/EN8BP combo heat pump.
 - [doertli](https://github.com/doertli) for assisting with support for Aeratron AE3+ ceiling fan.
 - [doertli](https://github.com/doertli) for assisting with support for Aeratron AE3+ ceiling fan.
 - [0xa51f](https://github.com/0xa51f) for assisting with support for BNETA F1-D pet feeder.
 - [0xa51f](https://github.com/0xa51f) for assisting with support for BNETA F1-D pet feeder.
+- [merlin051](https://github.com/merlin051) for assisting with support for Mayborn GroClock Connect.

+ 1 - 0
DEVICES.md

@@ -885,6 +885,7 @@ port and password.
 - Kogan KAWHTNOSLPA white noise sleep aid
 - Kogan KAWHTNOSLPA white noise sleep aid
 - Konlen/Rockson WF96L water level controller
 - Konlen/Rockson WF96L water level controller
 - Madimack Inverflow Pro pool pump
 - Madimack Inverflow Pro pool pump
+- Mayborn GroClock Connect sleep training alarm clock (also sold under Tommee Tippee and other brands)
 - Mirabella Genio motion sensor
 - Mirabella Genio motion sensor
 - Momcozy white noise machine (2 variants)
 - Momcozy white noise machine (2 variants)
 - Nedis WIFISA10CWT air quality monitor
 - Nedis WIFISA10CWT air quality monitor

+ 123 - 0
custom_components/tuya_local/devices/mayborn_groclock.yaml

@@ -0,0 +1,123 @@
+name: Alarm clock
+products:
+  - id: pnauiuyatd821djd
+    name: Mayborn GroClock Connect
+primary_entity:
+  entity: siren
+  name: Music
+  icon: "mdi:music"
+  dps:
+    - id: 103
+      type: boolean
+      name: switch
+    - id: 104
+      type: string
+      name: tone
+      mapping:
+        - dps_val: "0"
+          value: Track 1
+        - dps_val: "1"
+          value: Track 2
+        - dps_val: "2"
+          value: Track 3
+        - dps_val: "3"
+          value: Track 4
+        - dps_val: "4"
+          value: Track 5
+        - dps_val: "5"
+          value: Track 6
+        - dps_val: "6"
+          value: Track 7
+        - dps_val: "7"
+          value: Track 8
+        - dps_val: "8"
+          value: Track 9
+        - dps_val: "9"
+          value: Track 10          
+    - id: 105
+      type: integer
+      name: volume_level
+      range:
+        min: 0
+        max: 16
+      mapping:
+        - scale: 16
+    - id: 107
+      type: integer
+      name: duration
+      range:
+        min: 1
+        max: 120
+    - id: 108
+      type: string
+      optional: true
+      name: wake_alarm
+    - id: 109
+      type: string
+      optional: true
+      name: nap_alarm
+    - id: 110
+      type: string
+      optional: true
+      name: sleep_alarm
+    - id: 111
+      type: string
+      optional: true
+      name: time_set
+    - id: 114
+      type: string
+      optional: true
+      name: snooze
+secondary_entities:
+  - entity: select
+    name: Music playback
+    icon: "mdi:music"
+    category: config
+    dps:
+      - id: 106
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: Repeat
+            icon: "mdi:repeat"
+          - dps_val: "1"
+            value: Normal
+          - dps_val: "2"
+            value: Random
+            icon: "mdi:shuffle"
+  - entity: switch
+    name: Auto time sync
+    icon: "mdi:clock"
+    category: config
+    dps:
+      - id: 112
+        type: boolean
+        name: switch
+  - entity: select
+    name: Time format
+    category: config
+    dps:
+      - id: 113
+        type: string
+        name: option
+        mapping:
+          - dps_val: "12"
+            value: "12 hour"
+            icon: "mdi:hours-12"
+          - dps_val: "24"
+            value: "24 hour"
+            icon: "mdi:hours-24"
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 115
+        type: boolean
+        name: lock
+  - entity: switch
+    translation_key: sleep
+    dps:
+      - id: 116
+        type: boolean
+        name: switch