Flic Home

    Community

    • Login
    • Search
    • Popular
    • Users

    HTTP request: how to turn on a Domoticz switch?

    General Discussion
    3
    4
    1199
    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.
    • jhbackus
      jhbackus last edited by

      Hello all,

      please help, I don't seem to be able to get this done.

      I want to use a http request to turn on a switch in domoticz. This is the URL, which works for example in a local browser.

      http://192.168.xxx.xxx:8080/json.htm?type=command&param=switchlight&idx=220&switchcmd=On&level=0

      But when I use this URL in the flic setup, with method "post" or "get" it does not respond.

      How should I fill in the setup fields for something like this to work?

      1 Reply Last reply Reply Quote 0
      • Emil
        Emil FlicTeam @simon.horner last edited by

        To find out how the request the Flic hub makes, you can use a service such as requestb.in or postman.

        1 Reply Last reply Reply Quote 0
        • simon.horner
          simon.horner last edited by

          I have the same issue - just had a hub and 3 buttons delivered and the one thing I wanted to do with it - send pause and play commands via http to our music system.

          This does go via Node Red which handles the interaction with the music server.

          The http GET request works in a local browser. The URL is http://192.168.0.17:1880/squeezer/play.

          Emil, you say 'just fill in the URL' and it should be fine but it isn't. What do I have to do to get it to work?

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

            For a GET request, just fill in the URL and you should be fine. Make sure it's spelled correctly and that the hub is connected to the network.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post