Giter Club home page Giter Club logo

Comments (4)

codmpm avatar codmpm commented on August 17, 2024

Hey Merijn,

thank you. Please see the third example in the README.md: https://github.com/codmpm/node-red-contrib-loxone

As the UpDownDigital (etc.) virtual input has no state where the control-out node can put it's data, I've switched it as an example via the webservice-node.

from node-red-contrib-loxone.

mvandenabeele avatar mvandenabeele commented on August 17, 2024

Hi

I'm sorry I've missed your example. I'm sure I'll get it to work with this extra info. However, from an UX point of view, this is a lot more difficult, as now I have to know how the Loxone API works to determine the "path" to the virtual input. If the "control in" had an option to output its messages ("output/publish events", maybe on a second output?), this would be a lot easier.

Merijn

from node-red-contrib-loxone.

codmpm avatar codmpm commented on August 17, 2024

Hey,

there's nothing I can do about it as node-red-contrib-loxone has to work with what the websocket offers. There simply is nothing that control-out could work with in loxones websocket.

The "messages" you are talking about, is what you provide in msg.payload. Again, see the README.md:

You will get the data from Loxone's websocket as is. There is and will be no abstraction layer!
So please know how to handle the data according to the structure file or the webservice documenation.

node-red-contrib-loxone "just" subsribes to events and sends messages... in theory it's nothing more.
:-)

Best,
Patrik

from node-red-contrib-loxone.

mvandenabeele avatar mvandenabeele commented on August 17, 2024

Don't know if I should start a new conversation or continue here. I've picked up were I left off last month. Now I want to get the current state of a switch. If I use a stream-all-node I get this message when the switch state changes:
image

Is there a way I can request that state when needed? It would be nice if there was a current-state-node like there is in Home Assistant. If not, I guess I can cache the state when a change happens, but that might get out of sync on a restart.

From the LoxOne API documentation, I got links like http://miniserver/jdev/sps/io/{uuid}/state to get the current state, but this doesn't seem to work with any uuid from the screenshot.

from node-red-contrib-loxone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.