name: Electric Heater
products:
  - id: xto0qf9xem5bi7sj
    name: Bonaire HPC5200020
primary_entity:
  entity: climate
  translation_only_key: heater
  dps:
    - id: 1
      name: hvac_mode
      type: boolean
      mapping:
        - dps_val: true
          value: "heat"
        - dps_val: false
          value: "off"
    - id: 2
      name: temperature
      type: integer
      unit: C
      range:
        min: 5
        max: 35
    - id: 3
      name: current_temperature
      type: integer
    - id: 4
      name: preset_mode
      type: string
      mapping:
        - dps_val: low
          value: eco
        - dps_val: high
          value: boost
        - dps_val: af
          value: away

secondary_entities:
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 7
        type: boolean
        name: lock
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 12
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
      - id: 12
        type: bitfield
        name: fault_code
  - entity: light
    translation_key: backlight
    dps:
      - id: 10
        type: boolean
        name: switch
  - entity: number
    translation_key: timer
    category: config
    dps:
      - id: 19
        type: string
        name: value
        unit: hour
        optional: true
        range:
          min: 0
          max: 24
        mapping:
          - dps_val: "cancel"
            value: 0
          - dps_val: "1h"
            value: 1
          - dps_val: "2h"
            value: 2
          - dps_val: "3h"
            value: 3
          - dps_val: "4h"
            value: 4
          - dps_val: "5h"
            value: 5
          - dps_val: "6h"
            value: 6
          - dps_val: "7h"
            value: 7
          - dps_val: "8h"
            value: 8
          - dps_val: "9h"
            value: 9
          - dps_val: "10h"
            value: 10
          - dps_val: "11h"
            value: 11
          - dps_val: "12h"
            value: 12
          - dps_val: "13h"
            value: 13
          - dps_val: "14h"
            value: 14
          - dps_val: "15h"
            value: 15
          - dps_val: "16h"
            value: 16
          - dps_val: "17h"
            value: 17
          - dps_val: "18h"
            value: 18
          - dps_val: "19h"
            value: 19
          - dps_val: "20h"
            value: 20
          - dps_val: "21h"
            value: 21
          - dps_val: "22h"
            value: 22
          - dps_val: "23h"
            value: 23
          - dps_val: "24h"
            value: 24
