Ankündigung

Einklappen
Keine Ankündigung bisher.

input from network to loxone

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

  • input from network to loxone

    Hello,

    If I want to trigger something in the Miniserver from the network, it seems that UDP is the only option:
    http://www.loxone.com/enen/service/d...-with-udp.html
    (if I get it correctly, http requires polling)

    But are there some best practices regarding this?
    Do I make 1 UDP input connector and put all virtual UDP input commands on that one?
    Or can I make multiple UDP input connectors and put differnt UDP input commands on each of them?

    Thanks,


    Jörg

  • #2
    So far unsuccessful... I can send network packets to my Squeezebox, but not to my computer. Receiving from computer also does not work.
    I will install Microsoft Message Analyzer to sniff the packets...

    Kommentar


    • #3
      Hi Jörg,

      you also can communicate to the Miniserver by http REST commands:
      http://www.loxone.com/enen/service/d...bservices.html

      You can read and modify any function block my calling the REST command to a unique function block name. You also can create virtual inputs in your program and set values or on and off.

      Regards,
      Christian
      LoxBerry/Plugin Support: Wenn du einen Begriff in meiner Antwort nicht auf Anhieb verstehst, bitte nicht gleich rückfragen, sondern erst die Suche im LoxWiki und bei Google bemühen.
      PN/PM: Ich bevorzuge die Beantwortung von Fragen in öffentlichen Threads, wo andere mithelfen und mitprofitieren können. Herzlichen Dank!

      Kommentar


      • #4
        Hello,

        Thanks! I overlooked those... For sending things to the Miniserver that may indeed be the easiest option.
        For sending something from the miniserver to another device, I feel tcp or udp is better suited (no polling on receiver side required). Consequently, I assumed the same protocol for both directions would make most sense.

        Ideally, I would like to have bi-directional communication between the Miniserver and a computer running EventGhost. But it is a lengthy process. I'm just finishing the lights (still working on getting the dimmer control working) and started playing with the temperature controls. In between I try other things (squeezebox, eventghost) to have some variety. :-)


        Jörg

        Kommentar


        • #5
          Hi,

          I made a python script that receives udp packages and triggers commands, I developed it for use on OSX / UNIX but its easily modified for use on PC..

          https://github.com/kevinduterne/Loxone-UDPserver

          Any luck with the REST calls?

          Grts
          Kevin

          Kommentar


          • #6
            Interesting!
            My attention shifted to integrating the thermostats first (winter is coming). The communication between EventGhost/Squeezebox and Loxone would be for mediacontrol, and I will get back to that later. I am thinking of also involving OpenRemote, to have a user interface for media control that is nicer than the Loxone one, so while I will add basic control in the Loxone, the more detailed control may be delegated to OpenRemote. It requires a computer running, but so does my media playback. Only exception would be internet radio, which does not need so detailed controls.

            Kommentar


            • #7
              can somebody post example how to set value of virtual input which is analog - in Loxone online documentation there is only example how to trigger Virtual input as digital input (PulseUp/PulseDown).

              Kommentar


              • #8
                Instead of PulseUp/PulseDown simply the value, eg <v>
                LoxBerry/Plugin Support: Wenn du einen Begriff in meiner Antwort nicht auf Anhieb verstehst, bitte nicht gleich rückfragen, sondern erst die Suche im LoxWiki und bei Google bemühen.
                PN/PM: Ich bevorzuge die Beantwortung von Fragen in öffentlichen Threads, wo andere mithelfen und mitprofitieren können. Herzlichen Dank!

                Kommentar


                • #9
                  doesnt work. I try to set control GUI_LAMP_illumination which have value btw 0-100.
                  Following commands doesnt work

                  http://192.168.2.7/dev/sps/io/GUI_LAMP_illumination/<10>

                  <?xml version="1.0" encoding="utf-8"?>
                  <LL control="dev/sps/io/GUI_LAMP_illumination/&lt;10&gt;" value="" Code="500"/>

                  http://192.168.2.7/dev/sps/io/GUI_LAMP_illumination/10

                  <?xml version="1.0" encoding="utf-8"?>
                  <LL control="dev/sps/io/GUI_LAMP_illumination/10" value="" Code="500"/>

                  Kommentar


                  • #10
                    If you set a fixed value, just send the value!
                    .../10

                    If it is an analogue virtual output, it’s <v> (this is replaced by the value).
                    See Details at the bottom, if you are in the field.
                    LoxBerry/Plugin Support: Wenn du einen Begriff in meiner Antwort nicht auf Anhieb verstehst, bitte nicht gleich rückfragen, sondern erst die Suche im LoxWiki und bei Google bemühen.
                    PN/PM: Ich bevorzuge die Beantwortung von Fragen in öffentlichen Threads, wo andere mithelfen und mitprofitieren können. Herzlichen Dank!

                    Kommentar


                    • #11
                      Christian, thanks for feedback.

                      what you meant under ..../10

                      because I tried already

                      http://192.168.2.7/dev/sps/io/GUI_LAMP_illumination/10

                      and it doesnt work.
                      <?xml version="1.0" encoding="utf-8"?>
                      <LL control="dev/sps/io/GUI_LAMP_illumination/10" value="" Code="500"/>

                      what you meant under .....

                      Kommentar


                      • #12
                        Error 500 means, your IO does not exist.
                        Double-check the name.
                        LoxBerry/Plugin Support: Wenn du einen Begriff in meiner Antwort nicht auf Anhieb verstehst, bitte nicht gleich rückfragen, sondern erst die Suche im LoxWiki und bei Google bemühen.
                        PN/PM: Ich bevorzuge die Beantwortung von Fragen in öffentlichen Threads, wo andere mithelfen und mitprofitieren können. Herzlichen Dank!

                        Kommentar


                        • #13
                          A response with Code 500 means the password was incorrect
                          http://user:password@192.168.2.7/dev...llumination/10
                          lg Romildo

                          Kommentar


                          • Christian Fenzl
                            Christian Fenzl kommentierte
                            Kommentar bearbeiten
                            IMHO Not in the case that you already get an xml response with “Code”=500.
                            XML response means, you’re already authenticated.

                            Is the code in the xml 403, you have no permission for this IO.
                            500 in the xml usually means, that this IO does not exist.
                            Zuletzt geändert von Christian Fenzl; vor einer Woche.

                        • #14
                          problem resolved - reason was that there was "User interface password" on control. Eventhough user/pass combination is same it didnt work. After removal of thick "User interface password" things works as expected.

                          Thanks anyway for support.
                          Zuletzt geändert von Giovani; vor einer Woche.

                          Kommentar

                          Lädt...
                          X