esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
415 stars 26 forks source link

Show friendly name in dashboard if it has been defined. #1851

Open the-maldridge opened 2 years ago

the-maldridge commented 2 years ago

Describe the problem you have/What new integration you would like My devices are all named with a generated name that I pull out of an inventory management system which prefers to work with machine readable names. This works well and allows me to identify what kind of device it is and what the device portion of the MAC address is by its name, however it is hard to identify what device is where.

If a friendly name is defined, I would like the friendly name to be shown in the tile view of the dashboard.

Please describe your use case for this integration and alternatives you've tried: This would make the dashboard easier to use while still allowing more machine-friendly names to be the root device name. After all, the friendly name is for humans, the device name is for devices.

Additional context This would also make some things cleaner W.R.T. amount of text shown in the UI, but only marginally.

randybb commented 2 years ago

But friendly name is just your substitution. Other people might call it differently. Dashboard is currently showing name and comment defined under esphome, so if you are not using comments already, you can reuse it like this:

esphome:
  comment: ${friendly_name}