name: Heater
products:
  - id: ojvja3vyqchxrfhk
    name: Atomi AT1632
  - id: tos0dbspyikjzcxe
    name: Atomi AT1635
primary_entity:
  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: 60
        max: 86
      unit: F
    - id: 3
      type: integer
      name: current_temperature
    - id: 4
      type: string
      name: preset_mode
      mapping:
        - dps_val: auto
          value: eco
        - dps_val: low
          value: comfort
        - dps_val: high
          value: boost
    - id: 8
      type: boolean
      name: swing_mode
      # not available on AT1635
      optional: true
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          value: horizontal
secondary_entities:
  - entity: light
    translation_key: display
    category: config
    dps:
      - id: 10
        type: boolean
        name: switch
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 11
        type: string
        name: option
        mapping:
          - dps_val: "0h"
            value: cancel
          - dps_val: "1h"
            value: "1h"
          - dps_val: "2h"
            value: "2h"
          - dps_val: "3h"
            value: "3h"
          - dps_val: "4h"
            value: "4h"
          - dps_val: "5h"
            value: "5h"
          - dps_val: "6h"
            value: "6h"
          - dps_val: "7h"
            value: "7h"
          - dps_val: "8h"
            value: "8h"
          - dps_val: "9h"
            value: "9h"
          - dps_val: "10h"
            value: "10h"
          - dps_val: "11h"
            value: "11h"
          - dps_val: "12h"
            value: "12h"
  - entity: sensor
    translation_key: time_remaining
    class: duration
    category: diagnostic
    dps:
      - id: 12
        type: integer
        name: sensor
        unit: min
  - entity: binary_sensor
    name: Overheat protection
    class: problem
    icon: "mdi:fire-alert"
    category: diagnostic
    dps:
      - id: 102
        type: boolean
        name: sensor
  - entity: binary_sensor
    name: Tip over protection
    class: problem
    icon: "mdi:debug-step-over"
    category: diagnostic
    dps:
      - id: 103
        type: boolean
        name: sensor
