X
-
Thank you for that detailed explanation, but just for clarification: The webservice-node uses the already established websocket connection to do it's request. It is not a "new" request.
@geforce28: Also have a look here https://github.com/codmpm/node-red-contrib-loxone under webservice. I've tried to explain the differences there.
-
Control IN / OUT ist das was du in 99% der Fälle verwenden willst. Der Minserver schickt über CIN jede Änderung automatisch an Node Red, über COUT kannst du jederzeit Änderungen an den MS schicken.
Einziger Nachteil: die Controls müssen im MS auf visualisieren ja eingestellt sein, sonst sind sie nicht verfügbar in Node Red.
Die Webservices brauchst du nur für Spezialfälle und dann musst du auch alles selber programmieren.
Eine technische Erklärung hat nufke schon geliefert.
-
The "control in" and "control out" nodes in nodered make use of the Loxone Miniserver websocket interface, and thus offers direct access to the controls and their state. It is a bi-directional communication so the client (e.g. nodered) can talk to the miniserver (control out), but the miniserver can also talk to the client (control in).
Webservices are using a state-less communication approach (REST API using GET, PUT, POST messages) which is in a single direction only: client (node-red) to the miniserver. Such webservice is much more primitive. And not offer full access to the control state. And changes of the control states are not communicated to the client(s).
Therefore I would recommend to use the websocket interface (control in/out).
- Likes 2
-
Moin.
Kann mir jemand eigentlich mal die Vor und Nachteile nennen, die man hat wenn man Control-IN / Control-OUT oder eben den Webservice nutzt ?
Einen Kommentar schreiben:
-
Es gibt ein Problem mit Ihrem json und ich kann ihn nicht importieren, um ihn zu überprüfen. Versuchen Sie, den json erneut anzuhängen, und verwenden Sie das Symbol # in der Menüleiste.Code:Code-Einfügung
Einen Kommentar schreiben:
-
Ich bin gerade am Handy, kann also deinem Flow nicht ansehen.
Mit AC meinst du den Climate Controller?
Die Doku zur Structure file sagt:
Änderung des Modus:
autoMode/{mode}
Für {mode} 0, 1, oder 2 einsetzen.
0 ist Auto, 1 ist heizen, 2 ist kühlen.
Hilft das?
-
Kann mir einer mal ein Beispiel machen, was ich an "Control-Out" übergeben muss, damit ich in Loxone meinen AC-Control Baustein den Modus ändere... ?
Die Json sieht so aus:
{"name":"AC_Kueche","type":"AcControl","uuidAction ":"1b97031a-0359-5926-ffffed57184a04d2","room":"15ea0aa5-0127-3bc5-ffffed57184a04d2","cat":"15ea0aa4-0246-3a56-ffffed57184a04d2","defaultRating":5,"isFavorite":f alse,"isSecured":false,"restrictions":0,"details": {"jLockable":true,"modes":[{"id":1,"used":true},{"id":2,"used":true},{"id":3, "used":true},{"id":4,"used":true},{"id":5,"used":t rue}],"airflow":[{"id":1,"used":true},{"id":7,"used":true},{"id":8, "used":true}],"fanspeed":[{"id":1,"used":true},{"id":2,"used":true},{"id":3, "used":true},{"id":4,"used":true},{"id":5,"used":t rue},{"id":6,"used":true}],"connectedInputs":15},"states":{"jLocked":"9b9703 1a-0359-5914-02ffdb1f70119c21","status":"1b97031a-0359-591f-0dffdb1f70119c21","mode":"1b97031a-0359-5920-0effdb1f70119c21","fan":"1b97031a-0359-5921-0fffdb1f70119c21","ventMode":"1b97031a-0359-5922-10ffdb1f70119c21","targetTemperature":"1b97031a-0359-5923-11ffdb1f70119c21","temperature":"1b97031a-0359-5924-12ffdb1f70119c21","pauseTime":"1b97031a-0359-591e-0cffdb1f70119c21","operatingModes":"1b97031a-0359-590c-ffffdb1f70119c21","fanspeeds":"1b97031a-0359-590e-ffffdb1f70119c21","airflows":"1b97031a-0359-590d-ffffdb1f70119c21","override":"1b97031a-0359-590f-ffffdb1f70119c21","pauseUntil":"1b97031a-0359-5910-ffffdb1f70119c21","pauseReason":"1b97031a-0359-5911-ffffdb1f70119c21"}},"U:1b878c6f-0224-4c2b-ffffed57184a04d2":{"name":"Schalter","type":"Switc h","uuidAction":"1b878c6f-0224-4c2b-ffffed57184a04d2","room":"15ea0aa5-0122-3bad-ffffed57184a04d2","cat":"15ea0aa4-026a-3af8-ffffed57184a04d2","defaultRating":0,"isFavorite":f alse,"isSecured":false,"defaultIcon":null,"restric tions":0,"details":{"jLockable":true},"states":{"j Locked":"9b878c6f-0224-4c23-01ff40c320ca379e","active":"1b878c6f-0224-4c27-05ff40c320ca379e","lockedOn":"1b878c6f-0224-4c21-ffff40c320ca379e"}},"U:1b7687bb-00fd-045b-ffff1654db754957":{"name":"Schalter","type":"Switc h","uuidAction":"1b7687bb-00fd-045b-ffff1654db754957","room":"15ea0aa5-0122-3bad-ffffed57184a04d2","cat":"15ea0aa4-026a-3af8-ffffed57184a04d2","defaultRating":0,"isFavorite":f alse,"isSecured":false,"defaultIcon":null,"restric tions":0,"details":{"jLockable":true},"states":{"j Locked":"9b7687bb-00fd-045e-ffff1654db754957","active":"1b7687bb-00fc-044a-ffff1654db754957","lockedOn":"1b7687bb-00fd-04fe-ffff1654db754957"}},"U:1b7687bb-00fd-0467-ffff1654db754957":
Einen Kommentar schreiben:
-
Guten Tag, wie kann ich den Knoten nodo-contrib-loxone verwenden, um mit dem Audioserver zu kommunizieren/interagieren?
Einen Kommentar schreiben:
-
You may retrieve your structure file via http://username : password@miniserver-ip/dataLoxAPP3.json (without the spaces at the colon!).
There is some documentation available from Loxone regarding the structure file: https://www.loxone.com/dede/wp-content/uploads/sites/2/2022/06/1300_Structure-File.pdf
- Likes 1
Einen Kommentar schreiben:
-
Sorry . I want to use the JSON to simulate , however I dont know what is the structure for the JSON that simulate exactly the stream in or control in node to know the state of a light bulb and the brightness. can anyone help me with the JSON?.
Einen Kommentar schreiben:
-
Simplemente puede guardar el objeto JavaScript en un archivo y usarlo para simular la entrada. Todos los nodos devuelven un objeto (msg.payload). De lo contrario, escriba en inglés, estoy seguro de que más personas pueden hacerlo aquí que en español :-)
Einen Kommentar schreiben:
-
Hola, estoy trabajando en un proyecto para usar asistentes de voz, sin embargo no tengo el Miniserver disponible para probar o ver el comportamiento de los nodos, quería saber si hay una manera de simular el stream en y stream de todos los nodos, o si alguien sabe cuáles son los parámetros de entrada y salida de cada uno de estos nodos, para encender y apagar una bombilla y regular su brillo.
Einen Kommentar schreiben:
Einen Kommentar schreiben: