فهرست منبع

Add support for NOIEE plugs and update product info in relay_switch_remote nd simple_switch_timerv2

peteS-UK 1 سال پیش
والد
کامیت
bf47468e39

+ 65 - 0
custom_components/tuya_local/devices/nooie_nsp21_smartplug.yaml

@@ -0,0 +1,65 @@
+name: Nooie NSP21 SmartPlug
+products:
+  - id: e8dqdqxjgmilloml
+    name: NSP21
+primary_entity:
+  entity: switch
+  class: outlet
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+secondary_entities:
+  - entity: number
+    name: Countdown
+    category: config
+    dps:
+      - id: 9
+        type: integer
+        name: value
+        unit: mins
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: select
+    name: "Light Mode"
+    icon: "mdi:television-ambient-light"
+    category: config
+    dps:
+      - id: 40
+        type: string
+        name: option
+        mapping:
+          - dps_val: "relay"
+            value: "State"
+          - dps_val: "pos"
+            value: "Position"
+          - dps_val: "none"
+            value: "Off"
+  - entity: lock
+    name: "Child Lock"
+    category: config
+    dps:
+      - id: 41
+        type: boolean
+        name: lock
+  - entity: select
+    name: "Power on state"
+    icon: "mdi:toggle-switch"
+    category: config
+    dps:
+      - id: 38
+        type: string
+        name: option
+        mapping:
+          - dps_val: "on"
+            value: "On"
+          - dps_val: "off"
+            value: "Off"
+          - dps_val: "memory"
+            value: "Last state"
+
+

+ 50 - 0
custom_components/tuya_local/devices/nooie_pu13_smartplug.yaml

@@ -0,0 +1,50 @@
+name: Nooie PU13 SmartPlug
+products:
+  - id: eimdzrehi6a6vixn
+    name: PU13
+primary_entity:
+  entity: switch
+  class: outlet
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+secondary_entities:
+  - entity: number
+    name: Countdown
+    category: config
+    dps:
+      - id: 9
+        type: integer
+        name: value
+        unit: mins
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: lock
+    name: "Child Lock"
+    category: config
+    dps:
+      - id: 41
+        type: boolean
+        name: lock
+  - entity: select
+    name: "Power on state"
+    icon: "mdi:toggle-switch"
+    category: config
+    dps:
+      - id: 39
+        type: string
+        name: option
+        mapping:
+          - dps_val: 1
+            value: "On"
+          - dps_val: 0
+            value: "Off"
+          - dps_val: 2
+            value: "Last state"
+
+

+ 2 - 0
custom_components/tuya_local/devices/relay_switch_remote.yaml

@@ -2,6 +2,8 @@ name: Relay switch
 products:
   - id: 1aegphq4yfd50e6b
     name: 1-433
+  - id: fugkn1vkc53nvo1s
+    name: 1 Gang WiFi Smart Relay
 primary_entity:
   entity: switch
   dps:

+ 2 - 0
custom_components/tuya_local/devices/simple_switch_timerv2.yaml

@@ -4,6 +4,8 @@ products:
     name: Nexxt 220v smartplug
   - id: 45gg9a0jfyzj1z1d
     name: Mini smart switch
+  - id: qlrnevw57ezct7ta
+    name: On Wall WiFi Switch
 primary_entity:
   entity: switch
   dps: