You can change the “name:” to “Gas Meter” and the entity_id will be exactly the same as it is now.
It uses the name and if it’s not in the correct format it will slugify that name and that will be the entity_id.
So “name: Gas Meter” becomes “sensor.gas_meter”
If you want something completely different you will have to modify the name field in the entity configuration pop up (easiest) or in the customize section of the configuration.yaml file.
I believe that that configuration is still valid. I still use that config right now and all of them work fine (except for the additional attribute_templates which I don’t use).
This works now.
So I have two solutions:
-Fix my two sensor sections in configuration.
-Use the template sensor syntax and live with the fact that I can only configure the id and not the name.