Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    Testing HTTP request

    Flic Hub
    3
    5
    1076
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • paul.j.houghton
      paul.j.houghton last edited by

      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?

      Emil 1 Reply Last reply Reply Quote 0
      • ariel
        ariel last edited by

        @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 🙂

        1 Reply Last reply Reply Quote 1
        • Emil
          Emil FlicTeam @paul.j.houghton last edited by

          @paul-j-houghton as target for Flic. Then you should be able to see if something looks strange in the request.

          1 Reply Last reply Reply Quote 1
          • paul.j.houghton
            paul.j.houghton @Emil last edited by

            @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).

            Emil 1 Reply Last reply Reply Quote 0
            • Emil
              Emil FlicTeam @paul.j.houghton last edited by

              @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.

              paul.j.houghton 1 Reply Last reply Reply Quote 0
              • First post
                Last post