Explorar o código

Dual power monitor smartplugV2: add compatible FreshLink device

- add attributes for random_schedule and inching.
- add optional entity for Light mode.

PR #3042
Jason Rumney hai 11 meses
pai
achega
7a9f311edf

+ 38 - 0
custom_components/tuya_local/devices/dual_power_monitor_smartplugv2.yaml

@@ -10,6 +10,9 @@ products:
     manufacturer: Kogan
     model: IP44 outdoor dual
     model_id: KASMPLGOD2A
+  - id: gijt75s5nj2lmlup
+    manufacturer: FreshLink
+    model: Smart socket with USB
 entities:
   - entity: switch
     translation_key: outlet_x
@@ -36,6 +39,14 @@ entities:
         type: string
         name: schedule
         optional: true
+      - id: 43
+        type: string
+        optional: true
+        name: random_schedule
+      - id: 44
+        type: string
+        optional: true
+        name: inching
   - entity: switch
     translation_key: outlet_x
     translation_placeholders:
@@ -158,6 +169,33 @@ entities:
             value: memory
           - dps_val: null
             invalid: true
+  - entity: select
+    name: Light mode
+    icon: "mdi:circle-double"
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 40
+        type: string
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 40
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: relay
+            value: State
+          - dps_val: pos
+            value: Position
+          - dps_val: none
+            value: "Off"
+          - dps_val: "on"
+            value: "On"
   - entity: lock
     translation_key: child_lock
     category: config