Closed jeroenhe closed 6 years ago
Looks useful!
It's quite specific. Don't think it's a good idea to put this in this node (Keep it simple). To re-use your example you can create a subflow (or use action node).
It's quite specific. Don't think it's a good idea to put this in this node (Keep it simple). To re-use your example you can create a subflow (or use action node).
That's an alternative pattern I hadn't thought of, thank you for pointing that out. And I agree keeping it simple is very important. However, for my workflows the "advanced" input node still seems to make sense after playing around with subflows, but YMMV of course.
I always wanted to keep the different nodes as simple as possible and refrained from adding a lot of options which can be wired in easily. Channel 1 already outputs only changes, so no need for the 'Item Changed' node.
I’m using your plugin for quite some time now and it works very well. However, since I started to migrate most of my rules from openhab rule system to NodeRED, I’ve come across a change for the input node that helped me a lot to keep my NodeRED flows clear. I have quite some situations where my original rule consist of a situation where I like to react on a change in sensor state only (“changed from OPEN to CLOSED”). With your Input node I would have to add quite some switch and change blocks to accomplish this. That’s why I’ve created a new input block that helps you omit these required blocks.
I was wondering if you, or anyone else who is using this great plugin would be interested to see this input node added to your plugin. If so, I would like to discuss in what way it would be appropriate and I can of course create a more specific PR that is better suited.
So te be clear. With your input node, if I’d like to monitor for a change, it looks like this:
with my version, it's just the single node:
and it's configuration screen currently looks like this:
Let me know.