-
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
Add Support for Dream Machine Pro #8
Comments
i have the same issue. it used to work with my UDM Pro but i'm now getting the same error. here's the log from HA
|
@anthonysnyder maybe the issue was with Home-Assistant, i'm running beta 2024.12.0b5 and the integration now works. |
@Juror2372 Interesting, I will need to give it another go. I wonder if it is due to the version of HA that I can run via Docker on the Synology. |
It could be the HA version and yes, definitely need a local super admin account to make things work smoothly. I've not been able to replicate, so if the issue persists, keep the info coming. |
@anthonysnyder I would also suggest trying my Bruno http project to just test the login and the api requests outside of HA. It's easy to set up and run locally. If that works, then you know the account is good and working. Then its likely HA itself, or an issue that I can help sort out with the integration. |
Oh awesome, I will test this out as soon as I am back home. |
For my UCG it was failing on version 12.1 but working fine on 12.2!! |
@sirkirby I feel really dumb but I cannot figure out Bruno to save my life. That being said, I have updated to Network 9.0. I reinstalled the latest build, and attempted to log in and I am getting this now. I deleted and recreated the local admin user that I am attempting to use and have verified I can log in with it via the WebUI |
Bruno is a bit complex, so no worries. This does indicate that the account you're using doesn't have the necessary admin permissions. The account needs to be a local account with full/admin access to the network application. You can also test this outside of the extension by logging in to your UDM with this same account. Let me know how it goes. |
Hmm, that all looks great. The only other thing I can think of is cached credentials in Home Assistant or something similar. Have you tried completely removing the extension folder, restarting, and then adding it again? When configuring the extension, it will also test the login before enabling it. |
Let me try that now. |
Ahh, getting somewhere now...that indicates that rate limiting has kicked in. I ran into this as well when developing it. You'll need to wait a while, an hour I believe, then try to setup and login again. This could mean there is still a login issue, but let's see what happens once the rate-limiting cools off. |
Debugging ftw. Be back in an hour. I assume no need to remove the config file and restart HA. |
I would remove it as an integration, so it stops making requests, but not uninstall the custom integration folder |
followed immediately by 429 errors, so I removed it again |
@sirkirby Would it be helpful to enable the Debug logging and try configuring it again? I assume any logs it collect would be in the Docker logs for my HomeAssistant itself yes? |
|
@anthonysnyder, what version of Home Assistant are you running? ... |
I also have this same problem, also as chance has it - running a Dream Machine Pro (SE), with latest home assistant and using Synology DSM RS814+. In my scenario, I'm getting 403, and subsequent Any advise here? |
Make sure you are using a local account without an email, as it will not be a UI and account and have MFA |
@anthonysnyder working on this. I see a few things I could clean up and then try, I'll have a pull request up soon for testing |
Absolutely no rush. You are the one who is helping me out by even providing this code, so I appreciate it so much. |
- slowed down auth requests to better respect rate limiting - added error 429, limiting, handling - more specific error handling to help with debugging - added request timeout - better session and cookie management #8
When ready, I have some changes up in the login-session-management branch. Clone it down locally, or go to the Code dropdown and select Download zip. I detail the changes in pull request #11. If it still doesn't work, it should provide better logs. |
Excellent, testing now. |
thank you, this now works perfectly for me. Appreciate all the work you've done and provide on this @sirkirby |
|
I did something dumb....LOL I was wondering if I blew away my entire HomeAssistant config and tried it on a new install if that would make a difference...but then I got to wondering if I could get HomeAssistant OS running via VMM. So I am gonna try that and see if it makes a difference. :yolo: |
I hope you dindn't blow away all of your config! I would recommend running on a VM; tends to be more stable. However, I will say that if running on Synology, you may have strange network issues; at least, that was the case for me. I'm running on Proxmox using this helper script on a Mini PC. I'm going to stand up a Docker test env, maybe this weekend, just for testing as well. |
I DID blow away the config. However, I wasn't really using it for much. HomeBridge is where most of my actual stuff lives as we have a full Apple House (former employee here) so anything I create with HomeAssistant will eventually get shoved over there anyways. |
Same, not the employee part :), but all Apple home with hombridge doing the heavy lifting for many homekit integrations. HomeAssisant is so much more robust for automation though, so I have moved many things over and it's also easy to expose a bridge from HA to Apple Home too. Matter makes it even easier, when it works. Let me know how the recovery goes and if the new setup clears things up. |
Unfortunately, the PR merge backlog for HACS takes a very long time. It will be in the directory eventually, but not sure when. in the meantime, manual install is the only way. |
Is your feature request related to a problem? Please describe.
When attempting to configure this plugin for use with my UDM Pro, I immediately get 401 Unauthorized, and eventually 429 Too Many Requests.
Describe the solution you'd like
Build out support for logging into a Dream Machine Pro
Describe alternatives you've considered
Additional context
I have a brand new LOCAL only SuperAdmin account that I am trying with this.
The text was updated successfully, but these errors were encountered: