Trigger an event using an HTTP GET request

I have a Phylink IP camera and it can issue an HTTP request (to HA) when it detects motion. Ideally, I’d have it issue a POST to /api/events/phycam-motion-detected, which IIUC triggers an event I can attach automation to. Sadly the camera can only issue GET requests… Is it possible to create a custom component that adds a GET endpoint into the api to receive such GET requests, and if so, is there an example I can work from? Or is there a different way to slice this that doesn’t involve running some external service to receive the GET request?

1 Like