• Popular
  • Users
  • Login
Flic Home

Community

  • Login
  • Search
  • Popular
  • Users

HTTP request: how to turn on a Domoticz switch?

General Discussion
3
4
1.5k
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 11 Nov 2020, 15:40

    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 24 Feb 2021, 19:30

      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 24 Feb 2021, 16:44

        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 24 Feb 2021, 19:30 Reply Quote 0
        • 3 months earlier
        • Emil
          Emil FlicTeam last edited by 13 Nov 2020, 09:28

          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
          1 out of 4
          • First post
            1/4
            Last post