فهرست منبع

Add support for PCIe computer power pro version

Ben 1 سال پیش
والد
کامیت
236540d96c
1فایلهای تغییر یافته به همراه82 افزوده شده و 0 حذف شده
  1. 82 0
      custom_components/tuya_local/devices/jh_pcpro+.yaml

+ 82 - 0
custom_components/tuya_local/devices/jh_pcpro+.yaml

@@ -0,0 +1,82 @@
+name: Pcie computer power pro
+products:
+  - id: rtbhfbuii82scjrp
+    name: pcie pc pro power switch
+primary_entity:
+  entity: switch
+  class: outlet
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+      
+ 
+secondary_entities:
+  - entity: button
+    name: Reset
+    icon: mdi:restart
+    dps:
+      - id: 101
+        name: button
+        type: string
+        mapping:
+          - dps_val: Reset
+            value: true
+  - entity: button
+    name: Force reset
+    icon: mdi:restart-alert
+    dps:
+      - id: 101
+        name: button
+        type: string
+        mapping:
+          - dps_val: forceReset
+            value: true
+  - entity: switch
+    name: Rf pairing
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Buzzer
+    category: config
+    dps:
+      - id: 8
+        type: boolean
+        name: switch
+  - entity: select
+    name: Power on behavior
+    icon: mdi:power-settings
+    category: config
+    dps:
+      - id: 38
+        type: string
+        name: option
+        mapping:
+          - dps_val: "on"
+            value: "on"
+          - dps_val: "off"
+            value: "off"
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 40
+        type: boolean
+        name: lock
+  - entity: switch
+    name: Rf remote control
+    icon: mdi:remote
+    category: config
+    dps:
+      - id: 102
+        type: string
+        name: switch
+        mapping:
+          - dps_val: "on"
+            value: true
+          - dps_val: "off"
+            value: false
+