name: Fan heater
products:
  - id: gzmby6hypv4daebf
    name: Nedis Ceramic PTC HTFA22WTW
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
          constraint: preset_mode
          conditions:
            - dps_val: level_1
              value: fan_only
            - dps_val: level_2
              value: heat
            - dps_val: level_3
              value: heat
    - id: 2
      type: integer
      name: temperature
      unit: C
      range:
        min: 10
        max: 49
    - id: 3
      type: integer
      name: current_temperature
    - id: 5
      name: preset_mode
      type: string
      mapping:
        - dps_val: "level_1"
          value: none
          hidden: true
        - dps_val: "level_2"
          value: comfort
        - dps_val: "level_3"
          value: boost
    - id: 8
      type: boolean
      name: swing_mode
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          value: "on"
secondary_entities:
  - entity: light
    translation_key: indicator
    category: config
    dps:
      - id: 10
        type: boolean
        name: switch
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 19
        name: option
        type: string
        mapping:
          - dps_val: "cancel"
            value: cancel
          - dps_val: "1h"
            value: "1h"
          - dps_val: "2h"
            value: "2h"
          - dps_val: "2h"
            value: "3h"
          - dps_val: "3h"
            value: "4h"
          - dps_val: "4h"
            value: "5h"
          - dps_val: "5h"
            value: "6h"
  - entity: sensor
    translation_key: time_remaining
    class: duration
    dps:
      - id: 20
        type: integer
        name: sensor
        unit: min
