Esphome components order

Hi.
Is there a way to group and set order of esphome sensors, switches etc?
Standard alphabetical order does not suit me.

I have found an option for the web gui. Is there something similar for the device page?

Cheers,
Mateusz

No not really.

You can group sensors into categories though (where they will still be ordered alphabetically):

https://esphome.io/components/sensor/index.html#base-sensor-configuration
Screenshot 2024-09-15 at 19-07-04 Sensor Component — ESPHome

You can also group and order them how you wish on your dashboard if you take control of the dashboard.

@tom_l
Hmm.

Only three values are valid ‘’, ‘config’, ‘diagnostic’
I thought that I could group them by any string.

Oh well. I will have to live with it for now.

Thank you for your answer.

Cheers,
Mateusz