-
Notifications
You must be signed in to change notification settings - Fork 7
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
Devices added then immediately removed #2
Comments
Hey @rodalpho, It looks like there's a problem with the device support for the devices you're using. The easiest way to help me resolve this would be if you could do the following: I'm particularly interested in any error messages (but seeing the instructions in between would be helpful), as well as the device codes. |
I'd be happy to, if you can tell me what to run. They're all this bulb: |
Hey @rodalpho, Thanks - can't figure out what model it is from there, unfortunately. Running the command-line interface should help, though. Please do the following steps outside the current homebridge setup:
This should get you to the command-line interface, where you can sign in with your username/password, which should list your devices. From there, follow the instructions and check if you can select, then turn on/off, or change the colour temperature (if that is supported) one of the bulbs. You will most likely get an error very early on, when that happens, post the whole output here. (Feel free to redact IP address & code, but please not the model.) |
Sorry, those commands didn't work. I cloned the git repo with "git clone https://github.com/sebmos/node-eufy-api.git", but then after the install npm run cli complained about missing 'node lib/cli.js'. Then I tried to install with npm install node-eufy-api --save, it installed, but then complained about missing package.json. Running it in the directory I had cloned earlier gave the same missing cli.js error. If you can provide an exact sequence of commands to run that will work, I'm happy to give it another shot. I am a competent sysadmin but don't know node at all. |
Apologies, I forgot to add to run ‘npm run build’ after running ‘npm install’ Can you do that and then try running the cli again? |
Yep, all set. All four lights are model T1011. |
That’s useful, thanks. Did you try and turn one of the devices on/off? Could you post the bash output from running that, including any error messages you receive? Also, there are a few Troubleshooting steps listed here: |
When I select one of the lights I just get an error:
What troubleshooting are you talking about? Unplugging/replugging the bulbs, pinging them? I can ping them from that same server, it isn't a network issue. |
Ok. I take it restarting (unplugging/replugging) the light bulb didn’t solve the problem, either? |
Right, did not fix it. |
Thanks for confirming that, and for your patience so far! I have an idea of what the problem is, but will have to spend some time trying to reproduce it. I'll let you know when I know more! |
No problem, appreciate it! |
Hey @rodalpho, I published a new version of the package that adds a verbose logging option, which should provide me with a lot more information on what the error is. Can you pull the latest changes, re-build the library and then run the command-line using the following commands: git pull
npm run build
npm run cli:verbose You will notice that this will write a lot of information to the console. Could you copy all of it, and post it here? Alternatively, feel free to send me an email to [email protected] |
Is the verbose mode working? It didn't write that much debug info.
|
This is exactly the info I need, thanks. It confirms what I assumed, which is that it appears to be the same as this issue: google/python-lakeside#11 Another question: Can you verify what firmware version you're on? (You can do that in the EufyHome app.) If a firmware update is available for your light bulbs, could you install that and try again? (At least on one of the devices.) |
Yes, I'm running version 2.6. No updates are available. |
OK. So, this appears to be related to the issue linked above, google/python-lakeside#11. It happens, because the protobuf file taken from the python-lakeside library specifies the "sequence number" to be of type I'm not sure if this To test this version, please run the following set of commands: git checkout --track origin/sequence-number-bug
npm install
npm run build:clean
npm run build
npm run cli:verbose In the future, you can switch between the master and the bug-branch using |
Still get an error, output is below.
|
OK, thanks for that update. Unfortunately, with that I'm out of ideas. The problem seems to be that at some point, the sequence number, which always needs to be incremented by 1, gets higher than a 32-bit integer, but the light bulb socket connection doesn't allow 64-bit integer numbers, either. (The socket closing immediately after sending a message is sent is a symptom of the message being invalid.) This appears to be a problem with the light bulb communications protocol, although I'm open to any other ideas, suggestions & pull requests. |
Ahh. Well, if I can assist further in any way, please let me know! |
Coming from issue #5 Sorry about the duplicate, probably should have read through these. Is there any way we can reset the sequence number to stay below the 32 bit limitation? A factory reset of the plug or a new Eufy account perhaps? |
Hey @gonenutsbrb, Unfortunately, there's no solution quite yet. Only one of my devices shows this problem, and I want to keep that one "broken", so I can try to build a fix. I don't think a new Eufy account would work, but a factory reset could, if that's possible on those devices. If you could try that, that could be a useful workaround for now! |
A quick update on the situation: The app suffers from the same problem (i.e. the socket closes under the same circumstances), but has a built-in fallback solution by going through Eufy's server-side API, through which it can still communicate with the device directly. (This is how Eufy allows you to toggle devices when you're away from home.) Not sure if Eufy plans to fix that problem. The only alternative solution would be to understand the Eufy API, which would probably not be trivial without access to the different devices. |
getting the same error, no fix yet?
|
Running into this issue myself as well. Any stable fix on the horizon? |
For what it's worth, I have two T1202 and both were having this same problem. I created a new Eufy account and adopted them again, and plugged those credentials into my Homebridge config, and one worked while the other did not. I have verbose cli logs if they would be helpful. |
@sebmos I just found a workaround for this issue. Do a device reset, but just hold down the button for a full 30 seconds before re-adopting it into your Eufy account. In my previous comment a few minutes ago I mentioned that I got one of my devices working but not the other. I was thinking on your comment that the problem was related to the sequence number getting too high, and how that could be reset. I realized that with one of the plugs I held the power button for longer, and that might have done a deeper/factory reset rather than a simple account and SSID disassociation. I'll bet that until this issue is fully solved, the deep reset might be necessary periodically. |
Holy cow I had forgotten about those. I ended up swapping them out later because of this issue. Good to know there’s at least a workaround if I see them again. Thanks for coming back and updating the thread! Stay safe!
…________________________________
From: nathanrawlings <[email protected]>
Sent: Tuesday, May 12, 2020 6:22:53 PM
To: sebmos/node-eufy-api <[email protected]>
Cc: gonenutsbrb <[email protected]>; Mention <[email protected]>
Subject: Re: [sebmos/node-eufy-api] Devices added then immediately removed (#2)
@sebmos<https://github.com/sebmos> I just found a workaround for this issue. Do a device reset, but just hold down the button for a full 30 seconds before re-adopting it into your Eufy account.
In my previous comment a few minutes ago I mentioned that I got one of my devices working but not the other. I was thinking on your comment that the problem was related to the sequence number getting too high, and how that could be reset. I realized that with one of the plugs I held the power button for longer, and that might have done a deeper/factory reset rather than a simple account and SSID disassociation.
I'll bet that until this issue is fully solved, the deep reset might be necessary periodically.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIK7LVJAXFNE4KBLGSEDTWDRRHY63ANCNFSM4GU5J5OQ>.
|
This fixed the same problem for me. T1011. Unfortunately I'm using homebridge and don't want to futz with my homebridge server npm modules to get one bulb working... Any ideas? |
@tkuebler This didn't actually end up fixing the problem for me - I'm glad it did for you! |
i have eufy bulb t1012 and when i config it its was a problem Error connecting to accessory: Error: Socket closed without sending response so how to fix it @sebmos |
@ahmedbataweel - The only solution I'm aware of at this point is the one mentioned by @tkuebler above, although it doesn't solve the problem for my bulb. If that doesn't work, you're unfortunately out of luck for now - unless you find a solution somewhere else. |
ok so what i do with the bulb???? |
You can still control it with the Eufy app - just not with Homebridge. |
I was experiencing this as well with the cli (as well as the Homebridge application). It turns out that the light getState packet construction has a typo, which caused the message to be rejected and the socket to be closed. Instead of After making that change, things seemed to work as expected with the cli. I can make a pull request if you'd like, but it is a pretty small fix. On a similar note, I was seeing unexpected behavior with the sequence number returned in |
@BTPankow For the sequence change: This is odd - the sequence shouldn't be a string, I've always seen it as a number, but I'll add string parsing regardless - can't hurt. |
I've applied @BTPankow's change suggestions and released them as version 0.3.3 (both node-eufy-api & homebridge-eufy). I can't test either of them, so would appreciate feedback for any owners of Eufy light bulbs. |
thanks for that but can u contact me in discord RIK#6464
…On Tue, Dec 15, 2020 at 12:32 AM Sebastian ***@***.***> wrote:
I've applied @BTPankow <https://github.com/BTPankow>'s change suggestions
and released them as version 0.3.3 (both node-eufy-api & homebridge-eufy).
I can't test either of them, so would appreciate feedback for any owners of
Eufy light bulbs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARCDE53FKEGZI635OY2GFFDSUZ75VANCNFSM4GU5J5OQ>
.
|
Good morning,
Can you expand to me how I can integrate “Eufy video doorbell 2K” to my homebridge? I had it working, but for some reason it’s not working anymore.
And I have the bridge “Homebridge Eufy” and “Homebridge security” installed.
Thx.
Met vriendelijke groet,
Don van Houts
Op 14 dec. 2020 om 23:56 heeft ahmedbataweel <[email protected]> het volgende geschreven:
thanks for that but can u contact me in discord RIK#6464
On Tue, Dec 15, 2020 at 12:32 AM Sebastian ***@***.***> wrote:
I've applied @BTPankow <https://github.com/BTPankow>'s change suggestions
and released them as version 0.3.3 (both node-eufy-api & homebridge-eufy).
I can't test either of them, so would appreciate feedback for any owners of
Eufy light bulbs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARCDE53FKEGZI635OY2GFFDSUZ75VANCNFSM4GU5J5OQ>
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQQ3P75OPFXO4QDBP4OOULLSU2J2FANCNFSM4GU5J5OQ>.
|
@Don-van-Houts - This would be something you'd have to check with the "homebridge security" documentation, I assume. homebridge-eufy doesn't support video doorbell products. |
Thank you for your work on this. The latest updates seems to be getting us closer with the bulbs in homebridge. I have three T1013 bulbs and they are no longer being removed and are shown in homekit but constantly get a "No Response". Below are the errors on the log: 12/15/2020, 7:39:33 AM [eufy] Error loading power state on device: Jarrods Bulb - Error: Socket closed without sending response |
@jlclarkrx Can you start the You'll have to check out this repo, then run |
@sebmos Thanks for making the fix. I will say that I mostly tested with the cli, which worked for me. I might have seen the same behavior as @jlclarkrx with homebridge-eufy, but I didn't have much time to test it. I only tested with T1012 bulbs, so that could also be a difference. I don't have access to any bulbs right now, but I might be able to play around with it later this month to see what what's going on. |
Based on a quick look, it might be that subsequent calls to |
26.07.2021 Hi All, I am a newcomer to Homebridge, Hoobs etc. topic. However, with: The Hoobs Version 4.0.92 the problem with the Eufy Smart Bulb still persists. The device works when managing it from Hoobs GUI. But, once I open Apple Home I receive: "26/07/2021, 19:08:13HomeeufyError loading power state on device: Dining Room Light - Error: Socket closed without sending response I could sound like a deletant, however, the Google Home Integration works perfectly fine and without a single bug since 2 years when I have applied Google Home App Integration to Eufy (which's supported) |
Confirming doing a device hard reset and re-add of device to your eufy account still a viable (though painful) workaround to recover the Homebridge operation of eufy's wall switch. |
The plugin installed fine, but from the log, it appears to find my devices and then immediately remove them. Any idea what's going on? Nothing weird in my config file either, just added the plugin with my EufyLife login.
I replaced the IDs in the log with <> just in case that's a security issue.
The text was updated successfully, but these errors were encountered: