name: Register booster fan
products:
  - id: zbhikxau56accfsp
    manufacturer: Howeall / Sanycasa
entities:
  - entity: climate
    dps:
      - id: 1
        type: boolean
        name: hvac_mode
        mapping:
          - dps_val: false
            value: "off"
          - dps_val: true
            constraint: operating_mode
            conditions:
              - dps_val: FAN
                value: fan_only
              - dps_val: COOL
                value: cool
              - dps_val: HEAT
                value: heat
              - dps_val: SLEEP
                value: fan_only
                hidden: true
      - id: 2
        type: string
        name: operating_mode
        hidden: true
      - id: 9
        type: integer
        name: current_temperature
      - id: 45
        type: integer
        name: temperature
        unit: F
        range:
          min: 60
          max: 90
        mapping:
          - constraint: operating_mode
            conditions:
              - dps_val: HEAT
                value_redirect: heating_temp
              - dps_val: FAN
                invalid: true
              - dps_val: SLEEP
                invalid: true
      - id: 106
        type: integer
        name: heating_temp
        range:
          min: 60
          max: 90
      - id: 2
        name: preset_mode
        type: string
        mapping:
          - dps_val: FAN
            value: Manual
          - dps_val: HEAT
            value: Heating
          - dps_val: COOL
            value: Cooling
          - dps_val: SLEEP
            value: sleep
  - entity: fan
    dps:
      - id: 1
        type: boolean
        name: switch
      - id: 12
        type: string
        name: speed
        mapping:
          - dps_val: "1"
            value: 10
          - dps_val: "2"
            value: 20
          - dps_val: "3"
            value: 30
          - dps_val: "4"
            value: 40
          - dps_val: "5"
            value: 50
          - dps_val: "6"
            value: 60
          - dps_val: "7"
            value: 70
          - dps_val: "8"
            value: 80
          - dps_val: "9"
            value: 90
          - dps_val: "10"
            value: 100
      - id: 101
        type: string
        name: cool_max
      - id: 103
        type: string
        name: cool_min
      - id: 104
        type: string
        name: heat_max
      - id: 105
        type: string
        name: heat_min
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 14
        type: boolean
        name: lock
  - entity: light
    translation_key: display
    dps:
      - id: 102
        type: string
        name: switch
        mapping:
          - dps_val: "on"
            value: true
          - dps_val: "off"
            value: false
