name: Human presence sensor
products:
  - id: sxm7l9xa
    manufacturer: Loginovo
    name: mmWave human presence sensor
entities:
  - entity: binary_sensor
    class: occupancy
    dps:
      - id: 105
        type: string
        name: sensor
        mapping:
          - dps_val: presence
            value: true
          - dps_val: none
            value: false
  - entity: number
    name: Sensitivity
    category: config
    icon: "mdi:motion-sensor"
    dps:
      - id: 106
        type: integer
        name: value
        range:
          min: 1
          max: 10
  - entity: number
    name: Minimum distance
    category: config
    icon: "mdi:arrow-collapse-left"
    dps:
      - id: 108
        type: integer
        name: value
        unit: m
        range:
          min: 0
          max: 950
        mapping:
          - scale: 100
            step: 10
  - entity: number
    name: Maximum distance
    category: config
    icon: "mdi:arrow-collapse-right"
    dps:
      - id: 107
        type: integer
        name: value
        unit: m
        range:
          min: 0
          max: 950
        mapping:
          - scale: 100
            step: 10
  - entity: sensor
    class: distance
    dps:
      - id: 109
        type: integer
        name: sensor
        unit: m
        class: measurement
        range:
          min: 0
          max: 1000
        mapping:
          - scale: 100
  - entity: number
    name: Detection delay
    category: config
    # mode: box
    class: duration
    icon: "mdi:timer-sand"
    dps:
      - id: 111
        type: integer
        name: value
        unit: s
        range:
          min: 0
          max: 100
        mapping:
          - scale: 10
  - entity: number
    name: Fading time
    category: config
    class: duration
    icon: "mdi:timer-sand-complete"
    dps:
      - id: 110
        type: integer
        name: value
        unit: s
        range:
          min: 50
          max: 15000
        mapping:
          - scale: 10
            step: 5
  - entity: sensor
    class: illuminance
    dps:
      - id: 104
        type: integer
        name: sensor
        unit: lx
        class: measurement
        range:
          min: 0
          max: 10000
