Sfoglia il codice sorgente

zx-db11b Doorbell Alarm

Config for ZX-DB11B Doorbell model
lyatam 2 anni fa
parent
commit
0d6535e10a

+ 284 - 0
custom_components/tuya_local/devices/zx_db11b_doorbell_alarm.yaml

@@ -0,0 +1,284 @@
+name: Doorbell
+products:
+  - id: 4kfqpaat5buefsv0
+    name: Alarm Hub with Melodies Pro
+primary_entity:
+  entity: siren
+  icon: "mdi:bell"
+  dps:
+    - id: 2
+      type: integer
+      name: tone
+      mapping:
+        - dps_val: 1
+          value: dingdong
+        - dps_val: 2
+          value: vacal
+        - dps_val: 3
+          value: Polka Italienne
+        - dps_val: 4
+          value: Carmen prelude
+        - dps_val: 5
+          value: Old ringtones
+        - dps_val: 6
+          value: Westminster Chimes
+        - dps_val: 7
+          value: Radetzky Marsch
+        - dps_val: 8
+          value: vocal 135i
+        - dps_val: 9
+          value: vocal i531
+        - dps_val: 10
+          value: DO-RE-MI
+        - dps_val: 11
+          value: Go home
+        - dps_val: 12
+          value: Scarborough fair
+        - dps_val: 13
+          value: Di spagna sono la Bella
+        - dps_val: 14
+          value: Libiamo ne
+        - dps_val: 15
+          value: Greensleeves
+        - dps_val: 16
+          value: Rondo Alla Turca
+        - dps_val: 17
+          value: Oh! Friends
+        - dps_val: 18
+          value: the golden Jubilee
+        - dps_val: 19
+          value: Merry Christmas
+        - dps_val: 20
+          value: Minuet
+        - dps_val: 21
+          value: Music box dancer
+        - dps_val: 22
+          value: Lonely Goatherd
+        - dps_val: 23
+          value: Russe Dance
+        - dps_val: 24
+          value: For Alice
+        - dps_val: 25
+          value: Memory
+        - dps_val: 26
+          value: The William tell overture
+        - dps_val: 27
+          value: happy birthday
+        - dps_val: 28
+          value: Mozart
+        - dps_val: 29
+          value: Edelweiss
+        - dps_val: 30
+          value: Red River Valley
+        - dps_val: 31
+          value: Jingle Bells
+        - dps_val: 32
+          value: Su San Na
+        - dps_val: 33
+          value: Rhytm of the rain
+        - dps_val: 34
+          value: Romance De Amour
+        - dps_val: 35
+          value: Moscow Nights
+        - dps_val: 36
+          value: dingdong
+        - dps_val: 37
+          value: Telephone ringing
+        - dps_val: 38
+          value: Yesenia
+        - dps_val: 39
+          value: Flute dance
+        - dps_val: 40
+          value: Alarm
+    - id: 3
+      type: integer
+      name: volume_level
+      range:
+        min: 0
+        max: 100
+      mapping:
+        - scale: 100
+    - id: 1
+      type: string
+      name: button_config
+      optional: true
+    - id: 7
+      type: string
+      name: undisturb_schedule
+      optional: true
+    - id: 10
+      type: integer
+      name: doorbell_call
+      optional: true
+secondary_entities:
+  - entity: alarm_control_panel
+    name: Alarm
+    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
+  - 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: switch
+    name: Alarm sound
+    icon: "mdi:bullhorn"
+    category: config
+    dps:
+      - id: 4
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Alarm light
+    icon: "mdi:alarm-light"
+    category: config
+    dps:
+      - id: 6
+        type: boolean
+        name: switch
+  - entity: light
+    name: Status indicator
+    icon: "mdi:led-on"
+    category: config
+    dps:
+      - id: 11
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Door notify
+    icon: "mdi:door-closed"
+    category: config
+    dps:
+      - id: 12
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Open notify
+    icon: "mdi:door-open"
+    category: config
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Mains power
+    class: power
+    category: diagnostic
+    dps:
+      - id: 15
+        type: boolean
+        name: sensor
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 16
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: binary_sensor
+    name: Battery low
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 17
+        type: boolean
+        name: sensor
+        mapping:
+          - dps_val: true
+            value: false
+          - dps_val: false
+            value: true
+  - entity: binary_sensor
+    name: Ringing
+    class: sound
+    category: diagnostic
+    dps:
+      - id: 26
+        type: boolean
+        name: sensor
+        optional: true
+        persist: false
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: switch
+    name: Doorbell notify
+    icon: "mdi:bell-badge"
+    category: config
+    dps:
+      - id: 27
+        type: boolean
+        name: switch
+  - entity: number
+    name: Entry delay
+    category: config
+    icon: "mdi:timer-lock-open"
+    dps:
+      - id: 28
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 0
+          max: 300
+  - entity: switch
+    name: Tick countdown
+    icon: "mdi:metronome"
+    category: config
+    dps:
+      - id: 29
+        type: boolean
+        name: switch
+  - entity: number
+    name: Doorbell volume
+    category: config
+    dps:
+      - id: 30
+        type: string
+        name: value
+        unit: "%"
+        mapping:
+          - dps_val: high
+            value: 100
+            icon: "mdi:volume-high"
+          - dps_val: upper-middle
+            value: 75
+            icon: "mdi:volume-medium"
+          - dps_val: lower-middle
+            value: 50
+            icon: "mdi:volume-medium"
+          - dps_val: low
+            value: 25
+            icon: "mdi:volume-low"
+          - dps_val: mute
+            value: 0
+            icon: "mdi:volume-mute"
+  - entity: button
+    name: Factory reset
+    category: config
+    dps:
+      - id: 34
+        type: boolean
+        name: button
+