name: PIR sensor alarm
products:
  - id: y5tdmwmb2ieknmkb
entities:
  - entity: binary_sensor
    class: motion
    dps:
      - id: 1
        type: string
        name: sensor
        mapping:
          - dps_val: pir
            value: true
          - value: false
  - entity: switch
    name: Armed
    icon: "mdi:shield-home"
    dps:
      - id: 104
        type: boolean
        name: switch
  - entity: binary_sensor
    class: battery_charging
    category: diagnostic
    dps:
      - id: 103
        type: boolean
        name: sensor
  - entity: sensor
    class: battery
    category: diagnostic
    dps:
      - id: 4
        type: integer
        name: sensor
        unit: "%"
  - entity: number
    name: Alarm time
    class: duration
    category: config
    icon: "mdi:alarm"
    dps:
      - id: 102
        type: integer
        name: value
        unit: s
        range:
          min: 0
          max: 255
  - entity: select
    name: Warning mode
    icon: "mdi:cog"
    category: config
    dps:
      - id: 105
        type: string
        name: option
        mapping:
          - dps_val: "SoundLight_mode"
            value: "Sound and Light"
          - dps_val: "OnlyLight_mode"
            value: "Only Light"
          - dps_val: "OnlySound_mode"
            value: "Only Sound"
          - dps_val: "Mute_mode"
            value: "No Sound no Light"
