(Apologies if I’ve posted this in the wrong area… not sure if this counts as an “energy” topic or a “dashboard” topic since it’s about Home Assistant’s built-in energy dashboard…)
I just installed a new ESPHome device in my home that reports energy usage (both energy in Wh and power in W). I’m trying to add it to my Home Assistant “Energy” dashboard, but its power entity is not showing up in the list of available entities. Can anyone point me to a fix?
For a little more detail, here’s what I did:
- Open the “Energy” dashboard
- Click on the pencil icon in the top right corner
- Scroll down and click “add device”
- In the window that appears, there’s a combobox/dropdown for “Device energy consumption”. Choose my device’s energy entity here.
- There is also a dropdown for “Device power consumption” but my device’s power entity is NOT listed in this dropdown… That’s the problem.
Here is the relevant snippet of my ESPHome YAML for the device that creates the entity that should be listed:
> - platform: template
> name: "Total Power"
> lambda: return id(phase_a_power).state + id(phase_b_power).state;
> update_interval: 10s
> id: total_power
> unit_of_measurement: "W"
When I look at the entity in my device (settings > Devices > …), it shows a meaningful reasonable value… but the Home Assistant Energy dashboard doesn’t consider it eligible for some reason. Am I doing something wrong?
Thanks!