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

Add support for BlitzWolf BW-IS6 alarm control panel

Issue #112

DPS are very similar to the two ZX alarms, but subtle differences
between all three so cannot quite share configs.
Jason Rumney 2 лет назад
Родитель
Сommit
48c52dce4a

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -69,7 +69,7 @@ Further device support has been made with the assistance of users.  Please consi
  - [edwinyoo44](https://github.com/edwinyoo44) for contributing support for JJPro JPD01 and JPD02 dehumidifiers and assistance with Poiema One purifiers.
  - [mpetcuRO](https://github.com/mpetcuRO) for assistance with Hysen HT08WE-2 thermostats.
  - [Paul-C-S](https://github.com/Paul-C-S) for assistance with Ecostrad Accent iQ heaters and contributing support for iQ Ceramic radiators and INOW heating elements.
- - [WildeRNS](https://github.com/WildeRNS) for assistance with Nashone MTS-700-WB thermostat smartplugs, SmartMCB Energy meter.
+ - [WildeRNS](https://github.com/WildeRNS) for assistance with Nashone MTS-700-WB thermostat smartplugs, SmartMCB Energy meter, BlitzWolf BW-IS6 alarm panels.
  - [ishioni](https://github.com/ishioni) for contributing support for Eberg Cooly C32HD air conditioner.
  - [Gekko47](https://github.com/Gekko47) for contributing support for ElectriQ CD12v2 dehumidifiers.
  - [andreq](https://github.com/andreq) for assistance with Inkbird ITC-308 thermostats.

+ 1 - 0
DEVICES.md

@@ -384,6 +384,7 @@ of device.
 
 ### Alarm control panels
 
+- BlitzWolf BW-IS6 security alarm system
 - ZX-DB11 doorbell and alarm system
 - ZX-G30 alarm system
 

+ 203 - 0
custom_components/tuya_local/devices/blitzwolf_bwis6_alarm.yaml

@@ -0,0 +1,203 @@
+name: Alarm system
+products:
+  - id: gcymopbbssihh6h2
+    name: BlitzWolf BW-IS6
+primary_entity:
+  entity: alarm_control_panel
+  dps:
+    - id: 1
+      type: string
+      name: alarm_state
+      mapping:
+        - dps_val: disarmed
+          value: disarmed
+        - dps_val: arm
+          value: arm_away
+        - dps_val: home
+          value: arm_home
+        - dps_val: sos
+          value: triggered
+    - id: 38
+      type: string
+      name: sub_admin
+secondary_entities:
+  - entity: number
+    name: Exit delay
+    category: config
+    icon: "mdi:timer-lock"
+    dps:
+      - id: 2
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 0
+          max: 300
+  - entity: siren
+    name: Alarm
+    dps:
+      - id: 3
+        type: integer
+        name: duration
+        unit: min
+        range:
+          min: 1
+          max: 60
+      - id: 4
+        type: boolean
+        name: tone
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            value: "on"
+  - entity: binary_sensor
+    name: Tamper
+    class: tamper
+    category: diagnostic
+    dps:
+      - id: 9
+        type: boolean
+        name: sensor
+        mapping:
+          - dps_val: null
+            value: false
+  - entity: switch
+    name: Voice prompt
+    icon: "mdi:account-voice"
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: switch
+    name: AC power
+    category: config
+    icon: "mdi:current-ac"
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+  - entity: sensor
+    name: Battery
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 16
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: binary_sensor
+    name: Low battery
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 17
+        type: boolean
+        name: sensor
+  - entity: switch
+    name: Alarm call
+    icon: "mdi:phone-alert"
+    category: config
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 18
+        type: string
+        name: phone_number
+  - entity: switch
+    name: Alarm SMS
+    icon: "mdi:message-alert"
+    category: config
+    dps:
+      - id: 21
+        type: boolean
+        name: switch
+      - id: 19
+        type: string
+        name: phone_number
+  - entity: number
+    name: Call retries
+    category: config
+    icon: "mdi:phone-missed"
+    dps:
+      - id: 22
+        type: integer
+        name: value
+        range:
+          min: 1
+          max: 10
+  - entity: switch
+    name: Silent
+    icon: "mdi:volume-mute"
+    category: config
+    dps:
+      - id: 25
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Alarm notify
+    icon: "mdi:bell"
+    category: config
+    dps:
+      - id: 27
+        type: boolean
+        name: switch
+      - id: 26
+        type: string
+        name: message
+  - entity: number
+    name: Entry delay
+    category: config
+    icon: "mdi:timer-lock"
+    dps:
+      - id: 28
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 0
+          max: 300
+  - entity: switch
+    name: Tick down
+    icon: "mdi:metronome"
+    category: config
+    dps:
+      - id: 29
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Alarm
+    class: sound
+    category: diagnostic
+    dps:
+      - id: 32
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: normal
+            value: false
+          - dps_val: alarm
+            value: true
+      - id: 33
+        type: string
+        name: information
+  - entity: button
+    name: Factory reset
+    class: restart
+    category: config
+    dps:
+      - id: 34
+        type: boolean
+        name: button
+
+
+
+
+
+
+
+
+

+ 0 - 1
custom_components/tuya_local/devices/zx_db11_doorbell_alarm.yaml

@@ -67,7 +67,6 @@ secondary_entities:
           max: 300
   - entity: siren
     name: Alarm
-    icon: "mdi:bell"
     dps:
       - id: 3
         type: integer