I have a raspberry pi where I do my own data parsing for various smart home devices. The RPi runs a webserver and I use HTTP get requests in HR to get status updates for these smart home devices. I’m having issues with polling.
Would it be possible to use webhooks with HR, and if so, how would it work? If I set up a socket server on the RPi, would it be possible to write a plugin to stay connected with this socket server and then receive updates upon changes, thereby removing the need for polling? Additionally, if this were possible, would it be more efficient than polling every X seconds?