-
Notifications
You must be signed in to change notification settings - Fork 36
ECONNRESET || No HomeKit Notifications on Status change #75
Comments
Is there a chance you may have mistyped your login info? |
No, this is randomly scattered in the error log file, sometimes once a day, sometimes multiple times a day ... the std output has the normal garage state change log lines in it and the Home app opens/closes the garage as expected. Don't know if this is an issue or not, just thought I'd point it out to you that my error log has these entries. As a side note, I don't receive any Home app alerts anymore though (or, again, very randomly sometimes that the garage has opened or closed), but I think it is related to iOS 13 (was working well in iOS 12). |
Is there a chance you may have enabled "DND" for the Home App? I did that once for messages on accident. In Settings > Notifications > Home it should show. It seems like since it's scattered the request just fails. Issue #51 had a similar issue, and an update fixed it. I'll keep track of this. |
Hey, nope, nothing in listed under Settings -> Notification -> Home...chalk it up to random request failures. |
I am also this exact same error message throughout my logs. Sometimes it happens multiple times in a row, other times it can be hours in between. The door still opens through HomeKit and Siri, so doesn't seem to be a major problem though. |
If notifications never show, it means something is really wrong. If it was just a request failure, then the status would also not report in HomeKit. But since the Status does poll in HomeKit (As far as I can tell), it may be a Home App issue. Maybe re-adding the accessories may help? |
@kbardai In the Home App, top Left Corner (Home Image), tap "Home Settings", select your home, then go to "Notifications", then "Doors and Locks". See if they were disabled. |
The "Doors and Locks" notification is enabled. I've tried turning it off and on again but the notifications are very sporadic, sometimes I get notifications/sometimes none. I'll try your suggestion of removing homebridge and re-adding to see if that helps...dunno if I need to go all nuclear and clear accessories/cache from homebridge as well, maybe as last resort. |
Hey @kbardai did anything work so far? |
Hey, Removed and re-added homebridge from home app, no success...still sporadic notifications for garage. Imma chalk it up to iOS13 issues? Edit: to clarify, garage is the only notification I have setup in Home app. Take Care |
I am seeing the same behavior, same iOS revision, random in occurrence. Just updated to nom version 6.13.2 and will monitor. |
Just installed the Schlage Sense door (HomKit) and get alerts consistently and almost instantly (whether manually unlocking or through homekit or schlage app)...dunno why garage alerts are a hit/miss :/ Edit: to add, sometimes I get notifications when I open the Home App, notifications that should have gotten hour+ ago/etc. Edit2: |
I’m also having similar results re: status change notifications. Would estimate I’m only receiving a notification about 10% of the time the door is opened or closed whether I’m on WiFi or cellular. |
Here are some debug log info when I opened/closed the garage...received no notifications on any device. The IPs listed below are homepods and/or iphones/macbook. Also, let me know if this is getting off topic from the original post I made.
|
Personally I'm a few revisions behind of this plugin on my main setup since it works for me (pretty sure it goes as far as the last V4 Api version I updated) so I can try this version with the V5 Api and see if there's more to it. |
These are all the same issues I’ve been seeing since I installed this plugin a few years back. It may be worse in iOS 13 but always been an issue. I first posted about it here: #40 Been trying to get to the bottom of it for a while. |
Same issues, same iOS. Usually early in the morning will get the error in home bridge. On Homekit, if I press all the items that are "no response", they eventually reconnect. Of course, restarting home bridge clears everything up. |
I have the same log errors, however I disabled the notifications (they're reliable from the MyQ app). I ended up here to figure out what I needed to do to quiet the errors. |
Seeing as this is becoming more widespread and splitting into more issues here's what I propose: For the lack of notifications can you please confirm the following:
I would like more logs please. If possible in your current environment, run home bridge with the debug flag.
I would like a reply of the most recent debug output.
Also the current home bridge version. I would like more logs and more environment info from other people to see if I can isolate a common variable or condition. Also please let me know what your environments are, like the platform and hardware you are running this on. I want to see if y'all can rollback your installation version as a temporary fix since an older version works for me. (Away from home atm, but will report back my version). I appreciate y'all for bringing this to my attention and I am working as hard as I can to fix this for y'all. Enjoy y'alls new year! |
It may take awhile to get the error, so it's not like I can stop homebridge, and manually run that on the command line and see the error. I've been wanting to regularly run homebridge with the -D flag for awhile for other reasons, but if you run homebridge using pm2, like me, I don't know how to supply that flag and have the process managed (i.e. restart if it quits, start up on boot, etc). I would need that if I'm going to be running it this way long enough to get that error in this debug mode. (I'd paste current non -D logs, but I'm VNC'd in ATM and the clipboards aren't linked.)
Can you be more specific?
rPi 3
Happy New Year to you as well. |
I have the same ECONNRESET issue and also experience sporadic HomeKit Notifications when opening and closing the garage door. IOS Home App Notifications: Hardware Environment:
Versions:
Log File: Originally I first tried out the homebridge-myq2 plugin to connect to my Chamberlain Smart Garage Door Hub. Myq2 functions to open/close the door in the Home App, but notifications didn't work reliably. This is how I came across this plugin -I wanted to see if the homebridge-chamberlain plugin would give me consistent notifications. Scanning through the attached log file, it appears that myq2 also suffers from ECONNRESET issues even though it looks like they are using v4api. One last thing to note. I also have an old iPhone 5c running iOS 10. The garage door open/close notifications are consistent. Strange eh?! |
Two things I can think of at the moment. If possible, clear Persist and cachedAccessories, unpair bridge from HomeKit, make a new HomeKit Home, see if notifications show there.
Be sure to change the homebridge Username, port, and name, (set-up pin code is fine as default) for the new Config file. Reasoning:
|
Thanks for the logs @dqtech I noticed that you have homebridge-tplink-smarthome, I have this plugin too and you have to declare something for that plugin or this method to add a new homebridge instance won't work. I have a config just for this I will send in 4 or so hours. I am doing more research on ECONNRESET, but since it's not that major as compared to Garage notification states, the priority is the notifications. |
Hey @hepcat72, thanks for the reply.
I also run PM2 on my environment too, I managed to get pm2 to run homebridge using the -U flag (specified folder), using a shell script to start PM2 in that certain instance, I'll send the file (it's 2 lines long), and how to have PM2 use the |
I also have the ECONNRESET issues sporadically through the logs.
I am running Homebridge in a Docker container on a RPi4 with 4GB of RAM. Happy to help debug this if I can. |
So I was working on some tweaks for this plugin to make getting the version info and such easier, anyways I am using V1.0.6 of the plugin. I will upgrade to V1.0.8 and get back with y'all tonight and see if notifications work. Also thank you everyone for replying and providing logs and such I appreciate it a lot. I am hoping to have this issue resolved within a week, it also seems to be non-severe (the ECONNRESET) since it's just seems like an API call back failure and it resend a request. But the notifications thing is a big deal 'cuz that's a big integration part in HomeKit. |
Has anyone tried making a new Home and trying notifications? |
What I am finding when trying to understand the inner workings of the Homebridge plugins is to look at the HomeKit Characteristic Types to see how the HomeKit accessory characteristic is defined. For a door / garage door there is both HMCharacteristicTypeCurrentDoorState as well as HMCharacteristicTypeTargetDoorState. So, both are legitimate characteristics. |
Correct, both are legitimate characteristics. One seems to notify and update switch state, but the other seems to request and trigger a change if 'desired state' does not match the 'current state'. EDIT: And I am just thinking that if we send both, it may cause homekit to not send out a notification, as the requested state matches the change state. |
I don’t know how correlated this is, but these are my findings. I recently got some eero’s for HomeKit secure router, and after re-adding my devices to the MyQ app, I get consistent notifications now. I am considering learning TypeScript and rewriting this plugin, but this is not confirmed yet. Also I looked at those node implementations and they seem viable. Just waiting for school to ease up a little bit so I can tinker with them and see if I can implement a better protocol. |
And @iRayanKhan Do take a look at the iobroker.myq link I posted above. They have implemented every single MyQ state in it. The most comprehensive MyQ implementation I have seen till date, but it is for IOBroker and not homebridge. |
I am considering re-writing this plugin from scratch to be based off that broker, but unsure at the moment. School ends this month so I should get some time to do more work on this plugin, as school is the priority at the moment. I hope everyone is staying safe. |
I sent some emails out to some people and right after I sent the email I found some answers. This plugin exposes switches for ioBrokers. That means you will have to setup the broker then the plugin which isn't ideal. So I may have to combine several repos to achieve a full integration. This may or may not work, but hey it's worth a shot. This will/should add obstruction detection, proper states, notification fixes, etc. If anyone knows a better way to link ioBrokers into home bridge please link it. |
Hi @iRayanKhan I was thinking that we could look at its source code and see how it queries the myq servers, handles the timers, handles the states etc. Not suggesting we should use it, just learn from it and implement it here. The logic that it has is quite different from our implementation. It uses a different URL as well, myqexternal.myqdevice.com. |
Ah, just saw your reply. Am I understanding correctly that this is purely on the MyQ server side and not an indication of any issue on my LAN? |
I am seeing the same behavior with sporadic notifications accompianied by
Additionally, a lot of the time when I ask Siri to open/close a door, she'll hang, then say "I tried however the Garage Garage Door didn't respond," but then it will actually work a few seconds later. Just thought I'd add my experience if it helps at all. |
I am also seeing the same thing since upgrading to the newest version of Homebridge. Did you just upgrade as well? Thanks! |
Yes, it worked quite well for a while, but recently started doing that. I actually just noticed a new new version of Homebridge is out, so I'm going to upgrade and see if that helps. |
This is not a homebridge problem. ECONNRESET is a TCP reset generated by Server being contacted, which in this case is MyQ server. Yes, we need to gracefully handle this error, and retry when this error is generated, but updating homebridge is not going to fix it. |
It is worse now.
Many in a row this morning. I am happy to provide any additional information you need if I left something important out or run any tests you like to help. |
I've seen the same. |
Hi, just to add to this thread a thought. I too am receiving the ECONNRESET errors frequently and am not receiving alerts. But I also regularly get errors using the actual Merlin/Chamberlin app "Garage Door is not responding, Please try again." but most of the time the app still works. Do you think this is the same issue and it's actually something their end? Rasberyy Pi Zero W - Raspbian GNU/Linux Buster (10) iOS 13.4.1 |
I have been contacted beyond Github by several people that they had their garages not respond in either HomeKit, the app, or both. It eventually fixed itself after a while, but it could be on their end. Can someone try PR #100 to see if that resolves their issue? I will be able to push that PR to npm later if you need to install it that way. |
Hey Ryan, happy to help test, but I'm a bit of a noob. I'm running Homebridge in docker, what's the best way to pull this test version of the plugin? |
Looks like the official MyQ homebridge product to add native HomeKit support also has delayed notifications. Reddit Discussion |
Till @iRayanKhan is working on getting this app recoded, as he suggested, we should give hime some space. In the meantime we can use MyQ2 plugin, I have been using it for over a month now and notifications are pretty much immediate. |
yes, the official MyQ homebridge sucks. I gave mine away a few weeks ago. |
I haven’t looked into the source code of that plugin as deeply, I can see what it is doing differently with notifications and try it here. |
Just published with tag The version is 1.6.2-beta.1 Please report any feedback from this beta release and reply here. |
I had the same problem on my raspbian system. homebridge-chamberlain v1.6.1 |
Working on updating the debugger. Will implement this in the next update, before V2.0/2.1. I may have a debug beta within 3 or so days |
Thank you very much and looking forward to the new release! |
On
errors just like the others. I tried
I didn't update the plugin configuration (user/pass etc) during the update and when reviewing it, I see the right values. I also see What's the deal with 2.0.x series? Perhaps update the root readme.md here in this repo for 1.x and 2.x changes/awareness? |
Closing: This plugin is now being deprecated. Please use this plugin. |
Checking the logs, I see the following, is this a concern and what could be the cause?
0|homebrid | [11/17/2019, 00:54:28] [Garage Door] FetchError: request to https://api.myqdevice.com/api/v5/accounts/<Account_ID>/devices/<Device_ID> failed, reason: read ECONNRESET
0|homebrid | at ClientRequest. (/usr/lib/node_modules/homebridge-chamberlain/node_modules/node-fetch/index.js:133:11)
0|homebrid | at ClientRequest.emit (events.js:210:5)
0|homebrid | at TLSSocket.socketErrorListener (_http_client.js:406:9)
0|homebrid | at TLSSocket.emit (events.js:210:5)
0|homebrid | at emitErrorNT (internal/streams/destroy.js:92:8)
0|homebrid | at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
0|homebrid | at processTicksAndRejections (internal/process/task_queues.js:80:21) {
0|homebrid | name: 'FetchError',
0|homebrid | message: 'request to https://api.myqdevice.com/api/v5/accounts/<Account_ID>/devices/<Device_ID> failed, reason: read ECONNRESET',
0|homebrid | type: 'system',
0|homebrid | errno: 'ECONNRESET',
0|homebrid | code: 'ECONNRESET'
0|homebrid | }
Info
iOS Version: 13.2.2
Plugin Version: latest
HomeBridge Version: latest
Node/Npm Version: 12.13 / 6.12
Also, this is probably related to iOS 13 (HomeKit just acting weird), but, I don't get consistent notifications on my phone when garage opens/closes...I sometimes randomly get an Open or Close status, but, very very sporadic.
Let me know.
The text was updated successfully, but these errors were encountered: