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

feat (devices): add Breville Smart Mist Glow Connect humidifier

Issue #4580
Jason Rumney 1 день назад
Родитель
Сommit
ab51633dd0

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1323,3 +1323,4 @@ Further device support has been made with the assistance of users. Please consid
 - [JxxIT](https://github.com/JxxIT) for contributing improvements to vscode config.
 - [starfire0606](https://github.com/starfire0606) for contributing support for RGB48 RGBIC string light.
 - [osxisl](https://github.com/osxisl) for assisting with support for Juro-Pro 2006 dehumidifier.
+- [thisistotallyshaun](https://github.com/thisistotallyshaun) for assisting with support for Breville Smart Mist Glow Connect humidifier.

+ 1 - 0
DEVICES.md

@@ -516,6 +516,7 @@
 - AlecoAir PU55 Humino humidifier
 - Arida Eva humidifier
 - BlitzWolf BW-SH2, BW-SH5 humidifiers
+- Breville Smart Mist Glow Connect humidifier
 - Carro VES1011 humidifier
 - Clean Air Optima CA-604B, CA-605B, CA-607B humidifiers
 - Clofte Duo 400 humidifier

+ 157 - 0
custom_components/tuya_local/devices/breville_smartmistglowconnect_humidifier.yaml

@@ -0,0 +1,157 @@
+name: Humidifier
+products:
+  - id: i8rxusuw56e1kr3q
+    manufacturer: Breville
+    model: Smart Mist Glow Connect
+entities:
+  - entity: humidifier
+    class: humidifier
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 14
+        type: integer
+        name: current_humidity
+      - id: 102
+        type: string
+        name: humidity
+        range:
+          min: 30
+          max: 75
+        mapping:
+          - dps_val: "30H"
+            value: 30
+          - dps_val: "35H"
+            value: 35
+          - dps_val: "40H"
+            value: 40
+          - dps_val: "45H"
+            value: 45
+          - dps_val: "50H"
+            value: 50
+          - dps_val: "55H"
+            value: 55
+          - dps_val: "60H"
+            value: 60
+          - dps_val: "65H"
+            value: 65
+          - dps_val: "70H"
+            value: 70
+          - dps_val: "75H"
+            value: 75
+  - entity: light
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+        readonly: true
+      - id: 6
+        name: effect
+        type: string
+        mapping:
+          - dps_val: cancel
+            value: "off"
+          - dps_val: colourful
+            value: Colourful
+          - dps_val: mint_green
+            value: Mint green
+          - dps_val: sunset_yellow
+            value: Sunset yellow
+          - dps_val: orange_yellow
+            value: Orange yellow
+          - dps_val: cherry_pink
+            value: Cherry pink
+          - dps_val: sky_blue
+            value: Sky blue
+          - dps_val: lake_blue
+            value: Lake blue
+          - dps_val: ice_blue
+            value: Ice blue
+      - id: 105
+        name: rgbhsv
+        optional: true
+        type: hex
+        format:
+          - name: h
+            bytes: 2
+            range:
+              min: 0
+              max: 360
+          - name: s
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+          - name: v
+            bytes: 2
+            range:
+              min: 0
+              max: 1000
+  - entity: switch
+    translation_key: sleep
+    dps:
+      - id: 16
+        type: boolean
+        name: switch
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+          - dps_val: "7h"
+            value: "7h"
+          - dps_val: "8h"
+            value: "8h"
+          - dps_val: "9h"
+            value: "9h"
+          - dps_val: "10h"
+            value: "10h"
+          - dps_val: "11h"
+            value: "11h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 20
+        type: integer
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    translation_key: tank_empty
+    dps:
+      - id: 101
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: No_water
+            value: true
+          - value: false
+  - entity: binary_sensor
+    name: Tank removed
+    dps:
+      - id: 101
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: No_tank
+            value: true
+          - value: false