Răsfoiți Sursa

Add support for TS106 alarm system

Issue #2147
Jason Rumney 1 an în urmă
părinte
comite
8e5d273469
3 a modificat fișierele cu 126 adăugiri și 1 ștergeri
  1. 2 1
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 123 0
      custom_components/tuya_local/devices/ts106_alarm.yaml

+ 2 - 1
ACKNOWLEDGEMENTS.md

@@ -643,4 +643,5 @@ Further device support has been made with the assistance of users. Please consid
 - [tv4you2016](https://github.com/tv4you2016) for contributing support for Cecotec ForceClima Soundless air conditioner.
 - [danieljohngomez](https://github.com/danieljohngomez) for assisting with support for BSTUOKEY invisible door lock.
 - [robinhood-code](https://github.com/robinhood-code) for assisting with support for Arlec USB strip lights.
-- [drcjb](https://github.com/drcjb) for assisting with support for Princess DC pedestal fan
+- [drcjb](https://github.com/drcjb) for assisting with support for Princess DC pedestal fan.
+- [azdinet](https://github.com/azdinet) for assisting with support for TS106 alarm system.

+ 1 - 0
DEVICES.md

@@ -672,6 +672,7 @@ port and password.
 - BlitzWolf BW-IS6 security alarm system
 - GauTone PG-103 security alarm system
 - Smart alarm siren (unbranded)
+- TS106 alarm system
 - Wolf Guard WT2R alarm system
 - ZX-DB11 doorbell and alarm system
 - ZX-DB11B doorbell and alarm system

+ 123 - 0
custom_components/tuya_local/devices/ts106_alarm.yaml

@@ -0,0 +1,123 @@
+name: Alarm system
+products:
+  - id: htpbvowq2gkxx3bx
+    name: TS106
+primary_entity:
+  entity: alarm_control_panel
+  dps:
+    - id: 101
+      type: string
+      name: alarm_state
+      mapping:
+        - dps_val: disarm
+          value: disarmed
+        - dps_val: arm
+          value: armed_away
+        - dps_val: stay
+          value: armed_home
+        - dps_val: sos
+          value: triggered
+    - id: 101
+      type: string
+      name: trigger
+      mapping:
+        - dps_val: sos
+          value: true
+        - value_mirror: alarm_linkage
+    - id: 102
+      type: string
+      optional: true
+      name: remote
+    - id: 103
+      type: string
+      optional: true
+      name: detector
+    - id: 104
+      type: string
+      optional: true
+      name: phone_number
+    - id: 105
+      type: string
+      optional: true
+      name: sms_number
+    - id: 106
+      type: string
+      optional: true
+      name: password
+    - id: 111
+      type: string
+      optional: true
+      name: timing_arm_disarm
+    - id: 115
+      type: string
+      optional: true
+      name: detector_1
+    - id: 116
+      type: string
+      optional: true
+      name: detector_2
+    - id: 117
+      type: string
+      optional: true
+      name: alarm
+    - id: 118
+      type: string
+      optional: true
+      name: normal_push_info
+    - id: 119
+      type: string
+      optional: true
+      name: urgent_push_info
+    - id: 120
+      type: string
+      optional: true
+      name: intelligent_voice
+    - id: 121
+      type: boolean
+      name: alarm_linkage
+secondary_entities:
+  - entity: button
+    name: Factory reset
+    class: restart
+    category: config
+    dps:
+      - id: 107
+        type: boolean
+        name: button
+        optional: true
+  - entity: binary_sensor
+    class: power
+    category: diagnostic
+    dps:
+      - id: 110
+        type: boolean
+        name: sensor
+  - entity: siren
+    dps:
+      - id: 112
+        type: boolean
+        name: switch
+      - id: 113
+        type: integer
+        name: duration
+        range:
+          min: 0
+          max: 20
+        unit: min
+      - id: 114
+        type: string
+        name: volume_level
+        mapping:
+          - dps_val: L
+            value: 0.33
+          - dps_val: M
+            value: 0.67
+          - dps_val: H
+            value: 1.0
+  - entity: light
+    class: indicator
+    category: config
+    dps:
+      - id: 122
+        type: boolean
+        name: switch