-
Notifications
You must be signed in to change notification settings - Fork 2
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
(still) stops receiving of events #15
Comments
Hey, do you have any motion Sensor in your setup? The contrib runs for me issue free. Obviously it could be a problem when your stream is too silent for a long time. If you have none, that could cause your problem and consider to buy just one to keep the eventstream alive. Edit: that’s an idea, I didn’t proof it Nice that you use my flow :) |
Sorry for the late reply. Yes, I have a motion sensor. However, the connection is lost after a while. I am currently using the sse-client as a receiver for the HUE events. In my tests with short timeouts, the connection was reliably reconnected. I am now testing with a timeout value of 60 minutes and see if that fits. Otherwise I have to fine-tune the values a bit. @andesse, thanks for your flow. That was a really good starting point for my project. I will continue to pursue it. |
Hey, nice that it works out like that. But really strange. I never had a timeout with Yadomi node. |
I don't think the network is the cause. I also run some other services (e.g. InfluxDB) in a container. If there were a problem with the network, I would also be missing some sensor data on a regular basis. But no matter if the sse-client works, I'm satisfied ;) |
@BoBeRzE I don’t mean the network directly. I have no experience with docker, but could it be possible that the docker host has a timeout/reconnect setting for the NR instance? |
Hi, I have the same issue with the motion sensor and the smart button. They get disconnected after a few hours. Node red also runs in a docker container. Thanks |
@loupiz for me yadomi contrib works completely fine |
I had to decrease the timeout but it seems to be working fine so far. |
Hello @BoBeRzE, I'm not sure what can cause this issue. I've been using the node for quite some month now and didn't had any disconnect. My Hue setup consist of 3 switchs, 3 motions sensor and a numerous amount of lights. I'm also running Node-RED (v3.0.0) inside a docker container. This won't be easy to debug. Does redeploying the Node-RED flow fix (temporarily) the issue or you should restart the whole Node-RED instance ? The node should emit an error when an error occurs. You can try to catch it with the catch node plugged to a debug node, see: https://nodered.org/docs/user-guide/handling-errors#catchable-errors. That could give us more info |
I just discovered I wasn't the only one this is happening to. This has been going on for a few weeks now and some days it'll happen multiple times a day. I'm running the latest version of everything on a dedicated RPi 400. As far as I can tell it's only my motion sensors that become non responsive. This is totally random, but when it happens, it affects all of them. A restart of node-red solves it 100% of the time, so now I now have a verbal command via Alexa to restart node-red for me. Even though I don't have the motion sensors configured in the Hue iOS app, I can check on them there and they are indicating motion when there is motion. Using debug nodes I've at least figured out that the motion events aren't being reported by the events node. So, I'll have to do some more checking to see if it's all events or just motion when it happens. |
@VisualReversal sometimes I need to refresh the browser to see debug messages. It also could help to generate a new api key. Had the issue that the old wasn’t working properly after an Bridge firmware update. Array splitter: Greetings |
Interesting. Yeah, I've been searching payload.data.0.motion.motion and using a true/false switch to direct them. I suppose msg.payload.data.0.id isn't going to always work with that being the case. Good to know. |
The splitter comes behind the hue event node from yadomi, forgot to mention. Let me know if that was the problem |
@andesse - After extensive testing I can confidently say that your array splitter has totally fixed the issue. A million thanks!! |
@VisualReversal Welcome my friend! |
Hi, Redeploy does the trick, but it's not a solution. Thanks for your assistance. |
@jcislinsky get a new api token, that should help if you got recently a bridge update. |
Hi, i have since 2 weeks the same issue, i have nothing changed but event listener is showing listening but there is no events receiving. after redeployment is working again for some hours. i have as well collect a new api key, but is not fixing the issue. i'm using as well array splitter. Thanks |
use the SSE Event stream from my repository, this works flawless. Description is in my Repository as well Greetings |
Hi, i have try to import the flow but i get the question some of the nodes are already in the workspace. than i have just press import copy. need i something else to configure? currently after import to old flows are not working - sorry for the question. |
@svenerbe |
@andesse , i have done this, after import and configure of the flow - no action like lamp on/off is anymore working - after deletion of the flow - all is working fine again:-) any tips? |
I don't understand the Question/ Problem. Erkläre es auf deutsch wenn Du möchtest;) |
@andesse - step by step danach kommt nur im debug - "JSON-Parse-Fehler" |
@andesse , maybe found the issue - there was some philipshue-events nodes with different philipshue-events-config (different api key) on different flows. after fixing its working. i will see if this will help to fix the problem with stop receiving of events. many thanks for your help. |
@svenerbe great that it works! If you want to keep the eventflow 24/7/365 alive, buy one motion sensor and it will never run dry on data and disconnects :) |
Hi,
I'm still having disconnects after a few hours detailed in this link:
#7
i use v1.4.2 of your package and my node red version is v3.0.2 in a docker container https://hub.docker.com/r/nodered/node-red
i use the nodes from https://github.com/andesse/hue-clip-api.node-red-flows in combination with node-red-contrib-knx-ultimate
Thank you for your help
The text was updated successfully, but these errors were encountered: