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

Add support for CBI Astute smartswitch

Issue #563
Jason Rumney 2 лет назад
Родитель
Сommit
3b58cfc759
3 измененных файлов с 101 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 99 0
      custom_components/tuya_local/devices/cbi_astute_outdoor_smartswitch.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -228,3 +228,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [blakadder](https://github.com/blakadder) for assisting with support for Ultonic K10 air fryer.
 - [blakadder](https://github.com/blakadder) for assisting with support for Ultonic K10 air fryer.
 - [szupi-ipuzs](https://github.com/szupi-ipuzs) for contributing support for desk lamps (Setti+ SL601) and Loratap relays.
 - [szupi-ipuzs](https://github.com/szupi-ipuzs) for contributing support for desk lamps (Setti+ SL601) and Loratap relays.
 - [MackoMici](https://github.com/MackoMici) for contributing support for GX aroma diffuser, which was merged with the YYM config.
 - [MackoMici](https://github.com/MackoMici) for contributing support for GX aroma diffuser, which was merged with the YYM config.
+- [Die-Meester](https://github.com/Die-Meester) for contributing support for CBI Astute smart switches.

+ 1 - 0
DEVICES.md

@@ -216,6 +216,7 @@ the best option.
 - Aubess 1-gang switch with energy monitoring
 - Aubess 1-gang switch with energy monitoring
 - Aubess 2-gang switch
 - Aubess 2-gang switch
 - Blitzwolf BW-SHP6 PRO smartplug with child lock
 - Blitzwolf BW-SHP6 PRO smartplug with child lock
+- CBI Astute smart controller
 - DIGOO DG-SP202 dual smartplug with energy monitoring and timers
 - DIGOO DG-SP202 dual smartplug with energy monitoring and timers
 - DIGOO DG-SP01 USB smartplug with night light
 - DIGOO DG-SP01 USB smartplug with night light
 - Dual power monitoring smartplug (Geex)
 - Dual power monitoring smartplug (Geex)

+ 99 - 0
custom_components/tuya_local/devices/cbi_astute_outdoor_smartswitch.yaml

@@ -0,0 +1,99 @@
+name: Astute smart controller
+products:
+  - id: xzgtyrqbab8lm2zo
+    name: CBI ASC switch
+primary_entity:
+  entity: switch
+  class: switch
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+secondary_entities:
+  - entity: number
+    category: config
+    name: Timer
+    icon: "mdi:timer"
+    dps:
+      - id: 7
+        type: integer
+        name: value
+        unit: sec
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 0
+            step: 1
+  - entity: select
+    category: config
+    name: Initial state
+    icon: "mdi:toggle-switch"
+    dps:
+      - id: 14
+        type: string
+        name: option
+        mapping:
+          - dps_val: "power_on"
+            value: "On"
+          - dps_val: "power_off"
+            value: "Off"
+          - dps_val: last
+            value: "Last State"
+  - entity: sensor
+    category: diagnostic
+    name: Energy
+    class: energy
+    dps:
+      - id: 20
+        name: sensor
+        type: integer
+        unit: Wh
+        class: measurement
+        force: true
+        readonly: true
+  - entity: sensor
+    category: diagnostic
+    class: current
+    name: Current
+    dps:
+      - id: 21
+        name: sensor
+        type: integer
+        class: measurement
+        force: true
+        unit: mA
+  - entity: sensor
+    category: diagnostic
+    class: power
+    name: Power
+    dps:
+      - id: 23
+        name: sensor
+        type: integer
+        class: measurement
+        force: true
+        unit: W
+        range:
+          min: 0
+          max: 50000
+        mapping:
+          - scale: 10
+            step: 1
+  - entity: sensor
+    category: diagnostic
+    class: voltage
+    name: Voltage
+    dps:
+      - id: 22
+        name: sensor
+        type: integer
+        class: measurement
+        force: true
+        unit: V
+        range:
+          min: 0
+          max: 5000
+        mapping:
+          - scale: 10
+            step: 1