Comments (4)
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.
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.
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.
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:
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)
- Reconnecting loxone / nodered cause automatic payload message HOT 2
- invalid property - miniserver (on all nodes after update) HOT 1
- WebService not sending request anymore HOT 1
- Missing "do not use" category and room HOT 7
- Crash in plugin: Undefined variable HOT 3
- help wanted - Using ChangeTo in node red with control out service [help wanted] HOT 5
- Facing TypeError (Cannot read property 'uri' of undefined) after upgrade HOT 6
- Use name of Control if Name field is empty
- Node online sends a lot of messages on disconnect
- Reconnect to Miniserver fails sometimes after new Config File is stored to Miniserver HOT 5
- "connection closed" - Miniserver connection error: Socket Error: read ECONNRESET (1006) HOT 14
- Cant install on Cerbo GX HOT 1
- Bug (?) when sending multiple messages over "webservice"-node HOT 2
- Idea for Node-State HOT 2
- Control In Node - No Data in Drop Down Box for Control and State HOT 16
- AudioServer / MusicServer support
- Stream with short Event Times (example Temreature) HOT 1
- Controls not loaded from Miniserver HOT 7
- Changing multiple lights in a Lighting Controller ends in only changing the first one
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-loxone.