The problem
When you call RegisterServiceCallBack() while the NetDaemon integration is not installed it will fail and log an exception saying the required service is not present. It would be nice to log a clear message in this case telling the user to install the integration.
The proposed solution
Two possible solutions:
- Whenever you can RegisterServiceCallBack(), we first check if the service is present in HA (using the webservice to retrieve all available services like we do in the codegen). Ofc we only need to do this once and can cache the result statically.
- check for the specific error coming back from HA and log a message.
The alternatives
Additional context