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

Legacy Nexa Bridge Connectivity Issues #32

Closed
passatraggaren opened this issue Jan 9, 2024 · 10 comments · Fixed by #35
Closed

Legacy Nexa Bridge Connectivity Issues #32

passatraggaren opened this issue Jan 9, 2024 · 10 comments · Fixed by #35
Labels
1.6.x Bridge 1 (Legacy) bug Something isn't working

Comments

@passatraggaren
Copy link

I have some issues adding my legacy bridge+.
I can add the device and the name of the device shows up but no entites. And the integration fails.

From the debug logging:
2024-01-09 11:02:56.043 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.0.18/v1/nodes/1013: 200
2024-01-09 11:02:56.146 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.0.18/v1/nodes/1017: 200
2024-01-09 11:03:18.652 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 25.010 seconds (success: False)

Would be great to get some assistance :)

/Christoffer

@andersevenrud

This comment was marked as outdated.

@andersevenrud andersevenrud added the bug Something isn't working label Jan 9, 2024
@andersevenrud
Copy link
Owner

andersevenrud commented Jan 9, 2024

It just dawned on me that this is probably a timeout. It says "25 seconds" in your log, which is the same as the timeout value set in this integration.

Can you try editing this line inside your HA installation to something like 60?

And restart HA afterwards

It would also be nice to see the timing in the Finished fetching Nexa Bridge X Coordinator data messages afterwards to get a sense of how long it takes on your setup, because I think maybe this timeout should be increased.

@passatraggaren
Copy link
Author

I modified the timeout to 60 and got the same error, increased it to 300 and still got the same error.

24-01-15 15:58:48.808 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] GET http://192.168.0.18/v1/nodes/1048: 200
2024-01-15 16:03:47.364 DEBUG (MainThread) [custom_components.nexa_bridge_x.nexa] Finished fetching Nexa Bridge X Coordinator data in 300.011 seconds (success: False)

@andersevenrud
Copy link
Owner

That's a shame. In #15 I ran to into something similar for another user, which is why I already increased this timeout value once.

Sadly, I don't own a legacy bridge, so I don't really know where to go from here. Do you know how to work with tools like Postman to perform API requests ?

@passatraggaren
Copy link
Author

Never used Postman but i've installed it and managed to make a couple of api calls to my Nexa.
Do you want me to try something with Postman?

@andersevenrud
Copy link
Owner

What you could try is to do a GET request to http://192.168.0.18/v1/nodes and then the same for http://192.168.0.18/v1/nodes/<id> for the ones that show up and use the associated ids.

Do you want me to try something with Postman?

If you've already got something then just stick with that. The most interesting part here would be how long it takes for the requests of all of this. Maybe there is a buggy device here or something.

@andersevenrud
Copy link
Owner

Did you get a chance to check this out ?

@passatraggaren
Copy link
Author

No not yet, I started with the integration of my solarpanels and heating system instead. I might give the old Nexa one more try later on, I'll let you know! Thanks!

@sonite
Copy link
Contributor

sonite commented Mar 29, 2024

GET via postman: http://192.168.1.2/v1/nodes/1082
{
"code": 401,
"description": "The request requires user authentication",
"homeRef": "/",
"reasonPhrase": "Unauthorized",
"uri": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2"
}

@andersevenrud
Copy link
Owner

@sonite API calls requires Digest Authentication with the username nexa and password nexa.

@andersevenrud andersevenrud added the 1.6.x Bridge 1 (Legacy) label Mar 31, 2024
@andersevenrud andersevenrud changed the title Legacy Nexa Bridge+ Legacy Nexa Bridge Connectivity Issues Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.6.x Bridge 1 (Legacy) bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants