The energy ddashboar only let me add things that measure energy. However on Tuya I can add how much each light consume and it adds its consumption based on how many hours it stayed on.
Is it possible to do this in home asisstant? I could fill how many watts my lamp consumes and itś fixed so there would be no problem
I think there are custom components that can help with this, but it’s pretty easy to do on your own as well.
For your lamp, create a power template sensor. This should be 0 if the light is off, or X watts if the light is on.
Once you have that power sensor, create a Riemann Sum helper (mode: left) from that sensor. That will create an energy sensor. You can then add that to the energy panel.