I need help with the integration with my poweropti (by powerfox) in my HA

what i used:

  • the newest HA, it run on a Raspberry Pi 4
  • poweropti (PA201902 - poweropti with IR-Diode)
  • three-phase meter “DMTZ-XC”

After login I can see the energy data in the App “powerfox” and on this Website:

https://backend.powerfox.energy/api/2.0/my/main/current?unit=kwh

output (Link):

{"Outdated":false,"Watt":0,"Timestamp":1672336448,"A_Plus":25098600,"A_Minus":92282600}

my Problem:
I can’t see any data in my HA!

This is my full configuration.yaml file:

default_config:

automation: !include automations.yaml


rest:
  - authentication: basic
    username: [email protected]
    password: password1234
    scan_interval: 15
    resource: https://backend.powerfox.energy/api/2.0/my/main/current?unit=kwh
    sensor:
      - name: "poweropti"
        json_attributes:
          - "Watt"
          - "Timestamp"
          - "A_Plus"
          - "A_Minus"
          - "Outdated"

template:
  - sensor:
      - name: "Strom-aktuell"
        unit_of_measurement: "W"
        device_class: "power"
        state_class: "measurement"
        state: >
            {{ state_attr('sensor.poweropti', 'Watt') }}
      - name: "Strom-Bezug"
        unit_of_measurement: "kWh"
        device_class: "energy"
        state_class: "total_increasing"
        state: >
            {{ state_attr('sensor.poweropti', 'A_Plus') }}
      - name: "Strom-Netz-Lieferung"
        unit_of_measurement: "kWh"
        device_class: "energy"
        state_class: "total_increasing"
        state: >
            {{ state_attr('sensor.poweropti', 'A_Minus') }}

Thanks for your answers.
Please try to use easy English Words.

Greetings from Germany