Просмотр исходного кода

feat(devices): add positivo_remote_control

According to info on issue #5371 this remote differs from hircr_remote_control in that
it sends commands using the study_key command and dp instead of the usual "send_ir".
Jason Rumney 1 неделя назад
Родитель
Сommit
a2732bbd6a
1 измененных файлов с 91 добавлено и 0 удалено
  1. 91 0
      custom_components/tuya_local/devices/positivo_remote_control.yaml

+ 91 - 0
custom_components/tuya_local/devices/positivo_remote_control.yaml

@@ -0,0 +1,91 @@
+name: IR remote control
+products:
+  - id: lwpag3bu0faaowlj
+    manufacturer: Positivo
+    model: Smart Controle Universal V2 H5
+entities:
+  - entity: remote
+    dps:
+      - id: 1
+        type: string
+        name: control
+        mapping:
+          - dps_val: study_key
+            value: send_ir
+      - id: 2
+        type: string
+        optional: true
+        persist: false
+        name: receive
+      - id: 3
+        type: string
+        optional: true
+        name: send_not_working
+      - id: 4
+        type: string
+        optional: true
+        name: key_code
+      - id: 5
+        type: string
+        optional: true
+        name: key_code2
+      - id: 6
+        type: string
+        optional: true
+        name: key_code3
+      - id: 7
+        type: string
+        optional: true
+        name: send
+      - id: 8
+        type: string
+        optional: true
+        name: key_study2
+      - id: 9
+        type: string
+        optional: true
+        name: key_study3
+      - id: 10
+        type: integer
+        optional: true
+        name: delay
+        range:
+          min: 0
+          max: 65535
+        mapping:
+          - scale: 10
+        unit: ms
+      - id: 11
+        type: string
+        optional: true
+        name: key_code4
+      - id: 12
+        type: string
+        optional: true
+        name: key_study4
+      - id: 13
+        type: integer
+        optional: true
+        name: code_type
+        range:
+          min: 0
+          max: 255
+  - entity: infrared
+    dps:
+      - id: 1
+        type: string
+        name: control
+        mapping:
+          - dps_val: study_key
+            value: send_ir
+      - id: 7
+        type: string
+        optional: true
+        name: send
+      - id: 13
+        type: integer
+        optional: true
+        name: code_type
+        range:
+          min: 0
+          max: 255