Pārlūkot izejas kodu

Add support for Dienmern DM165A noise meter

Issue #3216
Jason Rumney 9 mēneši atpakaļ
vecāks
revīzija
b6e8bfe969

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -941,3 +941,4 @@ Further device support has been made with the assistance of users. Please consid
 - [alexeytm82](https://github.com/alexeytm82) for contributing support for MakeSkyBlue MPPT solar charger.
 - [com6056](https://github.com/com6056) for assisting with support for Treatlife DS03 (v2) ceiling fan and light.
 - [georgekucher](https://github.com/georgekucher) for contributing improvements toFeyree portable EV charger.
+- [shopsD](https://github.com/shopsD) for assisting with support for Dienmern DM165A noise meter.

+ 1 - 0
DEVICES.md

@@ -923,6 +923,7 @@ port and password.
 - CO2-Box air quality monitor
 - C30W gas leak detector
 - CT20W PIR motion detector
+- Dienmern DM165A noise meter
 - E Chief SGH01 hydroponic planter
 - EM3390TF weather station (tested with Viflykoo branded device, probably identical to the same model number branded as Uzoli, Jely and others)
 - Emax EM3378 Weather Station (selling as Hiper P1 and other rebrands)

+ 39 - 0
custom_components/tuya_local/devices/dienmern_dm165a_noisemeter.yaml

@@ -0,0 +1,39 @@
+name: Noise meter
+products:
+  - id: yjebgze5hxevyji
+    manufacturer: Dienmern
+    model: DM165A
+entities:
+  - entity: sensor
+    class: sound_pressure
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: dBA
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: switch
+    name: Alarm
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+  - entity: sensor
+    class: humidity
+    dps:
+      - id: 19
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement