name: Pool heatpump
products:
  - id: kwrvh8zwvbbyp086
    name: Madimack Eco 16kW
primary_entity:
  entity: climate
  dps:
    - id: 101
      type: boolean
      name: hvac_mode
      mapping:
        - dps_val: false
          value: "off"
        - dps_val: true
          constraint: mode
          conditions:
            - dps_val: auto
              value: heat_cool
            - dps_val: heating
              value: heat
            - dps_val: cold
              value: cool
    - id: 102
      type: string
      name: mode
    - id: 104
      type: integer
      name: temperature
      range:
        min: -22
        max: 104
    - id: 105
      type: string
      name: preset_mode
      mapping:
        - dps_val: power
          value: Power
        - dps_val: boost
          value: boost
        - dps_val: silence
          value: sleep
        - dps_val: perfect
          value: comfort
    - id: 106
      name: temperature_unit
      type: string
      mapping:
        - dps_val: f
          value: F
        - dps_val: c
          value: C
    - id: 107
      type: bitfield
      name: fault_code
    - id: 108
      type: integer
      name: current_temperature
    - id: 110
      type: integer
      name: max_temperature
    - id: 111
      type: integer
      name: min_temperature
    - id: 116
      type: bitfield
      name: fault_2
    - id: 122
      type: boolean
      name: power_display
    - id: 123
      type: boolean
      name: cool_enable
    - id: 124
      type: string
      name: overclock_mode
secondary_entities:
  - entity: lock
    translation_key: child_lock
    category: config
    dps:
      - id: 103
        type: boolean
        name: lock
        optional: true
        mapping:
          - dps_val: null
            value: false
            hidden: true
  - entity: select
    translation_key: temperature_unit
    category: config
    dps:
      - id: 106
        name: option
        type: string
        mapping:
          - dps_val: f
            value: fahrenheit
          - dps_val: c
            value: celsius
  - entity: binary_sensor
    class: problem
    category: diagnostic
    dps:
      - id: 107
        type: bitfield
        name: sensor
        mapping:
          - dps_val: 0
            value: true
            constraint: fault_2
            conditions:
              - dps_val: 0
                value: false
          - value: true
  - entity: sensor
    name: Compressor strength
    category: diagnostic
    dps:
      - id: 109
        type: integer
        name: sensor
        unit: "%"
        class: measurement
  - entity: sensor
    name: Coil temperature
    class: temperature
    category: diagnostic
    dps:
      - id: 112
        type: integer
        name: sensor
        class: measurement
      - id: 106
        name: unit
        type: string
        mapping:
          - dps_val: f
            value: F
          - dps_val: c
            value: C
  - entity: sensor
    name: Vent temperature
    class: temperature
    category: diagnostic
    dps:
      - id: 113
        type: integer
        name: sensor
        class: measurement
      - id: 106
        name: unit
        type: string
        mapping:
          - dps_val: f
            value: F
          - dps_val: c
            value: C
  - entity: sensor
    name: Discharge temperature
    class: temperature
    category: diagnostic
    dps:
      - id: 114
        type: integer
        name: sensor
        class: measurement
      - id: 106
        name: unit
        type: string
        mapping:
          - dps_val: f
            value: F
          - dps_val: c
            value: C
  - entity: sensor
    name: Ambient temperature
    class: temperature
    dps:
      - id: 115
        type: integer
        name: sensor
        class: measurement
      - id: 106
        name: unit
        type: string
        mapping:
          - dps_val: f
            value: F
          - dps_val: c
            value: C
  - entity: sensor
    name: Inflow temperature
    class: temperature
    category: diagnostic
    dps:
      - id: 117
        type: integer
        name: sensor
        class: measurement
      - id: 106
        name: unit
        type: string
        mapping:
          - dps_val: f
            value: F
          - dps_val: c
            value: C
  - entity: sensor
    name: Return temperature
    class: temperature
    category: diagnostic
    dps:
      - id: 118
        type: integer
        name: sensor
        class: measurement
      - id: 106
        name: unit
        type: string
        mapping:
          - dps_val: f
            value: F
          - dps_val: c
            value: C
  - entity: sensor
    name: Internal coil temperature
    class: temperature
    category: diagnostic
    dps:
      - id: 119
        type: integer
        name: sensor
        class: measurement
      - id: 106
        name: unit
        type: string
        mapping:
          - dps_val: f
            value: F
          - dps_val: c
            value: C
  - entity: sensor
    name: Radiator temperature
    class: temperature
    category: diagnostic
    dps:
      - id: 120
        type: integer
        name: sensor
        class: measurement
      - id: 106
        name: unit
        type: string
        mapping:
          - dps_val: f
            value: F
          - dps_val: c
            value: C
  - entity: sensor
    name: Expansion valve
    category: diagnostic
    dps:
      - id: 121
        type: integer
        name: sensor
        unit: P
        class: measurement
  - entity: sensor
    class: power
    category: diagnostic
    dps:
      - id: 125
        type: integer
        name: sensor
        unit: kW
        class: measurement
        optional: true
        mapping:
          - scale: 1000
