State and battery sensor in the same file

Following “splitting up the configuration” article I managed to split my configuration.yaml into files by integration type.
Unfortunately this way windows sensor device which reports its state via mqtt landed into two directories: sensors and binary_sensors.

Is it possible to have those two sensors all together, one next each other? in other words is it possible to group entities other way than by integration type?

Yes, with

Thank you. It seems it’s the thing.

It rises a question why in HA basic things appears so complicated