name: Humidifier
products:
  - id: 4wilpf0amoade7i3
    manufacturer: OGACFO
    model: LFHM055
entities:
  - entity: humidifier
    class: humidifier
    dps:
      - id: 1
        name: switch
        type: boolean
      - id: 101
        name: humidity
        type: integer
        range:
          min: 30
          max: 80
        mapping:
          - step: 5
      - id: 14
        name: current_humidity
        type: integer
      - id: 23
        type: string
        name: mode
        mapping:
          - dps_val: level_1
            value: eco
          - dps_val: level_2
            value: normal
          - dps_val: level_3
            value: boost
  - entity: switch
    translation_key: uv_sterilization
    category: config
    dps:
      - id: 5
        name: switch
        type: boolean
  - entity: switch
    translation_key: sleep
    category: config
    dps:
      - id: 16
        type: boolean
        name: switch
  - entity: binary_sensor
    translation_key: tank_empty
    category: diagnostic
    dps:
      - id: 22
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 19
        type: string
        name: option
        mapping:
          - dps_val: TimeOff
            value: cancel
          - dps_val: "1H"
            value: "1h"
          - dps_val: "2H"
            value: "2h"
          - dps_val: "3H"
            value: "3h"
          - dps_val: "4H"
            value: "4h"
          - dps_val: "5H"
            value: "5h"
          - dps_val: "6H"
            value: "6h"
          - dps_val: "7H"
            value: "7h"
          - dps_val: "8H"
            value: "8h"
          - dps_val: "9H"
            value: "9h"
          - dps_val: "10H"
            value: "10h"
          - dps_val: "11H"
            value: "11h"
          - dps_val: "12H"
            value: "12h"
  - entity: sensor
    translation_key: time_remaining
    class: duration
    category: diagnostic
    icon: "mdi:timer"
    dps:
      - id: 102
        type: integer
        name: sensor
        unit: h
