rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.94k stars 562 forks source link

Unable to add power consumption to HA assistance #1527

Open dekela opened 1 year ago

dekela commented 1 year ago

Although Current,Voltage and Current_Consumption is being displayed in the attributes and I created sensors following the readme guide enteties are not dispplayed in the energy dashboard to be added to individual power consumpption.

Based on: https://www.home-assistant.io/more-info/statistics/

This is a problem with the integration not providing long term statistics: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

Can it be done? Am I doing something wrong?

Thanks Dekel

PaulCavill commented 1 year ago

Hey this is my setup that works with the energy dashboard

This is the raw switch image

sensor.yaml `

image

image