name: Towel warmer
products:
  - id: 1dxb14emvqzxzc5q
    name: Valehaus SYZN119

primary_entity:
  entity: climate
  icon: "mdi:heating-coil"
  dps:
    - id: 1
      type: boolean
      name: hvac_mode
      mapping:
        - dps_val: true
          value: heat
        - dps_val: false
          value: "off"
    - id: 2
      name: temperature
      type: integer
      range:
        min: 35
        max: 60
      unit: C
      mapping:
        - step: 5
    - id: 3
      type: integer
      name: current_temperature
    - id: 14
      type: string
      name: hvac_action
      mapping:
        - constraint: hvac_mode
          conditions:
            - dps_val: true
              mapping:
                - dps_val: heating
                  value: heating
                - dps_val: standby
                  value: idle
            - dps_val: false
              value: "off"
secondary_entities:
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 12
        type: string
        name: option
        optional: true
        mapping:
          - dps_val: cancel
            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"
  - entity: sensor
    translation_key: time_remaining
    class: duration
    dps:
      - id: 13
        type: integer
        name: sensor
        unit: min
        range:
          min: 0
          max: 1440
