I’m working on a new addon and integration that will work together to provide a complete LoRaWAN server solution. The addon is responsible for receiving device packets and forwarding them to the integration to then update device state. I’m limited to using HTTP to forward the device data to the integration, and I’m looking for advice on the best method to use. Ideally, the receiving endpoint for the integration would be a pre-determined fixed URL. That way, no configuration would be needed on the integration side by the user, and the addon would always send to the same URL. I’ve read the /api/webhook is an option, but from my understanding, a unique webhook ID is created when the integration is installed. Are there any other options that would be suitable for my needs?
EDIT: You may want to add some type of security to ensure endpoint is not abused. This is used for many things in HA. You can look at this as an example or the shelly integration.
This will require a bearer token to be provided in the http request.
When using an addon, you can utilise the SUPERVISOR_TOKEN environment variable that is available in your addon container (providing your addon uses the standard HA addon base image) as this bearer token to authenticate the request.