name: Thermostat
products:
  - id: 7o1bzm3omsqau6w6
    manufacturer: Herschel
    model: XLS-T-PL
entities:
  - entity: climate
    translation_only_key: thermostat
    dps:
      - id: 1
        name: hvac_mode
        type: boolean
        mapping:
          - dps_val: true
            value: "heat"
            icon: "mdi:radiator"
          - dps_val: false
            value: "off"
            icon: "mdi:radiator-disabled"
      - id: 2
        name: temperature
        type: integer
        mapping:
          - scale: 10
            step: 10
        range:
          min: 0
          max: 370
        unit: "C"
      - id: 3
        name: current_temperature
        type: integer
        mapping:
          - scale: 10
      - id: 4
        type: string
        mapping:
          - dps_val: manual
            value: manual
          - dps_val: holiday
            value: away
          - dps_val: auto
            value: program
        name: preset_mode
      - id: 109
        name: hvac_action
        type: boolean
        mapping:
          - dps_val: false
            value: idle
          - dps_val: true
            value: heating
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 10
        type: string
        name: option
        optional: true
        mapping:
          - dps_val: "0"
            value: cancel
          - dps_val: "1"
            value: "1h"
          - dps_val: "2"
            value: "2h"
          - dps_val: "3"
            value: "3h"
          - dps_val: "4"
            value: "4h"
          - dps_val: "5"
            value: "5h"
          - dps_val: "6"
            value: "6h"
          - dps_val: "7"
            value: "7h"
          - dps_val: "8"
            value: "8h"
          - dps_val: "9"
            value: "9h"
          - dps_val: "10"
            value: "10h"
          - dps_val: "11"
            value: "11h"
          - dps_val: "12"
            value: "12h"
          - dps_val: "13"
            value: "13h"
          - dps_val: "14"
            value: "14h"
          - dps_val: "15"
            value: "15h"
          - dps_val: "16"
            value: "16h"
          - dps_val: "17"
            value: "17h"
          - dps_val: "18"
            value: "18h"
          - dps_val: "19"
            value: "19h"
          - dps_val: "20"
            value: "20h"
          - dps_val: "21"
            value: "21h"
          - dps_val: "22"
            value: "22h"
          - dps_val: "23"
            value: "23h"
          - dps_val: "24"
            value: "24h"
  - entity: sensor
    translation_key: time_remaining
    class: duration
    category: diagnostic
    dps:
      - id: 11
        type: integer
        name: sensor
        unit: min
        optional: true
  - entity: number
    name: Holiday
    icon: "mdi:island"
    category: config
    dps:
      - id: 101
        name: value
        type: integer
        unit: d
        optional: true
        range:
          min: 0
          max: 99
  - entity: switch
    name: Open window detection
    icon: "mdi:window-open"
    category: config
    dps:
      - id: 103
        type: string
        name: switch
        optional: true
        mapping:
          - dps_val: continue
            value: true
          - dps_val: close
            value: false
  - entity: sensor
    name: Up time
    class: duration
    category: diagnostic
    dps:
      - id: 105
        type: integer
        name: sensor
        unit: min
        optional: true
