name: Della air conditioner
primary_entity:
  entity: climate
  dps:
    - id: 1
      name: hvac_mode
      type: boolean
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          constraint: mode
          conditions:
            - dps_val: cold
              value: cool
            - dps_val: hot
              value: heat
            - dps_val: wet
              value: dry
            - dps_val: wind
              value: fan_only
            - dps_val: auto
              value: heat_cool
    - id: 2
      name: temperature
      type: integer
      range:
        min: 160
        max: 320
      mapping:
        - scale: 10
          step: 10
          constraint: temperature_unit
          conditions:
            - dps_val: F
              range:
                min: 600
                max: 900
    - id: 3
      name: current_temperature
      type: integer
      mapping:
        - scale: 10
    - id: 4
      name: mode
      type: string
      hidden: true
    - id: 5
      name: fan_mode
      type: string
      mapping:
        - dps_val: low
          value: low
        - dps_val: mid
          value: medium
        - dps_val: high
          value: high
        - dps_val: auto
          value: auto
    # preset only works in cooling mode
    - id: 8
      name: preset_mode
      type: boolean
      mapping:
        - dps_val: true
          value: eco
        - dps_val: false
          value: comfort
    - id: 19
      name: temperature_unit
      type: string
    - id: 105
      name: swing_mode
      type: boolean
      mapping:
        - dps_val: true
          value: vertical
        - dps_val: false
          value: "off"
    - id: 107
      type: bitfield
      name: fault_code
secondary_entities:
  - entity: switch
    name: Emergency heat
    icon: "mdi:fire"
    dps:
      - id: 12
        name: switch
        type: boolean
  - entity: light
    translation_key: backlight
    category: config
    dps:
      - id: 13
        name: switch
        type: boolean
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 14
        name: lock
        type: boolean
  - entity: select
    translation_key: temperature_unit
    category: config
    dps:
      - id: 19
        type: string
        name: option
        mapping:
          - dps_val: C
            value: celsius
          - dps_val: F
            value: fahrenheit
  - entity: sensor
    class: energy
    category: diagnostic
    dps:
      - id: 28
        name: sensor
        type: integer
        unit: kWh
        class: total_increasing
  - entity: switch
    translation_key: sleep
    category: config
    dps:
      - id: 102
        name: switch
        type: boolean
  - entity: switch
    name: Clean
    dps:
      - id: 103
        name: switch
        type: boolean
  - entity: switch
    translation_key: anti_frost
    category: config
    dps:
      - id: 104
        name: switch
        type: boolean
  - entity: switch
    translation_key: uv_sterilization
    dps:
      - id: 106
        name: switch
        type: boolean
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 107
        name: sensor
        type: bitfield
        mapping:
          - dps_val: 0
            value: false
          - value: true
