-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
double notifications #208
Comments
Can you please post the payload of those notifications? |
edit: note: |
This was for the turnOn() command btw.. |
Hmmm.. aside from all that noise I should probably strip from the event object, they are completely identical. I need to look into this. Could you provide a minimal repro where this happens? |
Thanks. I am integrating the node-trafri-client into a Node Red custom node, so I don't have a plain vanilla example I'm afraid. btw, are you ok with me deleting ( or editing) my post with the objects? :) |
Ok. I'll try to reproduce myself. |
Not sure if it has anything to do with this but when setting the colorTemp of a lamp, I often receive multiple events with the only difference being in color values. The first event has the color set to "0" and the next has it set to, for instance, "f1e0b5". Sometimes I receive a multitude of this sequence, resulting in for instance 6 or 8 messages. I also see a small fluctuation in colorX and colorY values after changing the colorTemp but this might be expected, not sure. |
Thanks for testing. I keep a connection open which works fine. There is a connection loss every now and then which seems to occur more often over time. Or when the gateway is 'flooded' with requests. And I think the gateway get's flooded quite easily :) In order to minimise having to handle (more or less)double messages I've written a comparator which discards similar messages. This approach works ok for me. |
I'll try to add such functionality when I find the time. Closing in favor of #224 |
Hello,
When I do something like this:
I receive two notifications through
observeDevices()
where I would expect one. What could be causing this?The text was updated successfully, but these errors were encountered: