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
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:
template:
sensor:
- 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:
template:
sensor:
- 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.