-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide unique id of SHC in public information #39
Comments
Via a multicast DNS (mDNS) you get the ip and mac address and in case the ip changes you could repeat mDNS, search for the mac address and you will find your SHC in your local network. Check this line of code for the mDNS message, all SHCs are responding to: |
Thanks hxmelab for pointing out using mDNS discovery. |
Using mDNS discovery fails in some network. I have implemented a fallback to retrieve the |
@tschamm when the IP of the SHC has changed, how would you call the API? Do you have another mechanism than mDNS to discover the new IP address? |
Of course that's correct. Either mDNS works in your network, or you already know the IP of the SHC to call the API. But if the IP changes over time, how can I know that it is the same SHC I'm talking to. This is why a unique ID via API makes sense. If mDNS is working, the mac address is available. But if mDNS is not working, I'm lost without additional information. |
@tschamm do you use multiple SHCs in the same network? If you have paired with one SHC, you will notice that it's a different one when the TLS handshake fails. Nonetheless, we are considering this enhancement at the moment. |
@sebastianharder Thanks for considering this as enhancement. |
@tschamm good news! Version 10.0 of the Smart Home Controller firmware will include a field |
@sebastianharder That's very good news, thanks a lot! |
It would be great if it would be possible to provide a unique id (e.g. mac address or serial number) of the SHC via an API call, e.g. using "smarthome/public/information". This would allow other applications to identify the SHC, even if the IP has changed.
The text was updated successfully, but these errors were encountered: