Comments (12)
I'm a really heavy user of node-red-contrib-hal. Sometimes I feel addicted...
from node-red-contrib-hal.
I thought about that but in the end decided to not save state in Node-RED, opting to keep state exclusively in MQTT. I didn't want to end up in a scenario where I keep an extra copy of state information in Node-RED and take action based on possible stale data. I might be reconsidering this in the future, but for the moment it isn't possible.
from node-red-contrib-hal.
When I keep state in MQTT then still there is a short time with - No Value state on deploy.
How to avoid this?
from node-red-contrib-hal.
Make sure that you configure your MQTT devices with retain=true so that the latest value is retained by MQTT. If you have that configured you should get the value pretty much instantly at startup.
from node-red-contrib-hal.
Yes, I keep MQTT devices with retain=true, but there is still a short no value period time about 0.5 to 1 sec long.
I use node-red-contrib-hal for lights logic and lights sometimes turning on/off, need to figure out the trigger delay on deploy.
Thanks.
from node-red-contrib-hal.
Oh okay, I see your point. The short delay never bothered me so I haven't considered it a problem.
from node-red-contrib-hal.
That's nice to hear, I thought I was the only user! :) I haven't been able to work on it much for the last year or so, so I'm just glad it holds together!
from node-red-contrib-hal.
Have you ever thought about grouping node-red-contrib-hal: item? For sake of easy finding/sorting?
from node-red-contrib-hal.
I have. I'm also considering if the item object itself should be a lot more advanced, if it would be useful to be able to define multiple characteristics on an item so that the item node itself knows that MQTT topic */relay/0=on means that the first relay is true and */relay/1=off means that the second relay on the same item is false.
I have the beginnings of a new hal2, but I haven't been able to work on it much lately. Maybe later.
from node-red-contrib-hal.
Great news.
from node-red-contrib-hal.
Hey, @alexsahka this might be of interest to you:
https://flows.nodered.org/node/node-red-contrib-hal2
...and yes, it does have persistent storage. ;)
It's a bit different conceptually than the old one so no guarantees that it fits into your work flow or that you like it, but I think it works a lot better myself. You can use them both in parallel, no collisions. The documentation is still a bit lacking unfortunately, but I published a few examples.
from node-red-contrib-hal.
Thank you! I will try it.
from node-red-contrib-hal.
Related Issues (20)
- Bug: I don't think I really fixed #7, quite the opposite really...
- Bug: Is borde vara Becomes i Event node
- Todo: Gate rules for msg.payload
- Todo: Item - Send init msg on startup
- Todo: Remove "complete msg object", change to evaluateNodeProperty
- Todo: Item - Recognize ON/OFF
- Bug: "matches regex" value field should be type string only
- Todo: "convert to number" option in Item node
- ToDo: Item: change topic filter, remove id
- ToDo: Check for name duplicates when creating new Item
- ToDo: Add "only on change" to output on Item nodes
- Node name conflict with node-red-contrib-simple-gate HOT 1
- Bug: global- and flow-comparisons doesn't work (all nodes)
- Bug: msg property output from Value node doesn't work
- Additional functionality: Item ruleset
- Bug: Event node output using flow, global or env doesn't work
- Bug: Bundle output using global, flow or env doesn't work
- Add $ENV to Bundle node output
- Selecting Send bootstrap msg crushing Node Red. HOT 8
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-hal.