Open normen opened 2 years ago
Hey @normen, you're correct, it's hardcoded. It does make sense for it to be a function of hostname.
I hesitate a little bit to change behavior like this in case existing users happen to be relying on it, but in this case that seems somewhat unlikely.
If you want to take a stab at the change, it should be pretty straightforward:
Describe the bug
When setting up multiple milight-hub devices in a network and assigning different hostnames the hubs can be accessed by their hostnames but when trying to access the hub via the
milight-hub.local
address there seems to be a clash where a random device on the network answers.It seems that the milight-hub.local address for Bonjour is always the same and not based on the hostname property.
Steps to reproduce
Start multiple milight-hub devices and connect them to a single network. Try to access a specific device via the
milight-hub.local
address.Expected behavior
The Bonjour address of the milight-hub should be based on the given hostname.
Setup information
Milight-hubs on D1Mini as well as NodeMCU devices.
Firmware version
1.10.7
Output of http://milight-hub.local/about
Output of http://milight-hub.local/settings
Additional context