name: Video doorbell
products:
  - id: cgu4lbrelxwzqklc
    manufacturer: iGET HOME
    model: DS1
entities:
  - entity: light
    translation_key: indicator
    category: config
    dps:
      - id: 101
        type: boolean
        name: switch
  - entity: switch
    translation_key: flip_image
    category: config
    dps:
      - id: 103
        type: boolean
        optional: true
        name: switch
  - entity: switch
    name: Watermark
    icon: "mdi:watermark"
    category: config
    dps:
      - id: 104
        type: boolean
        optional: true
        name: switch
  - entity: select
    name: Nightvision
    icon: "mdi:weather-night"
    category: config
    dps:
      - id: 108
        type: string
        optional: true
        name: option
        mapping:
          - dps_val: "0"
            value: auto
          - dps_val: "1"
            value: "off"
          - dps_val: "2"
            value: "on"
  - entity: sensor
    translation_key: status
    name: SD card
    class: enum
    category: diagnostic
    dps:
      - id: 110
        type: integer
        optional: true
        name: sensor
        mapping:
          - dps_val: 1
            value: normal
          - dps_val: null
            value: normal
            hidden: true
          - dps_val: 2
            value: fault
          - dps_val: 3
            value: full
          - dps_val: 4
            value: formatting
          - dps_val: 5
            value: missing
      - id: 109
        type: string
        optional: true
        name: storage
  - entity: button
    name: SD format
    category: config
    dps:
      - id: 111
        type: boolean
        optional: true
        name: button
      - id: 117
        type: integer
        optional: true
        name: status
        mapping:
          - dps_val: -2000
            value: formatting
          - dps_val: -2001
            value: format_error
          - dps_val: -2002
            value: no_sdcard
          - dps_val: -2003
            value: card_error
  - entity: event
    class: motion
    dps:
      - id: 115
        type: string
        name: event
        optional: true
        mapping:
          - dps_val: null
            value: null
          - value: detected
      - id: 115
        type: base64
        optional: true
        name: snapshot
  - entity: event
    class: doorbell
    dps:
      - id: 136
        type: string
        name: event
        optional: true
        mapping:
          - dps_val: null
            value: null
          - dps_val: ""
            value: null
          - value: ring
      - id: 136
        type: string
        optional: true
        name: message
      - id: 154
        type: base64
        optional: true
        name: snapshot
  - entity: sensor
    class: battery
    category: diagnostic
    dps:
      - id: 145
        type: integer
        optional: true
        name: sensor
        unit: "%"
        class: measurement
  - entity: binary_sensor
    class: battery_charging
    category: diagnostic
    dps:
      - id: 146
        type: string
        optional: true
        name: sensor
        mapping:
          - dps_val: "1"
            value: true
          - dps_val: "0"
            value: false
  - entity: number
    name: Low battery threshold
    category: config
    icon: "mdi:battery-alert"
    dps:
      - id: 147
        type: integer
        optional: true
        name: value
        unit: "%"
        range:
          min: 10
          max: 50
  - entity: binary_sensor
    class: running
    category: diagnostic
    dps:
      - id: 149
        type: boolean
        optional: true
        name: sensor
  - entity: select
    name: PIR sensitivity
    icon: "mdi:motion-sensor"
    category: config
    dps:
      - id: 152
        type: string
        optional: true
        name: option
        mapping:
          - dps_val: "0"
            value: "off"
          - dps_val: "1"
            value: low
          - dps_val: "2"
            value: medium
          - dps_val: "3"
            value: high
  - entity: button
    class: restart
    category: config
    dps:
      - id: 162
        type: boolean
        optional: true
        name: button
  - entity: event
    translation_key: alarm
    dps:
      - id: 185
        type: string
        optional: true
        name: event
        mapping:
          - dps_val: null
            value: null
          - dps_val: ""
            value: null
          - value: alarm
      - id: 185
        type: utf16b64
        optional: true
        name: message
  - entity: text
    name: Alarm message
    category: config
    icon: "mdi:comment-text"
    hidden: true
    dps:
      - id: 185
        type: utf16b64
        optional: true
        name: value
  - entity: switch
    name: Face recognition
    icon: "mdi:face-recognition"
    category: config
    dps:
      - id: 186
        type: boolean
        optional: true
        name: switch
  - entity: event
    name: Tamper alarm
    dps:
      - id: 231
        type: string
        optional: true
        name: event
        mapping:
          - dps_val: "0"
            value: ok
          - dps_val: "1"
            value: tampered
