name: Heater
legacy_type: heatstorm_hs1500_heater
products:
  - id: wta6rb1zqwayghxv
    manufacturer: Heatstorm
    model: HS-6000-GC
  - id: gifk0oubmovuz3ky
    manufacturer: Heatstorm
    model: HS-1500
entities:
  - entity: climate
    translation_only_key: heater
    dps:
      - id: 1
        type: boolean
        name: hvac_mode
        mapping:
          - dps_val: false
            value: "off"
          - dps_val: true
            value: heat
      - id: 2
        type: integer
        name: temperature
        range:
          min: 4
          max: 37
        mapping:
          - constraint: temperature_unit
            conditions:
              - dps_val: f
                value_redirect: set_temp_f
                range:
                  min: 40
                  max: 99
      - id: 3
        type: integer
        name: current_temperature
        mapping:
          - constraint: temperature_unit
            conditions:
              - dps_val: f
                value_redirect: cur_temp_f
      - id: 4
        type: string
        name: preset_mode
        mapping:
          - dps_val: Auto
            value: comfort
          - dps_val: Low
            value: eco
          - dps_val: High
            value: boost
      - id: 19
        type: string
        name: temperature_unit
        mapping:
          - dps_val: c
            value: C
          - dps_val: f
            value: F
      - id: 20
        type: integer
        name: set_temp_f
        range:
          min: 40
          max: 99
        hidden: true
      - id: 21
        type: integer
        name: cur_temp_f
        hidden: true
  - entity: light
    translation_key: display
    category: config
    dps:
      - id: 5
        name: brightness
        type: string
        mapping:
          - dps_val: "Off"
            value: 0
          - dps_val: "10"
            value: 26
          - dps_val: "50"
            value: 128
          - dps_val: "100"
            value: 255
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 7
        type: boolean
        name: lock
        mapping:
          - dps_val: true
            value: false
          - dps_val: false
            value: true
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 13
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
      - id: 13
        type: bitfield
        name: fault_code
      - id: 13
        type: bitfield
        name: description
        mapping:
          - dps_val: 0
            value: ok
          - dps_val: 1
            value: Temp sensor fault
          - dps_val: 2
            value: Tilt over
          - dps_val: 4
            value: Over-voltage
  - 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
