The h file is just the firmware implementation. Nothing to configure there. It’s used as part of the esphome framework to create the firmware image
The yaml files are the config files. The first one is for normal utility (meter always increases kWh and watts never go negative) and for solar (with net energy metering; watts can be negative m)