Skip to content
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

Getting error "Unable to find Bond for IP Address" with proper IP address and Bond Token configured #229

Open
Nevs123 opened this issue Dec 21, 2022 · 18 comments
Labels
bug Something isn't working

Comments

@Nevs123
Copy link

Nevs123 commented Dec 21, 2022

Describe the bug
I am receiving a "Unable to find Bond for IP Address" error in my logs for Homebridge using a newly purchased BD-1000. I've tried everything I can think of (outlined below) and cannot get the bond to be picked up by Homebridge.

  • Bond was successfully set up through the app, and I joined a ceiling fan to the bond

  • The ceiling fan appears to work fine within the bond app

  • I am running the following versions on Homebridge:
    -- homebridge-config-ui-x: v4.50.2
    -- Node.js version: v18.12.1

  • IP address config in the bond app is set to static

  • I ran the ping test on my terminal as recommended in the guide: ping ZZFG32391.local, this command returned the proper IP address that the app is showing (192.168.2.61)

  • When configuring the IP address and Bond Token values in the plugin, I did this on my phone and copy/pasted the values into the proper fields to ensure no mistyping was done

  • I've rebooted the home bridge server AND service multiple times since installing and configuring the plugin

  • My home network configuration is very simple. Theres no segregated VLANs

Information (please complete the following information):

  • Plugin version: homebridge-bond v3.2.10
  • Bond firmware version: v3.8.4
  • How homebridge is run: Homebridge UI

Logs
Log output is very limited. I tried running this in debug mode but it did not provide ANY further detail:

[21/12/2022, 14:36:38] [Bond] Unable to find Bond for IP Address: 192.168.2.61. Skipping this Bond.
[21/12/2022, 14:36:38] [Bond] No valid Bonds available.

****** Bond Info *******
bondId: ZZFG32391
FW: v3.8.4
API: v2 (unsure how to check this)
Make: undefined
Model: BD-1000


@Nevs123 Nevs123 added the bug Something isn't working label Dec 21, 2022
@rajiviyengar
Copy link

I am facing the same error with my bond "Unable to find bond for IP address." I also copy and pasted the token to avoid mistyping. The bond bridge is set up using a static IP on my router. Pinging the bond is successful and bond is functioning normally via the app. Downgrading to version 3.2.9 did not solve the issue.

@Nevs123
Copy link
Author

Nevs123 commented Dec 25, 2022

I am facing the same error with my bond "Unable to find bond for IP address." I also copy and pasted the token to avoid mistyping. The bond bridge is set up using a static IP on my router. Pinging the bond is successful and bond is functioning normally via the app. Downgrading to version 3.2.9 did not solve the issue.

Glad to see I’m not the only one. I can even ping the IP address from the homebridge terminal and get a response back, but the plug-in for some reason is not able to recognize that the static IP is a Bond bridge.

Any guidance here or tests I should try? I’d like the keep the bond bridge but may send it back if I can’t solve this.

@rajiviyengar
Copy link

The bond bridge and homebridge plugin were working perfect for the past year. The error only started after my raspberry pi got corrupted, and I reinstalled homebridge and Raspbian.

@Nevs123
Copy link
Author

Nevs123 commented Dec 27, 2022

I dug into the API documentation and ran some of the commands from the terminal within homebridge itself. Maybe some of this is useful for troubleshooting? I've redacted a few details for privacy.

It seems I can perform all of the basic API calls directly from homebridge, so it's odd that the bond plugin can't seem to recognize the device I'm pinging.

Unlike @rajiviyengar, I've just purchased the bond device and have never actually got this work yet.

Token Command
curl -i http://[BOND IP ADDRESS]/v2/token

HTTP/1.1 200 OK
BOND-Flags: 4
Content-Length: 214
Content-Type: application/json; charset=utf-8

{"locked":0,"pin_attempts_left":10,"token":"**[token provided here]**","nonce":"f50a964b8f2f74be","v1_nonce":"0000000000000000","account_code":"**[Account Code Here]**","v1_email":"","disable":false,"_":"bb32ff10","__":"bb32ff10"}

Version Command
curl -i http://[BOND IP ADDRESS]/v2/sys/version

HTTP/1.1 200 OK
BOND-Flags: 4
Content-Length: 275
Content-Type: application/json; charset=utf-8

{"target":"zermatt","fw_ver":"v3.8.4","fw_date":"Thu Nov 10 15:16:25 UTC 2022","uptime_s":998,"boot_patch":"not first boot","make":"Olibra","model":"BD-1000","branding_profile":"OLIBRA_BD1000","bondid":"**[bond id here]**","upgrade_http":true,"api":2,"_":"8a969a0a","__":"8a969a0a"}

List Bond Devices Command
I dont currently have any underlying devices configured

