name: Outdoor siren
# products:
#    name: Sirena Outdoor Strobe Siren WS-902 Plus
primary_entity:
  entity: siren
  dps:
    - id: 1
      name: tone
      type: string
      mapping:
        - dps_val: alarm_sound
          value: sound
        - dps_val: alarm_light
          value: light
        - dps_val: alarm_sound_light
          value: sound+light
          default: true
        - dps_val: normal
          value: "off"
    - id: 5
      name: volume_level
      type: string
      mapping:
        - dps_val: mute
          value: 0.0
        - dps_val: low
          value: 0.33
        - dps_val: middle
          value: 0.67
        - dps_val: high
          value: 1.0
    - id: 7
      name: duration
      type: integer
      range:
        min: 1
        max: 59
      unit: min
secondary_entities:
  - entity: binary_sensor
    category: diagnostic
    class: battery_charging
    dps:
      - id: 6
        name: sensor
        type: boolean
  - entity: sensor
    category: diagnostic
    class: battery
    dps:
      - id: 13
        name: sensor
        type: string
        unit: "%"
        mapping:
          - dps_val: low
            value: 20
          - dps_val: middle
            value: 50
          - dps_val: high
            value: 80
  - entity: switch
    name: Silent
    icon: "mdi:volume-mute"
    category: config
    dps:
      - id: 16
        type: boolean
        name: switch
  - entity: binary_sensor
    name: Tamper detect
    category: diagnostic
    class: tamper
    dps:
      - id: 18
        name: sensor
        type: boolean
