OpenMQTTGateway icon indicating copy to clipboard operation
OpenMQTTGateway copied to clipboard

Adding unique device names to HA dicovery

Open spinpwr opened this issue 3 years ago • 2 comments

Description:

Multiple devices of the same model got the same name in Home Assistant, making the device list less informative when there are many of e.g. the same sensor. To over come this changed the function publishing discovery messages to add the second half of the device mac address to the device name so it becomes unique.

Resolves #1269

Checklist:

  • [x] The pull request is done against the latest development branch
  • [x] Only one feature/fix was added per PR and the code change compiles without warnings
  • [x] I accept the DCO.

spinpwr avatar Sep 10 '22 14:09 spinpwr

There were some accidental commits, but have reverted them (:

spinpwr avatar Sep 10 '22 18:09 spinpwr

Thanks for the PR

1technophile avatar Sep 17 '22 12:09 1technophile