Hi all,
I’m trying to sum up two sensors, it seems to be working - the state is being updated with the cumulative kilowatts used for two sensors. However, the sensor does not show up as a selectable entity in the Energy Dashbaord.
Does anyone know how I can get the template sensor into the Energy Dashboard?
template:
- sensor:
- name: "Computer Rack Outlet Energy - Total"
state: "{{ [states('sensor.computer_rack_outlet_1_energy'), states('sensor.computer_rack_outlet_2_energy') ] | map('float') | sum }}"
unit_of_measurement: "kWh"
device_class: energy
icon: mdi:chart-histogram
state_class: total_increasing