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

Add support for InLine ultrasonic aroma diffuser

Issue #3132
Jason Rumney 8 месяцев назад
Родитель
Сommit
c1d2b8cf05

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -869,7 +869,7 @@ Further device support has been made with the assistance of users. Please consid
 - [Codeh4ck](https://github.com/Codeh4ck) for contributing improvements for Della air conditioner (supporting Sendo Hermes Gold).
 - [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.
-- [Lemckert](https://github.com/Lemckert) for assisting with support for Gologi dehumidifier.
+- [Lemckert](https://github.com/Lemckert) for assisting with support for Gologi dehumidifier and InLine ultrasonic aroma diffuser.
 - [Antoni950425](https://github.com/Antoni950425) for assisting with support for Zigbee smart air box BR V2.
 - [skylarhays](https://github.com/skylarhays) for assisting with support for Arknoah Aquarium lights.
 - [MichalSieciechowicz](https://github.com/MichalSieciechowicz) for contributing support for Manta Windy weather station.

+ 1 - 0
DEVICES.md

@@ -395,6 +395,7 @@
 - Delixing KCL-1802A-M aroma diffuser
 - Ditua DT-1522-YN aroma diffuser
 - Etersky aroma diffuser with light
+- InLine ultrasonic aroma diffuser
 - Maxico aroma diffuser with light (cannot be differentiated automatically from Ditua above)
 - Tesla Smart aroma diffuser with light
 - YX-025 WB aroma diffuser

+ 146 - 0
custom_components/tuya_local/devices/inline_ultrasonic_aromadiffuser.yaml

@@ -0,0 +1,146 @@
+name: Aroma diffuser
+products:
+  - id: jhScexmS2WhfeOnt
+    manufacturer: InLine
+entities:
+  - entity: fan
+    translation_key: aroma_diffuser
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      - id: 2
+        name: speed
+        type: string
+        optional: true
+        mapping:
+          - dps_val: large
+            value: 100
+          - dps_val: middle
+            value: 66
+          - dps_val: small
+            value: 33
+  - entity: light
+    translation_key: nightlight
+    dps:
+      - id: 5
+        name: switch
+        type: boolean
+        optional: true
+      - id: 6
+        name: effect
+        type: string
+        optional: true
+        mapping:
+          - dps_val: colour
+            value: "off"
+          - dps_val: colourful1
+            value: Colorful
+          - value: "off"
+            hidden: true
+      - id: 7
+        type: integer
+        optional: true
+        name: brightness
+        range:
+          min: 0
+          max: 255
+      - id: 8
+        name: rgbhsv
+        type: hex
+        optional: true
+        format:
+          - name: r
+            bytes: 1
+          - name: g
+            bytes: 1
+          - name: b
+            bytes: 1
+          - name: h
+            bytes: 2
+            range:
+              min: 0
+              max: 360
+          - name: s
+            bytes: 1
+            range:
+              min: 0
+              max: 255
+          - name: v
+            bytes: 1
+            range:
+              min: 0
+              max: 255
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 3
+        name: option
+        type: string
+        optional: true
+        mapping:
+          - dps_val: "cancel"
+            value: cancel
+          - dps_val: "1"
+            value: "1h"
+          - dps_val: "3"
+            value: "3h"
+          - dps_val: "6"
+            value: "6h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 4
+        type: integer
+        optional: true
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: 1
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 22
+        type: bitfield
+        name: fault_code
+        optional: true
+  - entity: binary_sensor
+    translation_key: tank_empty
+    dps:
+      - id: 22
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 1
+            value: true
+          - value: false
+  - entity: switch
+    dps:
+      - id: 10
+        type: boolean
+        optional: true
+        name: switch
+  - entity: switch
+    name: keytone
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        optional: true
+        name: switch
+