ソースを参照

Add HLG Infinity Alarm

Bruno Henrique 1 年間 前
コミット
294701885c
2 ファイル変更333 行追加0 行削除
  1. 1 0
      DEVICES.md
  2. 332 0
      custom_components/tuya_local/devices/hlg_infinity_alarm.yaml

+ 1 - 0
DEVICES.md

@@ -756,6 +756,7 @@ port and password.
 - BlitzWolf BW-IS6 security alarm system
 - Digoo DG-HAMB GSM security alarm system 
 - GauTone PG-103 security alarm system
+- HLG Infinity Alarm
 - Smart alarm siren (unbranded)
 - TS106 alarm system
 - Wolf Guard WT2R alarm system

+ 332 - 0
custom_components/tuya_local/devices/hlg_infinity_alarm.yaml

@@ -0,0 +1,332 @@
+name: HLG Infinity Alarm
+primary_entity:
+  entity: sensor
+  icon: "mdi:clipboard-text-clock"
+  dps:
+    - id: 33
+      type: string
+      name: sensor
+secondary_entities:
+  - entity: sensor
+    name: Sector 1
+    icon: "mdi:numeric-1-circle"
+    class: enum
+    category: diagnostic
+    dps:
+      - id: 101
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: Armado
+            value: Armed
+          - dps_val: Desarmado
+            value: Disarmed
+          - dps_val: Memoria
+            value: Memory
+          - dps_val: Disparado
+            value: Triggered
+  - entity: sensor
+    name: Sector 2
+    icon: "mdi:numeric-2-circle"
+    class: enum
+    category: diagnostic
+    dps:
+      - id: 102
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: Armado
+            value: Armed
+          - dps_val: Desarmado
+            value: Disarmed
+          - dps_val: Memoria
+            value: Memory
+          - dps_val: Disparado
+            value: Triggered
+  - entity: sensor
+    name: Sector 3
+    icon: "mdi:numeric-3-circle"
+    class: enum
+    category: diagnostic
+    dps:
+      - id: 103
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: Armado
+            value: Armed
+          - dps_val: Desarmado
+            value: Disarmed
+          - dps_val: Memoria
+            value: Memory
+          - dps_val: Disparado
+            value: Triggered
+  - entity: sensor
+    name: Sector 4
+    icon: "mdi:numeric-4-circle"
+    class: enum
+    category: diagnostic
+    dps:
+      - id: 104
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: Armado
+            value: Armed
+          - dps_val: Desarmado
+            value: Disarmed
+          - dps_val: Memoria
+            value: Memory
+          - dps_val: Disparado
+            value: Triggered
+  - entity: select
+    name: Turn Sector On/Off
+    icon: "mdi:power-cycle"
+    category: config
+    dps:
+      - id: 105
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "Todos"
+            value: "All Sectors"
+          - dps_val: "S1"
+            value: "Sector 1"
+          - dps_val: "S2"
+            value: "Sector 2"
+          - dps_val: "S3"
+            value: "Sector 3"
+          - dps_val: "S4"
+            value: "Sector 4"
+          - dps_val: "S1_S2"
+            value: "Sectors: 1 and 2"
+          - dps_val: "S3_S4"
+            value: "Sectors: 3 and 4"
+          - dps_val: "S1_S2_S3"
+            value: "Sectors: 1, 2 and 3"
+          - dps_val: "S2_S3_S4"
+            value: "Sectors: 2, 3 and 4"
+  - entity: switch
+    name: Siren
+    icon: "mdi:volume-high"
+    category: config
+    dps:
+      - id: 106
+        type: boolean
+        name: switch
+  - entity: switch
+    name: LED
+    icon: "mdi:led-off"
+    category: config
+    dps:
+      - id: 107
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Panic
+    icon: "mdi:alert-decagram"
+    category: config
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+  - entity: sensor
+    name: Last Event
+    icon: "mdi:clipboard-text-clock"
+    class: enum
+    category: diagnostic
+    dps:
+      - id: 109
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: ARMADO
+            value: ARMED
+          - dps_val: DESARMADO
+            value: DISARMED
+          - dps_val: DISPARADO
+            value: TRIGGERED
+          - dps_val: MEMORIA
+            value: MEMORY
+          - dps_val: LED_ON
+            value: LED_ON
+          - dps_val: LED_OFF
+            value: LED_OFF
+          - dps_val: PANICO_ON
+            value: PANIC_ON
+          - dps_val: PANICO_OFF
+            value: PANIC_OFF
+          - dps_val: SIRENE_ON
+            value: SIREN_ON
+          - dps_val: SIRENE_OFF
+            value: SIREN_OFF
+          - dps_val: REINICIADO
+            value: RESTARTED
+  - entity: switch
+    name: Beep Siren When Sector On/Off
+    category: config
+    dps:
+      - id: 110
+        type: boolean
+        name: switch
+  - entity: select
+    name: Learn Remote Control
+    icon: "mdi:remote"
+    category: config
+    dps:
+      - id: 111
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "S1_S2_S3_S4"
+            value: "All Sectors"
+          - dps_val: "S1"
+            value: "Sector 1"
+          - dps_val: "S2"
+            value: "Sector 2"
+          - dps_val: "S3"
+            value: "Sector 3"
+          - dps_val: "S4"
+            value: "Sector 4"
+          - dps_val: "S1_S2"
+            value: "Sectors: 1 and 2"
+          - dps_val: "S3_S4"
+            value: "Sectors: 3 and 4"
+          - dps_val: "S1_S3"
+            value: "Sectors: 1 and 3"
+          - dps_val: "S1_S4"
+            value: "Sectors: 1 and 4"
+          - dps_val: "S2_S3"
+            value: "Sectors: 2 and 3"
+          - dps_val: "S2_S4"
+            value: "Sectors: 2 and 4"
+          - dps_val: "S1_S2_S3"
+            value: "Sectors: 1, 2 and 3"
+          - dps_val: "S2_S3_S4"
+            value: "Sectors: 2, 3 and 4"
+          - dps_val: "S1_S3_S4"
+            value: "Sectors: 1, 3 and 4"
+          - dps_val: "S1_S2_S4"
+            value: "Sectors: 1, 2 and 4"
+          - dps_val: "PANICO"
+            value: "Panic"
+          - dps_val: "CANCEL"
+            value: "Cancel"
+  - entity: select
+    name: Learn Sensor
+    icon: "mdi:motion-sensor"
+    category: config
+    dps:
+      - id: 112
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "S1"
+            value: "Sector 1"
+          - dps_val: "S2"
+            value: "Sector 2"
+          - dps_val: "S3"
+            value: "Sector 3"
+          - dps_val: "S4"
+            value: "Sector 4"
+          - dps_val: "CANCEL"
+            value: "Cancel"
+  - entity: sensor
+    name: Number of Buttons
+    icon: "mdi:remote"
+    category: diagnostic
+    dps:
+      - id: 113
+        type: integer
+        name: sensor
+        unit: "buttons"
+  - entity: sensor
+    name: Number of Sensors
+    icon: "mdi:motion-sensor"
+    category: diagnostic
+    dps:
+      - id: 114
+        type: integer
+        name: sensor
+        optional: true
+        unit: "sensors"
+  - entity: binary_sensor
+    name: Power Line
+    icon: "mdi:power-plug"
+    category: diagnostic
+    dps:
+      - id: 115
+        type: boolean
+        name: sensor
+        mapping:
+          - dps_val: true
+            value: "Power Line"
+          - dps_val: false
+            value: "Battery"
+  - entity: binary_sensor
+    name: Battery Low Sector 1
+    icon: "mdi:battery-alert"
+    category: diagnostic
+    dps:
+      - id: 116
+        type: boolean
+        name: sensor
+  - entity: binary_sensor
+    name: Battery Low Sector 2
+    icon: "mdi:battery-alert"
+    category: diagnostic
+    dps:
+      - id: 117
+        type: boolean
+        name: sensor
+  - entity: binary_sensor
+    name: Battery Low Sector 3
+    icon: "mdi:battery-alert"
+    category: diagnostic
+    dps:
+      - id: 118
+        type: boolean
+        name: sensor
+  - entity: binary_sensor
+    name: Battery Low Sector 4
+    icon: "mdi:battery-alert"
+    category: diagnostic
+    dps:
+      - id: 119
+        type: boolean
+        name: sensor
+  - entity: sensor
+    name: Sector 1 Name
+    icon: "mdi:numeric-1-circle-outline"
+    category: diagnostic
+    dps:
+      - id: 120
+        type: string
+        name: sensor
+  - entity: sensor
+    name: Sector 2 Name
+    icon: "mdi:numeric-2-circle-outline"
+    category: diagnostic
+    dps:
+      - id: 121
+        type: string
+        name: sensor
+  - entity: sensor
+    name: Sector 3 Name
+    icon: "mdi:numeric-3-circle-outline"
+    category: diagnostic
+    dps:
+      - id: 122
+        type: string
+        name: sensor
+  - entity: sensor
+    name: Sector 4 Name
+    icon: "mdi:numeric-4-circle-outline"
+    category: diagnostic
+    dps:
+      - id: 123
+        type: string
+        name: sensor