Home Assistant Grouping System

Just curious when coming up with the HA system, the benefits of having a group file where you pull in the names of the entities in the group, as opposed to adding the name of the group to the entity.

For example if a light was in a lighting group the definition would be:

- platform: mqtt
  name: 'Entrance Lamp'
  command_topic: "zwave_switch_entrance_lamp/command"
  payload_on: "ON"
  payload_off: "OFF"
  state_topic: "wave_switch_entrance_lamp/state"
  group: "lighting"

And the group file for lighting would just contain it’s ui information.

There’s obviously a reason it was done the way it was done, and curious as to the why. It’s one of the main things I find hard when coming from an openhab instance.