Hi all, I am trying to handle status updates from an Egardia / Woonveilig alarm system. The system can report its status to an arbitrary IP and port, so I set up a simple python3 http.server. Now, when the status changes I get the following error (and execution stops):
code 400, message Bad HTTP/0.9 request type(‘[032B0A’)>
So, apparently the alarm system is not playing nice and not passing along GET requests while claiming they do HTTP/0.9.
I think this is just because to make it harder to build your own reporting server (and not pay them a monthly fee any more…).
Now my question is twofold:
a) how do I go about running this http server as a component in HASS?
b) I found a php based solution online that parsed the weird non-GET http requests the alarm sends just fine, but looking at the source of python3 http.server it seems that it errors out because it expects GET. Does anyone know how to roll my own server or change the behavior of the built-in http.server to just accept anything so I can parse what is going on instead of it erroring out on me?
thanks.