Comments (3)
@crxporter, indeed looks like we are storing topic and sending it later.
- Can you replicate?
- Is that a bug?
onInput
node.topic_in = msg.topic ? msg.topic : ''
onValueChange
const topic = node.config.topic ? node.config.topic : node.topic_in
from node-red-contrib-homekit-bridged.
Topic is always an interesting topic to discuss... see what I did there?
Anyway, what would the expected behavior be? I would expect:
For a pass-through message:
-if incoming message has no topic, the outgoing message would be (first choice) the config topic (if it exists), or (second choice) no topic
-if incoming message has a topic, the outgoing message would be the config topic (if it exists, overwrite the incoming topic) or the same as incoming message (if no config topic)
For messages originating in the node:
-messages should be the config topic if it exists
-if no config topic, I would expect outgoing messages to match whatever the most recent incoming topic was
This is the "normal" way for topic to work in nodered. I've seen other nodes use this convention. Based on the code, and bug report, I think this is what the node is doing?
I use topic a lot in my flows. I have the topic for everything homekit set in the node and haven't ever had issues.
In response to the bug report-
The config of the node is not being set by the incoming messages. Restarting nodered should wipe any previous "remembered" topic, unlike a config which will be remembered. It's just using the latest incoming topic if there's not any topic set by the config.
And now - does anyone have a reason it should work differently from how it is?
from node-red-contrib-homekit-bridged.
Closing as no update from author. Let's keep the topic feature as is for now, until any strong arguments appear.
from node-red-contrib-homekit-bridged.
Related Issues (20)
- Simple status update for devices HOT 4
- [Feature]: new buttons in the tv remote HOT 3
- [Help needed]: live camera streaming doesn't work on apple tv 4k 1gen HOT 8
- [Help needed]: HOT 4
- [Bug]: HeaterCooler set to "auto" does not display UI in Home app HOT 4
- [Help needed]: Camera with non-host network mode in Docker deployment HOT 3
- [Help needed]: Unable to view Accessory on iPhone - Pi with Portainer HOT 5
- [Help needed]: Accessory not found HOT 2
- [Feature]: Status Node - Maintain topic assigned to linked Service Node HOT 1
- [Help needed]: Getting data from Apple Home HOT 4
- items not shown anymore with version 1.6.0 HOT 2
- Bug: Cannot find module 'ip' HOT 8
- [Help needed]: Trying to setup a Garage Door Opener HOT 4
- 冷暖可调光灯泡 人体存在感应器 HOT 6
- 希望能通过mqtt创建Service 和 设备配件 HOT 2
- [Help needed]: Failed to install but seems to of installed ok? critical security issues HOT 2
- [Help needed]: Failed to install - engine Unsupported engine HOT 5
- [Help needed]: HOT 5
- [Feature]: add new node versions to the required versions HOT 1
- [Help needed]: Cannot install NRCHKB 1.6.1 on dietpi 9.5.1 with NR 3.1.10, node v22.3.0, npm 10.8.1 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-homekit-bridged.