LOXONE script with Hue Light http/1.1

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    LOXONE script with Hue Light http/1.1

    i have a Loxone that switch my light but after the update 1.23 it does not work any more.

    -------
    One such change is the new HTTP server component through which all commands are transferred. This new HTTP server is stricter in handling requests compared to the previous one, e.g. a HOST header field is required in all HTTP/1.1 request messages per RFC. This can impact your application due to non-functional behavioural changes or stricter handling of requests. We kindly would like to ask you to test this new release with your integration.

    -----

    can somebody help my with the right syntaxs

    sprintf(buffer, "PUT /api/%s/%s HTTP/1.1\r\nHost: %s\r\nConnection: keep-alive\r\nContent-Length: %d\r\n\r\n%s", USERNAME, selector, IP_ADDRESS, strlen(command), command)

    to set the groups light?

    i have now
    PUT /api/%s/%s HTTP/1.1\r\nHost:%s\r\n\r\n%s

    PUT /api/<username>/groups/8/action HTTP/1.1\r\nHost:192.168.20.30\r\n\r\n {"bri":71, "hue":0,"sat":255, "on":true}

    but stil not working ;-(

    it did work like a charm until the update 1.23
    Zuletzt geändert von Gast; 08.02.2018, 10:16.
  • Gast

    #2
    script.txt

    Kommentar

    • Leigh
      MS Profi
      • 25.08.2015
      • 721

      #3
      Just try this one...

      Der Vollständigkeit halber hier meine Software zum Anbinden einer HUE-Bridge an Loxone. Es können alle gängigen Lampen angesprochen werden (Dimmer, Ein/Aus,
      Ciao, Leigh

      Nur der eigene Geist setzt uns Grenzen...

      Kommentar

      • Gast

        #4
        Leigh,

        i try also your script, but Hue has changed something in the version 1.23 of the bridge, that's the problem


        -------
        One such change is the new HTTP server component through which all commands are transferred. This new HTTP server is stricter in handling requests compared to the previous one, e.g. a HOST header field is required in all HTTP/1.1 request messages per RFC. This can impact your application due to non-functional behavioural changes or stricter handling of requests. We kindly would like to ask you to test this new release with your integration.

        -----
        Zuletzt geändert von Gast; 08.02.2018, 11:20.

        Kommentar

        • Gast

          #5
          LOXONE script with Hue Light http/1.1 ->Log files

          I have make some log files.
          to do so i adding some code to the loxone , wat i notced is that now the light responce som times to the commands

          ------------ SEND-------------
          PUT /api/<adres>/groups/1/action HTTP/1.1
          Host: 192.168.20.30
          Connection: keep-alive
          Content-Length: 72
          {"bri": 254, "hue": 21845, "sat": 252, "on": true, "transitiontime": 10}
          -----------------------------------

          ------------ Recieved------------
          HTTP/1.1 200 OK
          Server: nginx
          Date: Fri, 09 Feb 2018 09:13:16 GMT
          Content-Type: application/json
          Connection: close
          Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
          Pragma: no-cache
          Expires: Mon, 1 Aug 2011 09:00:00 GMT
          Access-Control-Max-Age: 3600
          Access-Control-Allow-Origin: *
          Access-Control-Allow-Credentials: true
          Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE, HEAD
          Access-Control-Allow-Headers: Content-Type
          [{"success":{"/groups/1/action/transitiontime":10}},{"success":{"/groups/1/action/on":true}},{"success":{"/groups/1/action/bri":254}},{"success":{"/groups/1/action/hue":21845}},{"success":{"/groups/1/action/sat":252}}]
          -----------------------------------



          Angehängte Dateien

          Kommentar

          Lädt...