Device icons for on and off states?

I know we can set custom icons for devices but can we set icons for both the on and off states?

No, that’s currently not possible except for the few devices that have this hard coded (media player, lock).