I gave up and put this into config.yaml (not all devices, just example)
It is probably possible to do it somehow in gui
template:
- sensor:
- name: "Bojler"
unit_of_measurement: "kWh"
state: "{{states('sensor.bojler_energy')}}"
device_class: energy
state_class: total_increasing
- name: "AC Dílna"
unit_of_measurement: "kWh"
state: "{{states('sensor.ac_dilna_energy')}}"
device_class: energy
state_class: total_increasing
- name: "AC Obývák"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_metter_ac_livingroom_energy')}}"
device_class: energy
state_class: total_increasing
- name: "AC Ložnice"
unit_of_measurement: "kWh"
state: "{{states('sensor.mycka_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Topení koupelna"
unit_of_measurement: "kWh"
state: "{{states('sensor.topeni_koupelna_energy')}}"
device_class: energy
state_class: total_increasing
- name: "TV"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_livingroom_socket_tv_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Xbox"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_livingroom_socket_xbox_energy')}}"
device_class: energy
state_class: total_increasing
- name: "L1"
unit_of_measurement: "kWh"
state: "{{states('sensor.esphome_l1')}}"
device_class: energy
state_class: total_increasing
- name: "L2"
unit_of_measurement: "kWh"
state: "{{states('sensor.esphome_l2')}}"
device_class: energy
state_class: total_increasing
- name: "L3"
unit_of_measurement: "kWh"
state: "{{states('sensor.esphome_l3')}}"
device_class: energy
state_class: total_increasing
- name: "Myčka"
unit_of_measurement: "kWh"
state: "{{states('sensor.ac_loznice_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Pračka"
unit_of_measurement: "kWh"
state: "{{states('sensor.pracka_energy')}}"
device_class: energy
state_class: total_increasing
- name: "PS5"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_livingroom_socket_ps5_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Kávovar"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_kitchen_socket_kavovar_coffee_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Lednice"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_kitchen_socket_lednice_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Osvětlení linky"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_kitchen_socket_lights_linka_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Toustovač"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_kitchen_socket_toustovac_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Varná konvice"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_kitchen_socket_varna_konvice_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Friťák"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_kitchen_socket_xiaomi_fritak_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Nabíječka u gauče"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_livingroom_socket_charger_sofa_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Router"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_livingroom_socket_router_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Trouba + deska"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_metter_trouba_deska_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Asus nabíječka"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_office_socket_asus_charger_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Monitor Lightbar"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_office_socket_lightbar_energy')}}"
device_class: energy
state_class: total_increasing
# - name: "Office"
# unit_of_measurement: "kWh"
# state: "{{states('sensor.zm2_tuya_office_socket_main_energy')}}"
# device_class: energy
# state_class: total_increasing
- name: "Nabíječky nářadí"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_shop_socket_chargers_energy')}}"
device_class: energy
state_class: total_increasing
- name: "Nabíječky na ponku"
unit_of_measurement: "kWh"
state: "{{states('sensor.zm2_tuya_shop_socket_ponk_lampicka_energy')}}"
device_class: energy
state_class: total_increasing