name: HJZ radiator
primary_entity:
  entity: climate
  translation_only_key: heater
  dps:
    - id: 1
      type: boolean
      name: hvac_mode
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          value: heat
    - id: 2
      type: integer
      name: temperature
      unit: C
      range:
        min: 15
        max: 50
    - id: 4
      type: string
      name: preset_mode
      mapping:
        - dps_val: "0"
          value: comfort
        - dps_val: "1"
          value: eco
        - dps_val: "2"
          value: away
    - id: 21
      type: bitfield
      name: fault_code
secondary_entities:
  - entity: lock
    category: config
    translation_key: child_lock
    dps:
      - id: 7
        type: boolean
        name: lock
  - entity: light
    category: config
    translation_key: display
    dps:
      - id: 10
        type: boolean
        name: switch
  - entity: select
    translation_key: timer
    category: config
    dps:
      - id: 19
        type: string
        name: option
        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: binary_sensor
    category: diagnostic
    class: problem
    dps:
      - id: 21
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: false
          - value: true
