How to change graph type for power consumption?

Hello!

Earlier I used z-wave plugs but now I try xiaomi.
I had to create template sensor for monitoring power (to know if tv is on or off). It worked just fine, but I also would like to see the graph like on z-wave one

here is what I have

I have already changed device class to “power” and seems it only changed icon
Need some help on that

Does it have a unit of measurement assigned?

No, here is all I have

Assign a unit of measurement

1 Like

Thank you, that worked