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

Add support for VisorTech ZX-3150 smoke detector

Issue #393
Jason Rumney 3 лет назад
Родитель
Сommit
4d734c02f0

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -181,3 +181,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [berdahl](https://github.com/bergdahl) for contributing support for Stadler Eva humidifiers.
 - [dezinc57](https://github.com/dezinc57) for assistance supporting Fanco ceiling fan and light.
 - [hasio144](https://github.com/hasio144) for assistance supporting WF96L water level controllers.
+- [boekerolli](https://github.com/boekerolli) for assistance supporting VisorTech smoke alarms.

+ 1 - 0
DEVICES.md

@@ -268,3 +268,4 @@ generic configurations known to work with multiple brands of device.
 - Qoto 03 smart water valve / sprinkler controller
 - SD123 HPR01 human presence radar
 - Universal remote control (supports sensors only)
+- VisorTech ZX-3150 smoke detector

+ 64 - 0
custom_components/tuya_local/devices/visortech_smoke_detector.yaml

@@ -0,0 +1,64 @@
+name: Smoke detector
+product:
+  - id: mfslve3lrhjyglaw
+    name: VisorTech ZX-3150
+primary_entity:
+  entity: binary_sensor
+  name: 
+  class: smoke
+  dps:
+    - id: 1
+      type: string
+      name: sensor
+      mapping:
+        - dps_val: alarm
+          value: true
+        - value: false
+secondary_entities:
+  - entity: sensor
+    name: Status
+    category: diagnostic
+    dps:
+      - id: 1
+        type: string
+        name: sensor
+      - id: 11
+        type: bitfield
+        name: fault
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 11
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: sensor
+    name: Battery
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 14
+        type: string
+        name: sensor
+        unit: "%"
+        mapping:
+          - dps_val: low
+            value: 10
+          - dps_val: middle
+            value: 50
+          - dps_val: high
+            value: 80
+
+
+
+
+
+
+
+
+