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

feat (devices): add support for Boundless Brothers gas alarm

Issue #3786
Jason Rumney 4 месяцев назад
Родитель
Сommit
7943f03472

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1077,3 +1077,4 @@ Further device support has been made with the assistance of users. Please consid
 - [banemonster](https://github.com/banemonster) for contributing support for Neopower Black Diamond all-in-one heat pump water heater.
 - [ajpohv](https://github.com/ajpohv) for contributing support for Qlima D720 dehumidifier.
 - [sport80](https://github.com/sport80) for assisting with support for Ettroit LN4102 thermostat.
+- [norb-HB](https://github.com/norb-HB) for assisting with support for Boundless Brothers PA-210W gas alarm.

+ 1 - 0
DEVICES.md

@@ -1031,6 +1031,7 @@ port and password.
 - Aquark Mr. Pure salt pool chlorinator
 - ASIP-0622 indoor planter
 - Bcetasy 18-in-1 air quality monitor
+- Boundless Brothers PA-210W gas alarm
 - Brennenstuhl WFD3050P PIR motion activated CCT spotlight
 - Bresser Smart 7-in-1 weather station
 - Bresser Smart Thermo-hygrometer

+ 56 - 0
custom_components/tuya_local/devices/boundless_pa210w_gasalarm.yaml

@@ -0,0 +1,56 @@
+name: Gas alarm
+products:
+  - id: bnfiludpq3myldf9
+    manufacturer: Boundless Brothers
+    model: PA-210W
+entities:
+  - entity: binary_sensor
+    class: gas
+    category: diagnostic
+    dps:
+      - id: 2
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: alarm
+            value: true
+          - value: false
+  - entity: sensor
+    name: Gas
+    icon: "mdi:fire-circle"
+    category: diagnostic
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: LEL
+        class: measurement
+      - id: 11
+        type: boolean
+        name: lifecycle
+  - entity: button
+    name: Mute
+    icon: "mdi:volume-mute"
+    category: config
+    dps:
+      - id: 14
+        type: boolean
+        optional: true
+        name: button
+      - id: 101
+        type: string
+        name: language
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 45
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 45
+        type: bitfield
+        name: fault_code