Use switch as binary sensors

The switches should be able to be used as binary sensors, because after all, they have the same states (on and off), the only difference is that you can modify them.

So, for example, you could create a group of binary sensors and also add a switch to it.

I know that I can create a binary sensor from a switch with a template, but supporting it directly would simplify the use a lot.