AFAIK, you can’t.
I wrote a utility to generate the .items and .things files based on yaml + template.
Link to forum post: Another Things and Items file Generator
The yaml file looks like this:
LivingRoom_Window1:
template: aqara-contact
thingid: livingroom-window1-contact
icon: window
groups:
- gWindows
- gLivingRoom
tags:
- Window
Hallway_Light1:
template: tuya-rgbtwlight
thingid: hallway_light_1
power:
groups:
- gSmartLights
metadata:
- HardwareSwitch: Hallway_Light_Switch
groups:
- gHallway
color:
ct:
The structure of the yaml relates to the template in use so you pretty much decide what and how it should be structured.