4
0
Эх сурвалжийг харах

Adding positivo smart fechadura/keypad

devlucasc 1 жил өмнө
parent
commit
378396ace9

+ 212 - 0
custom_components/tuya_local/devices/ble_positivo_smart_fechadura.yaml

@@ -0,0 +1,212 @@
+name: Positivo Smart Fechadura
+products:
+  - id: uamrw6h3
+    name: Positivo Smart Fechadura
+primary_entity:
+  entity: lock
+  dps:
+    - id: 1
+      type: string
+      name: unlock_method_create
+      optional: true
+    - id: 2
+      type: string
+      name: unlock_method_delete
+      optional: true
+    - id: 3
+      type: string
+      name: unlock_method_modify
+      optional: true
+    - id: 18
+      type: boolean
+      name: open_inside
+      optional: true
+      persist: false
+    - id: 19
+      type: integer
+      name: unlock_ble
+      optional: true
+      persist: false
+    - id: 44
+      type: boolean
+      name: rtc_lock
+      optional: true
+      persist: false
+    - id: 46
+      type: boolean
+      name: manual_lock
+      optional: true
+      persist: false
+    - id: 47
+      type: boolean
+      name: lock_motor_state
+      readonly: true
+      mapping:
+        - dps_val: true  # Unlocked
+          value: false
+        - dps_val: false  # Locked
+          value: true
+    - id: 54
+      type: base64
+      name: sync_method
+      optional: true
+    - id: 60
+      type: string
+      name: remote_no_pd_setkey
+      optional: true
+    - id: 61
+      type: string
+      name: remote_no_dp_key
+      optional: true
+    - id: 62
+      type: integer
+      name: unlock_app
+      optional: true
+      persist: false
+    - id: 63
+      type: integer
+      name: unlock_voice
+      optional: true
+      persist: false
+    - id: 69
+      type: string
+      name: record
+      optional: true
+    - id: 70
+      type: string
+      name: check_code_set
+      optional: true
+    - id: 71
+      type: string
+      name: ble_unlock_check
+      optional: true
+    - id: 72
+      name: unlock_record_check
+      type: string
+      optional: true
+    - id: 73
+      type: string
+      name: remote_pd_setkey_check
+      optional: true
+secondary_entities:
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 8
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: select
+    category: config
+    name: Doorbell Volume
+    icon: "mdi:volume-high"
+    dps:
+      - id: 27
+        name: option
+        type: string
+        mapping:
+          - dps_val: mute
+            value: mute
+            icon: "mdi:volume-mute"
+          - dps_val: low
+            value: low
+            icon: mdi:volume-low
+          - dps_val: normal
+            value: normal
+            icon: mdi:volume-medium
+          - dps_val: high
+            value: high
+            icon: "mdi:volume-high"
+  - entity: select
+    category: config
+    name: Lock Motor Direction
+    icon: "mdi:sign-direction"
+    dps:
+      - id: 48
+        name: option
+        type: string
+        mapping:
+          - dps_val: clockwise
+            value: clockwise
+            icon: mdi:cog-clockwise
+          - dps_val: anticlockwise
+            value: anticlockwise
+            icon: mdi:cog-counterclockwise
+  - entity: select
+    category: config
+    name: Motor Torque
+    icon: "mdi:sign-direction"
+    dps:
+      - id: 56
+        name: option
+        type: string
+        optional: true
+        mapping:
+          - dps_val: torque_low
+            value: low
+          - dps_val: torque_middle
+            value: middle
+          - dps_val: torque_high
+            value: high
+  - entity: number
+    category: config
+    name: Auto lock delay
+    icon: "mdi:lock-clock"
+    dps:
+      - id: 36
+        type: integer
+        name: value
+        unit: "s"
+        range:
+          min: 1
+          max: 30
+        mapping:
+          - step: 1
+  - entity: switch
+    category: config
+    name: Auto Lock
+    dps:
+      - id: 33
+        type: boolean
+        name: switch
+  - entity: sensor
+    name: Alert
+    class: enum
+    icon: "mdi:alert"
+    category: diagnostic
+    dps:
+      - id: 21
+        type: string
+        name: sensor
+        optional: true
+        mapping:
+          - dps_val: wrong_finger
+            value: wrong_finger
+          - dps_val: wrong_password
+            value: wrong_password
+          - dps_val: wrong_card
+            value: wrong_card
+          - dps_val: wrong_face
+            value: wrong_face
+          - dps_val: tongue_bad
+            value: tongue_bad
+          - dps_val: too_hot
+            value: too_hot
+          - dps_val: unclosed_time
+            value: unclosed_time
+          - dps_val: tongue_not_out
+            value: tongue_not_out
+          - dps_val: pry
+            value: pry
+          - dps_val: key_in
+            value: key_in
+          - dps_val: low_battery
+            value: low_battery
+          - dps_val: power_off
+            value: power_off
+          - dps_val: shock
+            value: shock
+          - dps_val: defense
+            value: defense

