name: Fan heater
products:
  - id: var0f7dheclxpjuz
    manufacturer: Cecotec
    model: ReadyWarm 8400 Bladeless
entities:
  - 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: "off"
                value: fan_only
              - dps_val: "low"
                value: heat
                hidden: true
              - dps_val: "high"
                value: heat
                hidden: true
              - dps_val: "auto"
                value: heat
      - id: 2
        type: integer
        name: temperature
        unit: C
        range:
          min: 15
          max: 40
      - id: 3
        type: integer
        name: current_temperature
      - id: 4
        name: preset_mode
        type: string
        mapping:
          - dps_val: "off"
            value: none
          - dps_val: "low"
            value: eco
          - dps_val: "high"
            value: boost
          - dps_val: "auto"
            value: comfort
      - id: 8
        type: boolean
        name: swing_mode
        mapping:
          - dps_val: false
            value: "off"
          - dps_val: true
            value: "on"
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 19
        name: option
        type: string
        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
    dps:
      - id: 20
        type: integer
        name: sensor
        unit: min
