Kaynağa Gözat

feat (devices): add Taffware 1P-J-63 circuit breaker

Issue #4015
Jason Rumney 1 ay önce
ebeveyn
işleme
5674a26e93

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1208,3 +1208,4 @@ Further device support has been made with the assistance of users. Please consid
 - [kensru](https://github.com/kensru) for assisting with support for Aquaviva AVH15S combo heat pump.
 - [square-spade](https://github.com/square-spade) for contributing improvements for BLE Pulido P13 lock.
 - [bartowl](https://github.com/bartowl) for contributing support for Junsun 32A EV charger.
+- [bitcoin1192](https://github.com/bitcoin1192) for assisting with support for Taffware 1P-J-63 circuit breaker.

+ 1 - 0
DEVICES.md

@@ -585,6 +585,7 @@
 - SmartMCB SMT006 energy meter (10 byte and 8 byte phase info variants)
 - Solar Grid/Smart GTB series solar inverter
 - Stepuptech SG800, SPD800 solar inverters
+- Taffware 1P-J-63 circuit breaker
 - Taxnele circuit breaker and energy meter
 - TOMPD-63LW, 63-WIFI energy meter circuit breakers
 - Tomzn energy meter

+ 134 - 0
custom_components/tuya_local/devices/taffware_1pj63_breaker.yaml

@@ -0,0 +1,134 @@
+name: Circuit breaker
+products:
+  - id: ifig8xvdbelujwt5
+    manufacturer: Taffware
+    model: "1P-J-63"
+entities:
+  - entity: switch
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 21
+        type: bitfield
+        optional: true
+        name: test_bit
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 9
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399
+  - entity: sensor
+    class: current
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: A
+        class: measurement
+        mapping:
+          - scale: 1000
+      - id: 23
+        type: integer
+        optional: true
+        name: calibration
+  - entity: sensor
+    class: power
+    dps:
+      - id: 19
+        type: integer
+        name: sensor
+        unit: W
+        class: measurement
+        mapping:
+          - scale: 10
+      - id: 17
+        type: integer
+        optional: true
+        name: add_ele
+      - id: 24
+        type: integer
+        optional: true
+        name: calibration
+      - id: 25
+        type: integer
+        optional: true
+        name: ele_calibration
+  - entity: sensor
+    class: voltage
+    dps:
+      - id: 20
+        type: integer
+        name: sensor
+        unit: V
+        class: measurement
+        mapping:
+          - scale: 10
+      - id: 22
+        type: integer
+        optional: true
+        name: calibration
+  - entity: select
+    translation_key: initial_state
+    category: config
+    dps:
+      - id: 38
+        type: string
+        name: option
+        mapping:
+          - dps_val: "off"
+            value: "off"
+          - dps_val: "on"
+            value: "on"
+          - dps_val: memory
+            value: memory
+  - entity: select
+    translation_key: light_mode
+    category: config
+    dps:
+      - id: 40
+        type: string
+        name: option
+        mapping:
+          - dps_val: relay
+            value: state
+          - dps_val: pos
+            value: locator
+          - dps_val: none
+            value: "off"
+          - dps_val: "on"
+            value: "on"
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 41
+        type: boolean
+        name: lock
+  - entity: text
+    name: Schedule
+    category: config
+    icon: "mdi:calendar-clock"
+    hidden: true
+    dps:
+      - id: 42
+        type: string
+        optional: true
+        name: value
+  - entity: switch
+    name: Live updates
+    category: config
+    dps:
+      - id: 66
+        type: string
+        name: switch
+        mapping:
+          - dps_val: online
+            value: true
+          - dps_val: offline
+            value: false