name: Energy meter
products:
  - id: vfwxetkavqrvg02u
    model: PC311-TY power clamp
entities:
  - entity: sensor
    category: diagnostic
    name: Total energy
    class: energy
    dps:
      - id: 1
        name: sensor
        type: integer
        unit: kWh
        class: total_increasing
        mapping:
          - scale: 100
  - entity: sensor
    category: diagnostic
    name: Total generation
    class: energy
    dps:
      - id: 2
        name: sensor
        type: integer
        unit: kWh
        class: total_increasing
        mapping:
          - scale: 100
  - entity: sensor
    category: diagnostic
    class: power
    name: Total active power
    dps:
      - id: 9
        type: integer
        name: sensor
        unit: W
        force: true
        class: measurement
  - entity: sensor
    category: diagnostic
    class: current
    name: Total current
    dps:
      - id: 105
        type: integer
        name: sensor
        unit: A
        class: measurement
        force: true
        mapping:
          - scale: 1000
  - entity: sensor
    category: diagnostic
    class: voltage
    dps:
      - id: 106
        name: sensor
        type: integer
        unit: V
        class: measurement
        force: true
        mapping:
          - scale: 10
  - entity: sensor
    category: diagnostic
    class: frequency
    dps:
      - id: 117
        type: integer
        name: sensor
        unit: Hz
        class: measurement
  - entity: sensor
    category: diagnostic
    name: Energy A
    class: energy
    dps:
      - id: 101
        name: sensor
        type: integer
        unit: kWh
        class: total_increasing
        mapping:
          - scale: 100
  - entity: sensor
    category: diagnostic
    name: Generation A
    class: energy
    dps:
      - id: 102
        name: sensor
        type: integer
        unit: kWh
        class: total_increasing
        mapping:
          - scale: 100
  - entity: sensor
    category: diagnostic
    class: current
    translation_key: current_x
    translation_placeholders:
      x: A
    dps:
      - id: 107
        name: sensor
        type: integer
        unit: A
        class: measurement
        force: true
        mapping:
          - scale: 1000
  - entity: sensor
    category: diagnostic
    class: power
    translation_key: power_x
    translation_placeholders:
      x: A
    dps:
      - id: 108
        name: sensor
        type: integer
        unit: W
        force: true
        class: measurement
  - entity: sensor
    category: diagnostic
    class: power_factor
    name: Power factor A
    dps:
      - id: 109
        name: sensor
        type: integer
        class: measurement
        mapping:
          - scale: 100
  - entity: sensor
    category: diagnostic
    class: reactive_power
    name: Reactive power A
    dps:
      - id: 115
        name: sensor
        type: integer
        unit: var
  - entity: sensor
    category: diagnostic
    name: Energy B
    class: energy
    dps:
      - id: 103
        name: sensor
        type: integer
        unit: kWh
        class: total_increasing
        mapping:
          - scale: 100
  - entity: sensor
    category: diagnostic
    name: Generation B
    class: energy
    dps:
      - id: 104
        name: sensor
        type: integer
        unit: kWh
        class: total_increasing
        mapping:
          - scale: 100
  - entity: sensor
    category: diagnostic
    class: current
    translation_key: current_x
    translation_placeholders:
      x: B
    dps:
      - id: 110
        name: sensor
        type: integer
        unit: A
        class: measurement
        force: true
        mapping:
          - scale: 1000
  - entity: sensor
    category: diagnostic
    class: power
    translation_key: power_x
    translation_placeholders:
      x: B
    dps:
      - id: 111
        name: sensor
        type: integer
        force: true
        unit: W
        class: measurement
  - entity: sensor
    category: diagnostic
    class: power_factor
    name: Power factor B
    dps:
      - id: 112
        name: sensor
        type: integer
        class: measurement
        mapping:
          - scale: 100
  - entity: sensor
    category: diagnostic
    class: reactive_power
    name: Reactive power B
    dps:
      - id: 116
        name: sensor
        type: integer
        unit: var
