Explorar el Código

Add support for Zigbee smart air box BR V2

Issue #2932

- commit Gologi dehumidifier config (only docs went in previous commit).
Jason Rumney hace 11 meses
padre
commit
11304d6acd

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -870,3 +870,4 @@ Further device support has been made with the assistance of users. Please consid
 - [comcowo](https://github.com/comcowo) for contributing improvements to Powerworld PW58330 water heater.
 - [comcowo](https://github.com/comcowo) for contributing improvements to Powerworld PW58330 water heater.
 - [shyfxshadow](https://github.com/shyfxshadow) for assisting with support for EleChico CCST6001 thermostat.
 - [shyfxshadow](https://github.com/shyfxshadow) for assisting with support for EleChico CCST6001 thermostat.
 - [Lemckert](https://github.com/Lemckert) for assisting with support for Gologi dehumidifier.
 - [Lemckert](https://github.com/Lemckert) for assisting with support for Gologi dehumidifier.
+- [Antoni950425](https://github.com/Antoni950425) for assisting with support for Zigbee smart air box BR V2.

+ 2 - 1
DEVICES.md

@@ -938,8 +938,8 @@ port and password.
 
 
 ### Miscellaneous
 ### Miscellaneous
 
 
-- generic PIR motion sensor
 - generic illuminance sensor (2 types using different dps)
 - generic illuminance sensor (2 types using different dps)
+- generic PIR motion sensor
 - generic smoke detector
 - generic smoke detector
 - Air Housekeeper 6-in-1 air quality monitor
 - Air Housekeeper 6-in-1 air quality monitor
 - Akai heat pump clothes dryer
 - Akai heat pump clothes dryer
@@ -1071,6 +1071,7 @@ entity types as sub devices.
 - Nedis ZBSD10WT door/window sensor
 - Nedis ZBSD10WT door/window sensor
 - Nedis ZBSC10WT temperature and humidity sensor
 - Nedis ZBSC10WT temperature and humidity sensor
 - PY321-Z-TY energy meter
 - PY321-Z-TY energy meter
+- Smart air box BR V2
 - Temperature and humidity sensor with alarm feature
 - Temperature and humidity sensor with alarm feature
 - WL-898WZ water leak sensor
 - WL-898WZ water leak sensor
 - WL-RTCZ-05Z human presence sensor
 - WL-RTCZ-05Z human presence sensor

+ 55 - 0
custom_components/tuya_local/devices/airquality5in1.yaml

@@ -0,0 +1,55 @@
+name: Air quality monitor
+products:
+  - id: yvx5lh6k
+    model: Zigbee smart air box
+entities:
+  - entity: sensor
+    class: carbon_dioxide
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: ppm
+        class: measurement
+  - entity: sensor
+    class: temperature
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: C
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    class: humidity
+    dps:
+      - id: 19
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Volatile organic compounds
+    class: volatile_organic_compounds_parts
+    dps:
+      - id: 21
+        type: integer
+        name: sensor
+        unit: ppm
+        class: measurement
+        mapping:
+          - scale: 10
+  - entity: sensor
+    name: Formaldehyde
+    class: volatile_organic_compounds
+    dps:
+      - id: 22
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+        mapping:
+          - scale: 0.1

+ 76 - 0
custom_components/tuya_local/devices/gologi_dehumidifier.yaml

@@ -0,0 +1,76 @@
+name: Dehumidifier
+products:
+  - id: lsaqajsvhpjq0mmp
+    manufacturer: Gologi
+    model: GO021
+entities:
+  - entity: fan
+    translation_key: dehumidifier
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 4
+        type: string
+        optional: true
+        name: speed
+        mapping:
+          - dps_val: low
+            value: 33
+          - dps_val: mid
+            value: 66
+          - dps_val: high
+            value: 100
+          - value: 0
+            hidden: true
+      - id: 5
+        type: string
+        optional: true
+        name: preset_mode
+        mapping:
+          - dps_val: v
+            value: purify
+          - dps_val: n
+            value: dehumidify
+          - value: purify
+            hidden: true
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 17
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "2H"
+            value: "2h"
+          - dps_val: "4H"
+            value: "4h"
+          - value: cancel
+            hidden: true
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 19
+        type: bitfield
+        name: fault_code