Ver código fonte

feat(devices): add Qnect SH-SI01-QNE siren

Issue #5901
Jason Rumney 1 semana atrás
pai
commit
47757776c1

+ 1 - 0
DEVICES.md

@@ -1139,6 +1139,7 @@ work reliably, even if listed below.
 - Neo Coolcam Siren with temperature and humidity alert (NAS-AB02W)
 - Orion Grid Connect SWS07HA indoor siren
 - Orion Grid Connect outdoor siren (also Elesion NX-4980)
+- Qnect SH-SI01-QNE siren
 - Sirena WS-902 Plus outdoor strobe siren
 - STL siren
 

+ 72 - 0
custom_components/tuya_local/devices/qnect_shsi01_siren.yaml

@@ -0,0 +1,72 @@
+name: Siren
+products:
+  - id: hf0phcrchgkquvke
+    manufacturer: Qnect
+    model: SH-SI01-QNE
+entities:
+  - entity: siren
+    dps:
+      - id: 5
+        type: string
+        name: volume_level
+        mapping:
+          - dps_val: mute
+            value: 0.0
+          - dps_val: low
+            value: 0.3
+          - dps_val: middle
+            value: 0.6
+          - dps_val: high
+            value: 1.0
+      - id: 7
+        type: integer
+        name: duration
+        range:
+          min: 1
+          max: 60
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: sensor
+    translation_key: status
+    class: enum
+    dps:
+      - id: 1
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: "1"
+            value: Audible alarm
+          - dps_val: "2"
+            value: Visual alarm
+          - dps_val: "3"
+            value: Audio and visual alarm
+          - dps_val: "4"
+            value: idle
+  - entity: binary_sensor
+    class: plug
+    category: diagnostic
+    dps:
+      - id: 6
+        type: boolean
+        name: sensor
+  - entity: switch
+    name: Muffling
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    class: tamper
+    category: diagnostic
+    dps:
+      - id: 101
+        type: boolean
+        name: sensor
+  - entity: binary_sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        name: sensor