How to know the running status of connected device?

i have connected some of my lights and other electrical equipment’s with esphome and nodemcu ,
all are working ok ,
but i want to know if any device is actually running or not , if it is consuming electricity or not ?
and how much ?

is that possible ?

To know if a device is running or not is pretty easy as it’ll be in offline state in HA if device disappears or in deep sleep ! You can also get module to report uptime to get something concrete in HA.
For power consumption, it depends of your electronic design (most devices are not really able to report their own consumption !).