name: Smart Inverter GTB Series
products:
  - id: bf27badb1abd9bfc5beeuq
    name: GTB Series
primary_entity:
  entity: sensor
  class: energy
  dps:
    - id: 2
      type: integer
      name: sensor
      unit: kWh
      class: total_increasing
      mapping:
        - scale: 100
    - id: 15
      name: model
      type: string
    - id: 16
      name: inverter_id
      type: string
secondary_entities:
  - entity: sensor
    class: power
    category: diagnostic
    dps:
      - id: 10
        type: integer
        name: sensor
        unit: W
        force: true
        class: measurement
        mapping:
          - scale: 1
  - entity: sensor
    class: temperature
    category: diagnostic
    dps:
      - id: 18
        type: integer
        name: sensor
        unit: C
        force: true
        class: measurement
        mapping:
          - scale: 10
  - entity: sensor
    name: DC voltage
    class: voltage
    category: diagnostic
    dps:
      - id: 3
        type: base64
        name: sensor
        unit: V
        optional: true
        persist: true
        force: true
        class: measurement
        mapping:
          - mask: "FFFF00000000"
            scale: 10
  - entity: sensor
    name: DC current
    class: current
    category: diagnostic
    dps:
      - id: 3
        type: base64
        name: sensor
        unit: A
        optional: true
        persist: true
        class: measurement
        mapping:
          - mask: "0000FFFF0000"
            scale: 10
  - entity: sensor
    name: DC power
    class: power
    category: diagnostic
    dps:
      - id: 3
        type: base64
        name: sensor
        unit: W
        optional: true
        persist: true
        class: measurement
        mapping:
          - mask: "00000000FFFF"
            scale: 0.1
  - entity: sensor
    name: AC voltage
    class: voltage
    category: diagnostic
    dps:
      - id: 7
        type: base64
        name: sensor
        unit: V
        optional: true
        persist: true
        force: true
        class: measurement
        mapping:
          - mask: "FFFF0000000000000000"
            scale: 10
  - entity: sensor
    name: AC current
    class: current
    category: diagnostic
    dps:
      - id: 7
        type: base64
        name: sensor
        unit: A
        optional: true
        persist: true
        class: measurement
        mapping:
          - mask: "0000FFFFFF0000000000"
            scale: 1000
  - entity: sensor
    name: AC power
    class: power
    category: diagnostic
    dps:
      - id: 7
        type: base64
        name: sensor
        unit: W
        optional: true
        persist: true
        class: measurement
        mapping:
          - mask: "0000000000FFFFFF0000"
            scale: 1
  - entity: sensor
    name: AC frequency
    class: frequency
    category: diagnostic
    dps:
      - id: 7
        type: base64
        name: sensor
        unit: Hz
        optional: true
        persist: true
        class: measurement
        mapping:
          - mask: "0000000000000000FFFF"
            scale: 10
  - entity: switch
    name: Inverter switch
    category: config
    dps:
      - id: 101
        type: boolean
        name: switch
        optional: true
