-
Notifications
You must be signed in to change notification settings - Fork 6
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
Request: set close state on first message #12
Comments
Do you mean you want it to close after any message or only the very first one it ever receives? |
I suspect that the |
@colinl any first message it receives after starting or after re-opening with a reset command. @drmibell thank you! I haven't come across the filter node yet, I will try it and see if it helps in this particular case. The messages have the same topic (deconz_event) but their payload is different. They have payload.event.id (device id) and payload.event.event (event id) so those can be used with a switch node to filter. |
You can do what I think you want very easily just with a Change node (and the gate).
|
Absolutely right! Actually, that is the exact solution I'm using now. I think this might be a fairly common use case and the added functionality will reduce the addional change node and thus clutter. For one flow that's fine but for many switches in a typical home setup it would be a nice quality of life change. @drmibell I just tried the suggested filter node and I think you are right. This node is a better fit for my purpose, thank you for pointing it out to me, I haven't come across it during my search for a good node. With the (rbe) filter node I can replace the change and gate nodes. And more importantly, I can use the filter node much earlier in the flow by placing it in front of the initial switch that filters the messages! |
If you happen to have a function node immediately prior to the gate then, instead of the change node, you could replace the
|
I am glad you have found ways to resolve your issue. I see the reason for your suggestion and feel that I should explain why I would rather not modify the |
Hi! Really like this node, very useful for home automation stuff where you want to block repeating messages from sensors and switches.
Was wondering if it is possible to implement a new feature into this node. I'd like to have an option (check box) to set the node state to closed after receiving a first message.
In my example, I'm using a Hue Wall Switch Module that has two inputs. It gives an event on button press, quick button release, hold button (repeating every 800ms) and hold button release. I want to use the hold button event to trigger a repeating message for dimming a Hue light and use the hold button release to stop/reset the trigger. Therefore, I only need the first hold button event for my example and ideally have the gate closed automatically after receiving the first message.
Let me know what you think!
The text was updated successfully, but these errors were encountered: