Graphical tv consumption

In English :

I have several 3 tvs connected to HA, I would like to know the total consumption of the 3, 2 tvs have the same consumption and the other different.
It should be on a graph

I’m willing to help, thanks to you!

En français

Je possèdes plusieurs 3 tv connecté à HA, j’aimerai connaître la consommation total des 3 trois, 2 tv ont la même consommation et l’autre différente.
Il faudrait que cela soit sur un graphique

Je suis preneur pour l’aide merci à vous !

This will be a lot easier to do next month when sensor groups are introduced but if you want to do it now you can make a template sensor to add the sensors.

It is not clear what you mean by “consumption”, power or energy?

For power:

    - name: Total TV power
      device_class: power
      state_class: measurement
      unit_of_measurement: W
      state: >
        {{ states('sensor.tv_power_1')|float(0) +
           states('sensor.tv_power_2')|float(0) +
           states('sensor.tv_power_3')|float(0) }}
      availability: >
        {{ states('sensor.tv_power_1')|is_number and
           states('sensor.tv_power_2')|is_number and
           states('sensor.tv_power_3')|is_number }}

Or for energy:

    - name: Total TV energy
      device_class: energy
      state_class: total_increasing
      unit_of_measurement: kWh
      state: >
        {{ states('sensor.tv_energy_1')|float(0) +
           states('sensor.tv_energy_2')|float(0) +
           states('sensor.tv_energy_3')|float(0) }}
      availability: >
        {{ states('sensor.tv_energy_1')|is_number and
           states('sensor.tv_energy_2')|is_number and
           states('sensor.tv_energy_3')|is_number }}

You can then add this new sensor to any dashboard graph card.

Get a power meter. it does not to be a smart one, but if you have a smartplug with power measuring, then just use it shortly for this.
Measure the consumption for on and off state and then use the powercalc integration to set the consumption values for the TVs.


Thanks to all of you for your feedback I will look at this topic!