+ 176 - 0
custom_components/tuya_local/devices/ble_positivo_smart_keypad.yaml

@@ -0,0 +1,176 @@
+name: Positivo Smart KeyPad
+products:
+  - id: bb0nmoax
+    name: Positivo Smart KeyPad
+primary_entity:
+  entity: lock
+  dps:
+    - id: 1
+      type: string
+      name: unlock_method_create
+      optional: true
+    - id: 2
+      type: string
+      name: unlock_method_delete
+      optional: true
+    - id: 3
+      type: string
+      name: unlock_method_modify
+      optional: true
+    - id: 4
+      type: string
+      name: temporary_password_creat
+      optional: true
+    - id: 5
+      type: string
+      name: temporary_password_delete
+      optional: true
+    - id: 6
+      type: string
+      name: temporary_password_modify
+      optional: true
+    - id: 7
+      type: base64
+      name: synch_method
+      optional: true
+    - id: 73
+      type: string
+      name: unlock_password
+      optional: true
+      persist: false
+    - id: 74
+      type: integer
+      name: unlock_dynamic_pwd
+      optional: true
+      persist: false
+secondary_entities:
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 40
+        optional: true
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: sensor
+    name: unlock_password_kit
+    category: diagnostic
+    dps:
+      - id: 51
+        type: string
+        name: sensor
+        unit: ""
+        optional: true
+  - entity: sensor
+    name: unlock_temporary_kit
+    category: diagnostic
+    dps:
+      - id: 58
+        type: string
+        name: sensor
+        unit: ""
+        optional: true
+  - entity: sensor
+    name: unlock_offline_clear_single
+    category: diagnostic
+    dps:
+      - id: 71
+        type: string
+        name: sensor
+        unit: ""
+        optional: true
+  - entity: sensor
+    name: unlock_offline_clear
+    category: diagnostic
+    dps:
+      - id: 72
+        type: string
+        name: sensor
+        unit: ""
+        optional: true
+  - entity: sensor
+  - entity: sensor
+    name: unlock_offline_pd
+    category: diagnostic
+    dps:
+      - id: 73
+        type: string
+        name: sensor
+        unit: ""
+        optional: true
+  - entity: sensor
+    name: unlock_dynamic
+    category: diagnostic
+    dps:
+      - id: 74
+        type: integer
+        name: sensor
+        unit: ""
+        optional: true
+  - entity: string
+    category: config
+    name: password_offline_time
+    icon: "mdi:lock-clock"
+    dps:
+      - id: 70
+        type: string
+        name: sensor
+        unit: ""
+  - entity: select
+    category: config
+    name: Key Tone
+    icon: "mdi:volume-high"
+    dps:
+      - id: 22
+        name: option
+        type: string
+        optional: true
+        mapping:
+          - dps_val: mute
+            value: mute
+            icon: "mdi:volume-mute"
+          - dps_val: normal
+            value: normal
+            icon: mdi:volume-medium
+  - entity: switch
+    category: config
+    name: Switch Verify Lock
+    dps:
+      - id: 27
+        type: boolean
+        name: switch
+        optional: true
+  - entity: select
+    category: config
+    name: Unlock multiple doors
+    icon: "mdi:volume-high"
+    dps:
+      - id: 28
+        name: option
+        type: string
+        optional: true
+        mapping:
+          - dps_val: single
+            value: single
+          - dps_val: multiple
+            value: multiple
+  - entity: sensor
+    name: Batery State
+    class: enum
+    icon: "mdi:alert"
+    category: diagnostic
+    dps:
+      - id: 41
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: high
+            value: high
+          - dps_val: medium
+            value: medium
+          - dps_val: low
+            value: low
+          - dps_val: power_off
+            value: power_off