name: Bed warmer
products:
  - id: vrwpecr7ijucirtl
    manufacturer: Sunbeam
    model: S1
entities:
  - entity: switch
    icon: "mdi:bed"
    dps:
      - id: 14
        type: boolean
        name: switch
      - id: 103
        type: string
        name: confirmation
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 13
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
      - id: 13
        type: bitfield
        name: fault_code
  - entity: select
    name: Level
    icon: "mdi:mdi:thermometer"
    category: config
    dps:
      - id: 20
        type: string
        name: option
        mapping:
          - dps_val: level_1
            value: "1"
          - dps_val: level_2
            value: "2"
          - dps_val: level_3
            value: "3"
          - dps_val: level_4
            value: "4"
          - dps_val: level_5
            value: "5"
          - dps_val: level_6
            value: "6"
          - dps_val: level_7
            value: "7"
          - dps_val: level_8
            value: "8"
          - dps_val: level_9
            value: "9"
          - dps_val: level_10
            value: "10"
  - entity: switch
    name: Preheat
    icon: "mdi:heat-wave"
    category: config
    dps:
      - id: 24
        type: boolean
        name: switch
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 26
        type: string
        name: option
        mapping:
          - dps_val: Stay_On
            value: cancel
          - dps_val: "30m"
            value: "30m"
          - dps_val: "1h"
            value: "1h"
          - dps_val: "1h30m"
            value: "1h30m"
          - dps_val: "2h"
            value: "2h"
          - dps_val: "2h30m"
            value: "2h30m"
          - dps_val: "3h"
            value: "3h"
          - dps_val: "3h30m"
            value: "3h30m"
          - dps_val: "4h"
            value: "4h"
          - dps_val: "4h30m"
            value: "4h30m"
          - dps_val: "5h"
            value: "5h"
          - dps_val: "6h"
            value: "6h"
          - dps_val: "6h30m"
            value: "6h30m"
          - dps_val: "7h"
            value: "7h"
          - dps_val: "7h30m"
            value: "7h30m"
          - dps_val: "8h"
            value: "8h"
          - dps_val: "8h30m"
            value: "8h30m"
          - dps_val: "9h"
            value: "9h"
          - dps_val: "9h30m"
            value: "9h30m"
          - dps_val: "10h"
            value: "10h"
      - id: 101
        type: string
        optional: true
        name: schedule
  - entity: sensor
    translation_key: time_remaining
    class: duration
    category: diagnostic
    dps:
      - id: 28
        type: integer
        name: sensor
        unit: s
        class: measurement
  - entity: sensor
    name: Preheat remaining
    class: duration
    category: diagnostic
    dps:
      - id: 102
        type: integer
        name: sensor
        unit: s
        class: measurement