curl -H "BOND-Token: [BOND TOKEN HERE]" -i http://[BOND IP ADDRESS]/v2/devices

HTTP/1.1 200 OK
BOND-Flags: 4
Content-Length: 34
Content-Type: application/json; charset=utf-8

{"_":"00000000","__":"00000000"}

I am unsure if this is related, but I am also unable to configure Siri Shortcuts for some reason. If I configure the bond bridge with a ceiling fan, and configure a Siri shortcut for 1 of the commands, then attempt to run the shortcut from the shortcuts app, I get an error. This seems to happen for every control I've tried on my ceiling fan (3-speed, 1 light)

The operation couldn't be complete. (iOS_BondSD-K.BondResponseError error 1.)

@patrickoleary1977
Copy link

Same issue here as well.

Multiple times per day, I need to reboot home bridge because any bond items in HomeKit stop working. When I check the log, it always shows the below. When I reboot, it fixes it 1/2 the time. Sometimes a 2nd reboot is necessary. When I check the bond app, the bond is available and I can control the devices from within Bond. I have the IP address of the device fixed for the bond. Thoughts?

Unable to find Bond for IP Address: 192.168.1.50. Skipping this Bond.
[1/19/2023, 3:00:24 AM] [homebridge-bond] No valid Bonds available.

@patrickoleary1977
Copy link

I think the issue with this is the Bond itself. Anytime the Home app doesn't work, I check the Bond app and it says it is Syncing....

If it gets out of Syncing status, and if I reboot Homebridge, it all works again. It just wont stay in Connected status.

@rajohn96
Copy link

rajohn96 commented Feb 21, 2023

anyone made any progress on this? I see that the axios version included here is quite a bit behind the current release. As the error stems there maybe updating that component would solve it?

@cptoaks
Copy link

cptoaks commented Apr 19, 2023

I have the same issue:
[4/19/2023, 4:15:31 PM] [Bond] Unable to find Bond for IP Address: x.x.x.x. Skipping this Bond.
[4/19/2023, 4:15:31 PM] [Bond] No valid Bonds available.
Also bond bridge shows 'status: syncing...' continuously in the bond app.

@88gts
Copy link

88gts commented Jun 1, 2023

noticing this too, device is online and connected via app, pulling the IP and Token from the app and Homebridge reports the following each time, despite the host pinging the IP.

[6/1/2023, 11:24:40 AM] [Bond] Unable to find Bond for IP Address: 10.0.1.79. Skipping this Bond.
[6/1/2023, 11:24:40 AM] [Bond] No valid Bonds available.

@patrickoleary1977
Copy link

patrickoleary1977 commented Jun 1, 2023 via email

@droopdog7
Copy link

Well, I am coming here to report the same issue. Seems that there hasn't been a solution (sigh) but reviving this thread in case someone has it figured out.

@88gts
Copy link

88gts commented Jul 28, 2023

it is working for me, i noticed that the device needs to be online and powered up before Homebridge initializes it.

@droopdog7
Copy link

it is working for me, i noticed that the device needs to be online and powered up before Homebridge initializes it.

Can you be a little more specific. Also, I am not any kind of expert so go slow.

@88gts
Copy link

88gts commented Jul 28, 2023

your bond unit must have power and be online through the app when Homebridge starts up.

@droopdog7
Copy link

droopdog7 commented Jul 30, 2023

your bond unit must have power and be online through the app when Homebridge starts up.

Thanks. I've had the bond powered and online each time and still no joy. Sigh. Anyway, let me paste my config file in case someone sees an error. FYI, I have redacted a few characters here and there.

{
"bonds": [
{
"ip_address": "192.1XX.4.XX8",
"token": "7XXXX947aXXXX2cd"
}
],
"include_dimmer": true,
"include_toggle_state": true,
"fan_speed_values": true,
"_bridge": {
"username": "0E:38:X4:48:X2:X1",
"port": 48379
},
"platform": "Bond"
}

@dxdc
Copy link
Contributor

dxdc commented Nov 8, 2023

I think I may have fixed the problem, which stems from:

  • retry logic not functioning
  • timeout kicking in

#252

Curious to know if this is working for anyone else, it seems to have fixed my system.

aarons22 added a commit that referenced this issue Nov 28, 2023
fix retry logic "Unable to find Bond for IP Address" #229
@aarons22
Copy link
Owner

I published the fix from @dxdc into a beta release - https://github.com/aarons22/homebridge-bond/releases/tag/3.2.11-beta.1

I can't verify it myself, so if there is anyone here who can, that would be great :)

@y0m1g
Copy link

y0m1g commented Feb 6, 2024

I faced this issue today (on 3.2.10); upgraded to 3.2.11-beta.2 and it's working fine again now! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants