-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Pass through meta
from msg
#511
Comments
msg
meta
from msg
+1 for this request. Thanks for a great addition to NR. Its pretty much a NR convention that msg objects are passed-through with the node only making the specified changes based on its function. |
Noted :) |
Hi! This should be marked as must have, not enhancement, as it is nearly impossible to stop any loop without the pass-through. The plugin is highly customizable and works very well, apart from this trivial to fix issue. Thank you! |
Hello, will look into this. @crxporter any thoughts? |
Apologies, just read the section: https://nrchkb.github.io/wiki/nodes/output-messages/#differentiate-between-passthrough-or-from-homekit-messages on how to stop loops. |
This one is tough to implement. @lougreenwood
|
I see that this is deprecated, however at the moment you can use the Input: msg: {
payload: {
Context: 'Some value here'
}
} node-red-contrib-homekit-bridged/src/lib/utils/ServiceUtils.ts Lines 250 to 254 in 6f71cac
Output: msg: {
hap: {
context: 'Some value here'
}
} node-red-contrib-homekit-bridged/src/lib/utils/ServiceUtils.ts Lines 45 to 47 in 6f71cac
|
In fact, |
Your Current NRCHKB Plugin Version
1.5.0
Operating System
No response
What is your idea?
When a NK service node is triggered, it should be possible to pass additional metadata through the service node and receive that metadata on the output.
For example, if I pass the following data to a
switch
, I would expect the following output:Service node input
Service node output
I already have message passthrough enabled, but it seems that a
service
node builds a completely new message and disregards almost all values passed to it's input.Any more details?
If this is specific to some hardware or specific software version, please explain here.
Additional comments?
Additional comments here, if any.
Any code or functions to add?
No response
The text was updated successfully, but these errors were encountered: