Преглед изворни кода

feat(devices): add support for Aeno KS1S kitchen scale

Issue #3290
Jason Rumney пре 8 месеци
родитељ
комит
63417da5c9
3 измењених фајлова са 90 додато и 1 уклоњено
  1. 1 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 88 0
      custom_components/tuya_local/devices/aeno_ks1s_kitchenscale.yaml

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -172,7 +172,7 @@ Further device support has been made with the assistance of users. Please consid
 - [mypixies](https://github.com/mypixies) for assisting with support for Moes dimmer switch.
 - [BeardedTinker](https://github.com/BeardedTinker) for assisting with support for SG600MD smart inverter.
 - [LeandroIssa](https://github.com/LeandroIssa) for contributing Brazilian Portuguese translations.
-- [YuriiMaiboroda](https://github.com/YuriiMaiboroda) for contributing Ukrainian translations, docfixes, support for THB2 temp and humidity sensor and assistance supporting Elivco smartplugs and helping support others.
+- [YuriiMaiboroda](https://github.com/YuriiMaiboroda) for contributing Ukrainian translations, docfixes, support for THB2 temp and humidity sensor and assistance supporting Elivco smartplug, Aeno kitchen scale and helping support others.
 - [samios88](https://github.com/samios88) for assistance supporting Nedis pet feeders.
 - [janchrillesen](https://github.com/janchrillesen) for assistance supporting Nedis air quality monitors.
 - [Celezak](https://github.com/Celezak) for assistance supporting Qnect 3 outlet + USB powerstrips.

+ 1 - 0
DEVICES.md

@@ -414,6 +414,7 @@
 ### Kitchen Appliances
 
 - Aeno EK7S kettle
+- Aeno KS1S kitchen scale
 - Anko 1.7L smart kettle
 - Ciarra CBCS4850 range hood
 - Casdon TD Pro 2 oven

+ 88 - 0
custom_components/tuya_local/devices/aeno_ks1s_kitchenscale.yaml

@@ -0,0 +1,88 @@
+name: Kitchen scale
+products:
+  - id: wuimqx2t
+    manufacturer: Aeno
+    model: KS1S
+    model_id: EC5402-BT
+entities:
+  - entity: sensor
+    class: weight
+    dps:
+      - id: 1
+        type: integer
+        name: sensor
+        unit: g
+        class: measurement
+  - entity: button
+    name: Tare
+    icon: "mdi:bowl-outline"
+    dps:
+      - id: 2
+        type: boolean
+        name: button
+  - entity: select
+    name: Units
+    icon: "mdi:clock-digital"
+    category: config
+    dps:
+      - id: 3
+        type: string
+        name: option
+        mapping:
+          - dps_val: g
+            value: g
+          - dps_val: oz
+            value: oz
+          - dps_val: lb_oz
+            value: lb oz
+          - dps_val: ml
+            value: mL
+          - dps_val: fl_oz
+            constraint: system
+            conditions:
+              - dps_val: fl_oz_us
+                value: US fl.oz
+              - dps_val: fl_oz_eu
+                value: Imperial fl.oz
+      - id: 8
+        type: string
+        name: system
+        hidden: true
+      - id: 4
+        type: string
+        name: data_identification
+  - entity: binary_sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 5
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: low
+            value: true
+          - value: false
+  - entity: sensor
+    name: Realtime
+    class: weight
+    hidden: true
+    dps:
+      - id: 6
+        type: integer
+        name: sensor
+        unit: g
+        class: measurement
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 7
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 7
+        type: bitfield
+        name: fault_code