Comments (14)
The error seems to indicate that you entered an invalid username and password (access denied from the authentication attempt). Are you sure you used a valid account? You can always just restart the addon and try again.
from ring-mqtt.
I am able to login via the website with the same account / creds.
Copy paste.
Oddly enough I am successful with the addon by using my personal, instead of the shared account I created for Home Assistant. Same password even.
from ring-mqtt.
Weird right?
from ring-mqtt.
Also where is your Buy me a coffee link? I use this addon every single day and cannot thank you enough.
from ring-mqtt.
Even more weird as there were absolutely zero chanhes to the code that gets the token so if it worked before and not now I have no idea why. Also the error is super clear, access denied is pretty basic auth failure, so I can't see how it could be anything else. Really weird.
Also, I use a shared account with no issues. Perhaps you could try an alternative method to get a token, the web page is just a poorlt implement hack so maybe it's something there, although I don't know what.
from ring-mqtt.
from ring-mqtt.
from ring-mqtt.
I thought about the password encoding as well, because I'm definitely doing nothing special there, but the fact that it works with another account using the same password made me think that wasn't it. I also have some pretty weird characters in my service account password with no issues.
The web based tool is just a very quickly implemented wrapper around the existing functions in ring-client-api and I did update to the latest API version in the most recent push, perhaps something changed there, although it seems to work for me. You can always generate the token from the cli of any machine with node installed by doing something like:
$ npx -p ring-client-api ring-auth-cli
Or, from HASS.io you can get CLI access and run ring-auth-cli from within the addon container.
from ring-mqtt.
I've tested everything I can think of with this and all auth works just fine got me. I get a successful token each and every time, no issues. I tried with existing shared accounts, main accounts, new accounts, I tried huge, complex passwords. I'm not sure what else could be the issue here.
from ring-mqtt.
I have pushed version 3.2.1 which includes some enhacements to the Web UI including checking for valid user/password and token entry. Also, it's no longer required to manually copy and paste the token as the token is automatically saved into the new ring-state.json file.
I've tested authentication with this quite completely, using 3 different accounts with all types of generated passwords. The only authentication failures I could reproduce were when I had requested too many 2FA tokens too quickly and Ring blocked the account for about 12 hours (interestingly, the error message indicated it would only be blocked for 10 minutes).
If you are still having issues please let me know and we can troubleshoot. Otherwise I will close this issue in a few days.
from ring-mqtt.
I finally got to circle back to this.
Right now I am signed in as my personal account and it works.
I'm trying to change the login, but it keeps grabbing my current refresh token for my personal account.
I tried removing the key from config.
How can I get the add-on to host the web UI again?
from ring-mqtt.
I uninstalled then reinstalled, added my second account and auth works now.
Closing
from ring-mqtt.
Is this you? https://www.paypal.com/paypalme/tsightler/
from ring-mqtt.
Thanks for the feedback and glad to know you got it working. In a future version of the add-on the web UI will simply run all the time so that you can generate a new token with a new account even if it is already running. It will also automatically detect MQTT connection info using the HA API. For now, if the current token is functional the only way to use a new account is to do what you did, uninstall/reinstall, unless you manually connect to the container and delete the existing token. Hopefully when I release 4.0 in a few weeks the entire auth will be handled via the UI and require no config at all (other than token generation) to get it working, at least, that's the plan.
No that isn't me! :)
While I appreciate the gesture I don't really need any donations for this project. I'm fortunate to have a great job that pays the bills quite nicely and I started this project mainly as an excuse to learn Javascript (something I'm still not good at but at least I've learned enough to be dangerous) and it was useful for my own home automation.
If you have money to donate I'd suggest picking a charity you can be passionate about or perhaps even select some person you know that is in need (I know plenty in that state during these times) and send them the money instead. Most likely that's what I would do with it anyway.
from ring-mqtt.
Related Issues (20)
- Bug: Doorbell found, but no device added HOT 3
- MyQ Garage door not status not showing in HA via this addin HOT 1
- Support: Do I need Mosquitto broker installed? HOT 3
- Stopped working after adding new Eufy Cams with go2rtc. Will not stream. HOT 2
- Disarm fire alarm event does not change alarm panel to disarmed status HOT 29
- Support: My devices are not showing up HA HOT 3
- ERROR - Uncaught Exception ring-mqtt Cannot read properties of undefined (reading 'toString') HOT 6
- Choppy audio in Homekit HOT 1
- How do I get mosquitto self-signed data into the docker container? HOT 2
- Support: keeps rebooting HOT 3
- Support: Getting debug logging even though debug logging not enabled HOT 4
- Attempting to reconnect to MQTT Broker Loop HOT 1
- Ring Motion Sensors have gone Offline HOT 1
- Bug: V 5.6.3 No config items for ring_topic and hass_topic any more (opposite to documentation). Manual JSON edit for theses entries without effect. HOT 1
- Bug: <Panic alarm failure> HOT 4
- ***IMPORTANT*** Do not upgrade the Home Assistant go2rtc addon to v1.9.0!!! HOT 3
- REPOSITORY LINK NOT WORKING HOT 2
- Bug: Error is logged in Home Assistant "Could not fetch changelog" HOT 5
- HA 2024.6 - Can't change Ring mode - requires code HOT 22
- Websocket ticket requests fail with 500 server error HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ring-mqtt.