Testing HTTP request
-
I'm trying to create an HTTP request to Home Assistant but am finding a block in the deployment.
I have created the test query that works with curl, but when I transfer that call to the HTTP request option in the Flic app (that is connecting to a hub) invoking the call or pushing the button does nothing.
Is there a way to see the logs of the calls being triggered and the response in the flic app? or any way to identify if the query is actually being sent to my HA environment? -
@paul-j-houghton you know you should be able to set a static ip in your router using mac bindings? That's how I achieved this
-
@paul-j-houghton as target for Flic. Then you should be able to see if something looks strange in the request.
-
@emil do you mean use postman as the target for flic to send to? or as an agent to mimic the call I want to make?
I have used Thunder Client (vs code extension that works the same as postman) to test the call and it works successfully. it also allowed me to send failing calls to see a response.
The problem I'm having is I don't even know if the Flic button is sending the call (or if it's getting blocked by the hub, getting caught in network firewalls or something else). -
@paul-j-houghton one simple way is to use a service like requestbin or postman. Set up a target url at such a service and use that url in the internet request settings. Then that service will monitor and log all the requests.