name: Electric fireplace
products:
  - id: qhwld7e4eqvu5fbp
    name: Touchstone Sideline
primary_entity:
  entity: climate
  dps:
    - id: 1
      type: boolean
      name: hvac_mode
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          constraint: heat_disable
          conditions:
            - dps_val: false
              value: heat
            - dps_val: true
              value: fan_only
    - id: 2
      name: temperature
      type: integer
      range:
        min: 19
        max: 30
      mapping:
        - constraint: temperature_unit
          conditions:
            - dps_val: f
              range:
                min: 67
                max: 86
              value_redirect: temp_set_f
    - id: 3
      name: current_temperature
      type: integer
      mapping:
        - constraint: temperature_unit
          conditions:
            - dps_val: f
              value_redirect: temp_current_f
    - id: 5
      name: preset_mode
      type: string
      mapping:
        - dps_val: "0"
          value: eco
        - dps_val: "1"
          value: comfort
        - dps_val: "2"
          value: boost
    - id: 13
      name: temperature_unit
      type: string
      mapping:
        - dps_val: c
          value: C
        - dps_val: f
          value: F
    - id: 14
      name: temp_set_f
      type: integer
      range:
        min: 67
        max: 86
      hidden: true
    - id: 15
      name: temp_current_f
      type: integer
      hidden: true
    - id: 107
      type: boolean
      name: heat_disable
      hidden: true
    - id: 106
      name: timer
      type: string
      optional: true
secondary_entities:
  - entity: select
    translation_key: temperature_unit
    category: config
    dps:
      - id: 13
        type: string
        name: option
        mapping:
          - dps_val: c
            value: celsius
          - dps_val: f
            value: fahrenheit
  - entity: light
    translation_key: flame
    category: config
    dps:
      - id: 102
        name: brightness
        type: string
        mapping:
          - dps_val: "1"
            value: 51
          - dps_val: "2"
            value: 102
          - dps_val: "3"
            value: 153
          - dps_val: "4"
            value: 204
          - dps_val: "5"
            value: 255
      - id: 101
        name: effect
        type: string
        mapping:
          - dps_val: "1"
            value: "Orange"
          - dps_val: "2"
            value: "Blue"
          - dps_val: "3"
            value: "Yellow"
          - dps_val: "4"
            value: "Orange+Blue"
          - dps_val: "5"
            value: "Orange+Yellow"
          - dps_val: "6"
            value: "Blue+Yellow"
  - entity: light
    translation_key: embers
    category: config
    dps:
      - id: 109
        name: brightness
        type: string
        optional: true
        mapping:
          - dps_val: L0
            value: 0
          - dps_val: L1
            value: 51
          - dps_val: L2
            value: 102
          - dps_val: L3
            value: 153
          - dps_val: L4
            value: 204
          - dps_val: L5
            value: 255
          - dps_val: null
            value: 0
            hidden: true
      - id: 104
        name: effect
        type: string
        mapping:
          - dps_val: "1"
            value: "Orange"
          - dps_val: "2"
            value: "Red"
          - dps_val: "3"
            value: "Blue"
          - dps_val: "4"
            value: "Yellow"
          - dps_val: "5"
            value: "Green"
          - dps_val: "6"
            value: "Purple"
          - dps_val: "7"
            value: "Teal"
          - dps_val: "8"
            value: "Pink"
          - dps_val: "9"
            value: "White"
          - dps_val: "10"
            value: "Peach"
          - dps_val: "11"
            value: "Cycle"
          - dps_val: "12"
            value: "Mystery"
  - entity: light
    translation_key: logs
    category: config
    dps:
      - id: 105
        name: brightness
        type: string
        mapping:
          - dps_val: "1"
            value: 21
          - dps_val: "2"
            value: 43
          - dps_val: "3"
            value: 64
          - dps_val: "4"
            value: 85
          - dps_val: "5"
            value: 106
          - dps_val: "6"
            value: 128
          - dps_val: "7"
            value: 149
          - dps_val: "8"
            value: 171
          - dps_val: "9"
            value: 192
          - dps_val: "10"
            value: 213
          - dps_val: "11"
            value: 234
          - dps_val: "12"
            value: 255
  - entity: select
    name: Flame speed
    icon: "mdi:fire"
    category: config
    dps:
      - id: 103
        type: string
        name: option
        mapping:
          - dps_val: "1"
            value: Slow
          - dps_val: "2"
            value: Medium
          - dps_val: "3"
            value: Fast
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 108
        type: boolean
        name: lock
