name: Portable air conditioner
products:
  - id: njvdabnnx51jiqiq
    name: ForceClima Soundless
primary_entity:
  entity: climate
  dps:
    - id: 1
      type: boolean
      name: hvac_mode
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          constraint: mode
          conditions:
            - dps_val: cold
              value: cool
            - dps_val: wind
              value: fan_only
            - dps_val: wet
              value: dry
            - dps_val: 'hot'
              value: heat
    - id: 2
      type: integer
      name: temperature
      range:
        min: 16
        max: 31
      unit: C
    - id: 3
      type: integer
      name: current_temperature
    - id: 4
      type: string
      name: mode
      hidden: true
    - id: 5
      type: string
      name: fan_mode
      mapping:
        - dps_val: low
          value: low
        - dps_val: med
          value: medium
        - dps_val: high
          value: high
    - id: 107
      type: integer
      name: temp_set_f
    - id: 109
      type: integer
      name: unknown_109
    - id: 110
      name: swing_mode
      type: boolean
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          value: vertical

secondary_entities:
  - entity: switch
    translation_key: sleep
    category: config
    dps:
      - id: 103
        name: switch
        type: boolean

  - entity: binary_sensor
    translation_key: tank_full
    category: diagnostic
    dps:
      - id: 20
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 4
            value: true
          - value: false

  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 20
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - dps_val: 4
            value: false
          - value: true
      - id: 20
        type: bitfield
        name: fault_code
      - id: 20
        type: bitfield
        name: description
        mapping:
          - dps_val: 1
            value: Room temperature sensor fault
          - dps_val: 2
            value: Coil temperature sensor fault
          - value: null
