name: Presence sensor
products:
  - id: chaayllciae8dlhn
    manufacturer: iHseno
    model: ZTU 24GHz mmWave WiFi
entities:
  - entity: binary_sensor
    class: occupancy
    dps:
      - id: 1
        type: string
        name: sensor
        mapping:
          - dps_val: pir
            value: true
          - value: false
  - entity: select
    translation_key: motion_sensitivity
    category: config
    dps:
      - id: 9
        type: string
        name: option
        mapping:
          - dps_val: low
            value: low
          - dps_val: middle
            value: medium
          - dps_val: high
            value: high
  - entity: sensor
    class: illuminance
    dps:
      - id: 11
        type: integer
        name: sensor
        unit: lx
        class: measurement
  - entity: select
    name: Presence sensitivity
    category: config
    icon: "mdi:motion-sensor"
    dps:
      - id: 101
        type: string
        name: option
        mapping:
          - dps_val: low
            value: Low
          - dps_val: middle
            value: Medium
          - dps_val: high
            value: High
  - entity: number
    name: Presence timeout
    category: config
    class: duration
    icon: "mdi:camera-timer"
    dps:
      - id: 102
        type: integer
        name: value
        unit: s
        range:
          min: 10
          max: 600
