Sonoff POW consuption reading

Hi, could somebody tell what is wrong? I have 3 Sonoff POW modules, I see power, voltage, current. But the consuption just of Upravna. The 2nd (Trachycarpus) and 3rd (Garaz) still not visible. Below my config…
Thanks for help, Jiri
sensor:

  • platform: template
    sensors:
    today_consumption:
    friendly_name: Upravna Today consumption
    unit_of_measurement: kWh
    value_template: “{{ state_attr(‘switch.sonoff_1000bd9593’, ‘consumption’).0 }}”
    ten_days_consumption:
    friendly_name: Upravna 10 days consumption
    unit_of_measurement: kWh
    value_template: “{% set p=state_attr(‘switch.sonoff_1000bd9593’, ‘consumption’) %}{{ p[:10]|sum if p }}”

  • platform: template
    sensors:
    today_consumption:
    friendly_name: Trachycarpus Today consumption
    unit_of_measurement: kWh
    value_template: “{{ state_attr(‘switch.sonoff_1000cd9924’, ‘consumption’).0 }}”
    ten_days_consumption:
    friendly_name: Trachycarpus 10 days consumption
    unit_of_measurement: kWh
    value_template: “{% set p=state_attr(‘switch.sonoff_1000cd9924’, ‘consumption’) %}{{ p[:10]|sum if p }}”

  • platform: template
    sensors:
    today_consumption:
    friendly_name: Garáž Today consumption
    unit_of_measurement: kWh
    value_template: “{{ state_attr(‘switch.sonoff_1000bd7d01’, ‘consumption’).0 }}”
    ten_days_consumption:
    friendly_name: Garáž 10 days consumption
    unit_of_measurement: kWh
    value_template: “{% set p=state_attr(‘switch.sonoff_1000bd7d01’, ‘consumption’) %}{{ p[:10]|sum if p }}”

Solved, see below:
sensor:

  • platform: template
    sensors:
    today_consumption:
    friendly_name: “Upravna Today consumption”
    unit_of_measurement: “kWh”
    value_template: “{{ state_attr(‘switch.sonoff_1000bd9593’, ‘consumption’).0 }}”
    ten_days_consumption:
    friendly_name: “Upravna 10 days consumption”
    unit_of_measurement: “kWh”
    value_template: “{% set p=state_attr(‘switch.sonoff_1000bd9593’, ‘consumption’) %}{{ p[:10]|sum if p }}”

  • platform: template
    sensors:
    today_consumption1:
    friendly_name: “Trachycarpus Today consumption”
    unit_of_measurement: “kWh”
    value_template: “{{ state_attr(‘switch.sonoff_1000cd9924’, ‘consumption’).0 }}”
    ten_days_consumption1:
    friendly_name: “Trachycarpus 10 days consumption”
    unit_of_measurement: “kWh”
    value_template: “{% set p=state_attr(‘switch.sonoff_1000cd9924’, ‘consumption’) %}{{ p[:10]|sum if p }}”

  • platform: template
    sensors:
    today_consumption2:
    friendly_name: “Garáž Today consumption”
    unit_of_measurement: “kWh”
    value_template: “{{ state_attr(‘switch.sonoff_1000bd7d01’, ‘consumption’).0 }}”
    ten_days_consumption2:
    friendly_name: “Garáž 10 days consumption”
    unit_of_measurement: “kWh”
    value_template: “{% set p=state_attr(‘switch.sonoff_1000bd7d01’, ‘consumption’) %}{{ p[:10]|sum if p }}”

does this still work? mine says UNKNOWN