name: Humidifier
products:
  - id: i8cej9chgwebzrmp
    manufacturer: Klarta
    model: Humea
entities:
  - entity: humidifier
    class: humidifier
    dps:
      - id: 10
        type: boolean
        name: switch
      - id: 104
        type: boolean
        name: mode
        mapping:
          - dps_val: true
            value: auto
          - dps_val: false
            value: normal
      - id: 105
        type: string
        name: humidity
        mapping:
          - dps_val: "0"
            value: 35
          - dps_val: "1"
            value: 40
          - dps_val: "2"
            value: 45
          - dps_val: "3"
            value: 50
          - dps_val: "4"
            value: 55
          - dps_val: "5"
            value: 60
          - dps_val: "6"
            value: 65
          - dps_val: "7"
            value: 70
          - dps_val: "8"
            value: 75
      - id: 109
        type: integer
        name: current_humidity
  - entity: light
    translation_key: nightlight
    category: config
    dps:
      - id: 102
        type: string
        name: brightness
        mapping:
          - dps_val: "cancel"
            value: 0
          - dps_val: "1"
            value: 50
          - dps_val: "2"
            value: 128
          - dps_val: "3"
            value: 255
  - entity: switch
    translation_key: sleep
    dps:
      - id: 103
        type: boolean
        name: switch
  - entity: number
    name: Spray level
    icon: "mdi:spray"
    category: config
    dps:
      - id: 106
        type: string
        name: value
        mapping:
          - dps_val: "1"
            value: 1
          - dps_val: "2"
            value: 2
          - dps_val: "3"
            value: 3
          - dps_val: "4"
            value: 4
        range:
          min: 1
          max: 4
  - entity: sensor
    name: Water level
    category: diagnostic
    dps:
      - id: 101
        type: string
        name: sensor
  - entity: sensor
    name: Filter
    icon: "mdi:filter"
    category: diagnostic
    dps:
      - id: 107
        type: string
        name: sensor
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 108
        type: string
        name: option
        mapping:
          - dps_val: "0"
            value: cancel
          - dps_val: "1"
            value: "1h"
          - dps_val: "2"
            value: "2h"
          - dps_val: "3"
            value: "3h"
          - dps_val: "4"
            value: "4h"
          - dps_val: "5"
            value: "5h"
          - dps_val: "6"
            value: "6h"
          - dps_val: "7"
            value: "7h"
          - dps_val: "8"
            value: "8h"
          - dps_val: "9"
            value: "9h"
          - dps_val: "10"
            value: "10h"
          - dps_val: "11"
            value: "11h"
          - dps_val: "12"
            value: "12h"
