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

Add support for GauTone PG-103 alarm

Luiz Fernando 2 лет назад
Родитель
Сommit
545601c9ba
1 измененных файлов с 127 добавлено и 0 удалено
  1. 127 0
      custom_components/tuya_local/devices/gautone_pg103_alarm.yaml

+ 127 - 0
custom_components/tuya_local/devices/gautone_pg103_alarm.yaml

@@ -0,0 +1,127 @@
+name: GauTone PG-103 alarm
+products:
+  - id: eb26b0818666ecd284o4qe
+    name: GauTone PG-103 alarm security system
+primary_entity:
+  entity: alarm_control_panel
+  dps:
+    - id: 1
+      type: string
+      name: alarm_state
+      mapping:
+        - dps_val: disarmed
+          value: disarmed
+        - dps_val: arm
+          value: armed_away
+        - dps_val: home
+          value: armed_home
+        - dps_val: sos
+          value: triggered
+    - id: 25
+      type: string
+      name: silence_siren
+    - id: 26
+      type: string
+      name: alarm_message
+    - id: 32
+      type: string
+      name: master_state
+    - id: 24
+      type: string
+      name: zone_attribute
+    - id: 36
+      type: string
+      name: sub_class
+    - id: 37
+      type: string
+      name: sub_type
+    - id: 38
+      type: string
+      name: sub_admin
+    - id: 39
+      type: string
+      name: sub_state
+    - id: 101
+      type: string
+      name: power_state
+    - id: 103
+      type: string
+      name: zone_attribute
+    - id: 104
+      type: string
+      name: zone_number
+    - id: 24
+      type: string
+      name: other_event
+secondary_entities:
+  - entity: number
+    name: Exit delay
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 2
+        type: integer
+        name: value
+        unit: sec
+        range:
+          min: 0
+          max: 1000
+  - entity: number
+    name: Entry delay
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 28
+        type: integer
+        name: value
+        unit: sec
+        range:
+          min: 0
+          max: 1000
+  - entity: number
+    name: Siren Duration
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 3
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 1000
+  - entity: switch
+    name: Alarm Sound
+    category: config
+    dps:
+      - id: 6
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Backlight
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Arm Beep
+    category: config
+    dps:
+      - id: 4
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Mode App Sound
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Alarm Message propel
+    category: config
+    dps:
+      - id: 27
+        type: boolean
+        name: switch