Domain is something about how home assistant is handling commands for the entities. I believe you are more interested in device classes.
As an example, motion sensors are part of binary sensor (true/false) domain but they can be configured as different device classes as motion, presence, alarm, power, gas etc. And depending on device class UI will be a bit different.