name: Lockbox
products:
  - id: qicggi0m
    manufacturer: XCase
    model: NX-4964 BLE
entities:
  - entity: lock
    dps:
      - id: 13
        type: integer
        optional: true
        persist: false
        name: unlock_password
      - id: 14
        type: integer
        optional: true
        persist: false
        name: unlock_dynamic_pwd
      - id: 19
        type: integer
        optional: true
        persist: false
        name: unlock_ble
      - id: 55
        type: integer
        optional: true
        persist: false
        name: unlock_temp_pwd
      - id: 61
        type: string
        optional: true
        sensitive: true
        name: code_unlock
      - id: 62
        type: integer
        optional: true
        persist: false
        name: unlock_app
      - id: 63
        type: integer
        optional: true
        persist: false
        name: unlock_voice
      - id: 67
        type: string
        optional: true
        name: offline_pd
      - id: 69
        type: string
        optional: true
        name: record
      - id: 70
        type: string
        optional: true
        sensitive: true
        name: check_code_set
      - id: 71
        type: string
        optional: true
        sensitive: true
        name: ble_unlock_check
      - id: 72
        type: string
        optional: true
        sensitive: true
        name: general_unlock_check
  - entity: sensor
    class: battery
    dps:
      - id: 8
        type: integer
        name: sensor
        unit: "%"
      - id: 9
        type: string
        name: state
  - entity: sensor
    name: Alarm
    class: enum
    category: diagnostic
    dps:
      - id: 21
        type: string
        name: sensor
        optional: true
        mapping:
          - dps_val: null
            value: ok
          - 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
  - entity: text
    name: Remote unlock code
    category: config
    icon: "mdi:form-textbox-password"
    hidden: true
    dps:
      - id: 73
        type: base64
        optional: true
        sensitive: true
        name: value
  - entity: text
    name: New credential
    category: config
    icon: "mdi:card-plus"
    hidden: true
    dps:
      - id: 1
        type: base64
        optional: true
        sensitive: true
        name: value
  - entity: text
    name: Delete credential
    category: config
    icon: "mdi:card-minus"
    hidden: true
    dps:
      - id: 2
        type: base64
        optional: true
        sensitive: true
        name: value
  - entity: text
    name: Modify credential
    category: config
    icon: "mdi:credit-card-edit"
    hidden: true
    dps:
      - id: 3
        type: base64
        optional: true
        sensitive: true
        name: value
  - entity: text
    name: New temp password
    category: config
    icon: "mdi:lock-open-plus"
    hidden: true
    dps:
      - id: 51
        type: base64
        optional: true
        sensitive: true
        name: value
  - entity: text
    name: Delete temp password
    category: config
    icon: "mdi:lock-open-minus"
    hidden: true
    dps:
      - id: 52
        type: base64
        optional: true
        sensitive: true
        name: value
  - entity: text
    name: Modify temp password
    category: config
    icon: "mdi:pencil-lock"
    hidden: true
    dps:
      - id: 53
        type: base64
        optional: true
        sensitive: true
        name: value
  - entity: text
    name: Sync credentials
    category: config
    icon: "mdi:lock-reset"
    hidden: true
    dps:
      - id: 54
        type: base64
        optional: true
        sensitive: true
        name: value
  - entity: text
    name: Offline password timestamp
    category: config
    icon: "mdi:clock-digital"
    hidden: true
    dps:
      - id: 64
        type: string
        optional: true
        name: value
  - entity: sensor
    name: Used offline password
    category: diagnostic
    hidden: true
    dps:
      - id: 65
        type: base64
        optional: true
        sensitive: true
        name: sensor
  - entity: sensor
    name: Cleared offline passwords
    category: diagnostic
    hidden: true
    dps:
      - id: 66
        type: base64
        optional: true
        sensitive: true
        name: sensor
