EDIMAX SP2101W - no energy values

Hi,
i hvae configured my EDIMAX SP2101W.
I can turn on and off but i can’t see the energy values.

The following Template is used:

template:
  - sensor:
    - name: Edimax Current power consumption
      unit_of_measurement: "W"
      state: "{{ state_attr('switch.edimax_smart_plug', 'current_power_w') | default(0, true) }}"

    - name: Edimax Accumulated daily power consumption
      unit_of_measurement: "kWh"
      state: "{{ state_attr('switch.edimax_smart_plug', 'today_energy_kwh') | default(0, true) }}"

Has anybody an idea?

Regards
Herbert

i Have found the following:

Alle energy attributes are removed.

Is there a way to read the energy values ??

Regard
Herbert

Thanks - the entry in configuration.yaml reads:

`# EDIMAX-Geräte
switch:

platform: edimax
host: 192.168.188.xx1
name: "EdimaxTeich"
platform: edimax
host: 192.168.188.xx4
name: "EdimaxGefrierschrank"
platform: edimax
host: 192.168.188.xx3
name: "EdimaxKuecheUT"

template:

sensor:

    name: EdimaxTeich Current power consumption
    unit_of_measurement: "W"
    state: "{{ state_attr('EdimaxTeich', 'current_power_w') | default(0, true) }}"

    name: EdimaxTeich Accumulated daily power consumption
    unit_of_measurement: "kWh"
    state: "{{ state_attr('EdimaxTeich', 'today_energy_kwh') | default(0, true) }}"

sensor:

    name: EdimaxGefrierschrank Current power consumption
    unit_of_measurement: "W"
    state: "{{ state_attr('EdimaxGefrierschrank', 'current_power_w') | default(0, true) }}"

    name: EdimaxGefrierschrank Accumulated daily power consumption
    unit_of_measurement: "kWh"
    state: "{{ state_attr('EdimaxGefrierschrank', 'today_energy_kwh') | default(0, true) }}"

sensor:

    name: EdimaxKuecheUT Current power consumption
    unit_of_measurement: "W"
    state: "{{ state_attr('EdimaxKuecheUT', 'current_power_w') | default(0, true) }}"

    name: EdimaxKuecheUT Accumulated daily power consumption
    unit_of_measurement: "kWh"
    state: "{{ state_attr('EdimaxKuecheUT', 'today_energy_kwh') | default(0, true) }}"
    `

The entities can also be included in the dashboard, but do not show any values (always ‘0’), although corresponding live data can be read via the Edimax app.
Where could the error be?
Many thanks in advance.

Is there a soloution for this?

I have the same problem. Comparable config. No errors in the log. I can control the switch but always read a laue of 0 for the current.
Anybody who has that working on the actual release?
Regards Dirk

Anyone found a solution yet? I have same problem as other users reported here, switch shown in HA no power readings, no errors.