Comments (9)
Hi Reto.
"Initialread" is triggered whenever node-red restarts. The case of a restarting node-red is very limited and, normally, this doesn't happen so often.
When it happens, i've users saying the exact contrary as you states. They need a visualization touchscreen updated as soon as possibile, to avoid pushing a button while the status of the button is unknown.
I can for sure add a delay (currently, it's fixed at 5 seconds after knx-ultimate initialisation), but thinking to add a new timer and queue array may be a bit overwhelming.
Let me know if a simple "customizable initialread delay" can be useful for you.
:-)
from node-red-contrib-knx-ultimate.
Hi Massimo
An adjustable delay would help a little bit, but it must also be ensured that this timer is cleared when deploying or disconnecting.
The initialread is not only used when restarting Node-RED, but also for deploy and reconnect.
In my opinion, a second queue would not be much more complex? By default the delays would be the same as before, but for larger projects you could set priorities accordingly.
from node-red-contrib-knx-ultimate.
Hi Reto
Yes, the redeploy triggers the initialread as well, but if you select "deploy only changed nodes" it should not be triggered.
I'll think about double queue. Maybe i can move a "read" request from the "initialread" queue, to the main telegram queue only if the main telegram queue is empty.
About clearing timers, i need to clear all timers everytime, most importantly, if i've a timer that pushes telegrams from "initialread" queue, into the main queue from time to time.
Let me do a gurumeditation about that.
from node-red-contrib-knx-ultimate.
Thanks for thinking about it ;-)
I would have a two more feature requests, are you open for it?
from node-red-contrib-knx-ultimate.
Yes, but please create a new issue for each.
from node-red-contrib-knx-ultimate.
Ok, solved in a very elegant way.
Out soon in v 1.1.40
If you wanna try, create a function node "Massive read request" and paste this code
for (let index = 0; index < 1000; index++) {
node.send({readstatus:true});
}
Then start the function and in the meantime, turn on/off any other knx-ultimate node.
The "write" and "response" does have the higher priority in the massive flooding "read" telegrams.
from node-red-contrib-knx-ultimate.
Thank you for optimizing this!
Could you create node setting parameters for the read delay time and the delay between telegerams can be read/write?
from node-red-contrib-knx-ultimate.
Hi Reto,
not now sorry, we've fighting with Coronavirus here.
We're very in trouble..
Hope in the next weeks...
from node-red-contrib-knx-ultimate.
In the meantime, you can disable the automatic read and use an inject node with delay you want, that sends a read request to knx-ultimate.
Please see here https://github.com/Supergiovane/node-red-contrib-knx-ultimate/wiki/-Sample---Read-value-from-Device
from node-red-contrib-knx-ultimate.
Related Issues (20)
- Can not bind to interface inside Docker container HOT 3
- Subsequent dimming following turning on. HOT 1
- HUe not working HOT 7
- Restart helped... !!!! Thanks insert UserID for the bridge instead of linking more and more Usernames to the Bridge
- Hue Temperature not set in night mode if brightness is 0% (off) HOT 18
- After the configuration is complete, the IP router connection is successful, but true or false is sent, debug can receive the data, but the module does not operate HOT 1
- 我想读取组地址状态
- About Havc Modes HOT 2
- KNX TS support HOT 2
- Send write TypeError: value.toFixed is not a function HOT 4
- 4-Byte Values from KNX are sent as 0 HOT 8
- Hue Button/Dimmer-Switch with integrated "inverter" option HOT 12
- Cannot install node red palette knx ultimate HOT 2
- KNX Device node TimeofDay datatype HOT 5
- Application Log shows received data but KNX Device does nothing HOT 2
- Problem after Node-Red restart or deploy HOT 2
- KNX Scene n. 64 is missing in Hue Scene Node HOT 2
- KNX Gateway connection issue HOT 1
- HUE Tunable White Status is not working HOT 20
- Listening to the KNX bus? HOT 5
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-knx-ultimate.