Răsfoiți Sursa

Moes RFIR remote: merge into identical S11 RFIR remote

S11 was previously able to be added when set to scene 1.
Moes was added after product id matching was available to match the no
dps case.

By making all dps optional, both these remotes can match the same
config without the setting to scene 1 workaround.
Jason Rumney 1 an în urmă
părinte
comite
8eabb5af4e

+ 0 - 33
custom_components/tuya_local/devices/moes_rfir_remote.yaml

@@ -1,33 +0,0 @@
-name: Remote controller
-products:
-  - id: wbaloeb3kiwwhads
-    name: Moes RF/IR remote
-  - id: 0gawnyfgyneswent
-    name: IR Controller Pro
-primary_entity:
-  entity: remote
-  dps:
-    - id: 201
-      name: send
-      type: string
-      optional: true
-    - id: 202
-      name: receive
-      type: string
-      optional: true
-      persist: false
-    - id: 1
-      type: string
-      name: scene_1
-    - id: 2
-      type: string
-      optional: true
-      name: scene_2
-    - id: 3
-      type: string
-      optional: true
-      name: scene_3
-    - id: 4
-      type: string
-      optional: true
-      name: scene_4

+ 6 - 0
custom_components/tuya_local/devices/s11_rfir_remote.yaml

@@ -1,7 +1,12 @@
 name: Remote control
+legacy_type: moes_rfir_remote
 products:
   - id: nwpvjlq7qacvnqf3
     name: S11+ (IR+RF Pro)
+  - id: wbaloeb3kiwwhads
+    name: Moes RF/IR remote
+  - id: 0gawnyfgyneswent
+    name: IR Controller Pro
 primary_entity:
   entity: remote
   dps:
@@ -17,6 +22,7 @@ primary_entity:
     - id: 1
       type: string
       name: scene_1
+      optional: true
     - id: 2
       type: string
       optional: true