This is a general question about entity naming when an ESPHome device is used with multiple sensors, and sensors brought in via packages.
Is there a way to bring in a package and change the entity ID prefix only used on sensors created in that package?
Say I have an ESPHome device used for house water sensors.
esphome:
name: house-water
friendly_name: House Water
and then I have a pressure sensor and its entity id ends up: sensor.house_water_pressure, which is great.
Now I want to bring in a package for monitoring my water heater. Is there anyway to override the name for sensors created in that package?
packages:
connect: !include includes/connections.yaml
remote_package:
url: https://github.com/russdill/resideo
ref: main
refresh: 5min
files:
- packages/modbus-esp32c3.yaml
- packages/wv8840c-modbus.yaml
And, for example, a sensor is created with name: "Tank Temperature" and thus the entity ID ends up as expected sensor.house_water_tank_temperature.
But, what if I want all the entities created via that package to be a bit more explicit and prefix all the entities with "hot_water_heater" so I end up with sensor.hot_water_heater_tank_temperature.
I still want the device name to be house-water.