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

feat(devices): add support for Airam S1WFAA siren

Issue #3344
Jason Rumney 7 месяцев назад
Родитель
Сommit
d4083beab5
3 измененных файлов с 43 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 41 0
      custom_components/tuya_local/devices/airam_s1wfaa_siren.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -967,3 +967,4 @@ Further device support has been made with the assistance of users. Please consid
 - [anssih](https://github.com/anssih) for contributing improvements to Vevor 3.7kW EV charger.
 - [fayezvip](https://github.com/fayezvip) for assisting with support for Malmbergs NV-SWQ triple dimmer module.
 - [hugglesfox](https://github.com/hugglesfox) for contributing support for Arlec CEH243HA ceramic heater.
+- [Pive-94](https://github.com/Pive-94) for assisting with support for Airam S1WFAA siren.

+ 1 - 0
DEVICES.md

@@ -798,6 +798,7 @@ work reliably, even if listed below.
 ### Sirens
 
 - A03 siren
+- Airam S1WFAA siren
 - 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)

+ 41 - 0
custom_components/tuya_local/devices/airam_s1wfaa_siren.yaml

@@ -0,0 +1,41 @@
+name: Siren
+products:
+  - id: h2hhafbfuczgcibk
+    manufacturer: Airam
+    model: S1WFAA
+entities:
+  - entity: siren
+    dps:
+      - id: 1
+        type: string
+        name: tone
+        mapping:
+          - dps_val: light
+            value: Light
+          - dps_val: voice
+            value: Siren
+          - dps_val: light_voice
+            value: Light and siren
+          - dps_val: mute
+            value: Silent
+      - id: 5
+        type: string
+        name: volume_level
+        mapping:
+          - dps_val: mute
+            value: 0
+          - dps_val: low
+            value: 33
+          - dps_val: middle
+            value: 66
+          - dps_val: high
+            value: 100
+      - id: 7
+        type: integer
+        name: duration
+        range:
+          min: 1
+          max: 30
+      - id: 13
+        type: boolean
+        name: switch