Button switch on and off an while als displaying the current power consumption

Folks, I cant figures this out. I am looking for a possibility to create a button switch on and off an while als displaying the current power consumption of the entity directly on the button. Does something like that exist?