Giter Club home page Giter Club logo

Comments (11)

tsightler avatar tsightler commented on August 16, 2024

I don't know what this means, can you please clarify what you are asking for?

from ring-mqtt.

tsightler avatar tsightler commented on August 16, 2024

If you are talking about 2FA, this is already supported in the code and is covered in the authentication options sections of the readme.

from ring-mqtt.

sktaylortrash avatar sktaylortrash commented on August 16, 2024

from ring-mqtt.

aidanblack avatar aidanblack commented on August 16, 2024

from ring-mqtt.

tsightler avatar tsightler commented on August 16, 2024

I've just re-cloned the repository and run through the process of enabling 2FA on an account and getting the refresh token, pasted it into the config and it works fine. If you have an invalid refresh token it prints a message that the token is not accepted.

If you are getting "Exit code: 1" this almost always implies that the refresh token was not copied and pasted correctly. Common issues are copy-paste from a terminal that includes line breaks, extra quote marks, or, if you added the refresh token to an existing config.json, forgetting to add the comma after ring_pass, etc. The refresh token must be a single line with no line breaks, enclosed in a single set of of quote marks. Please use the below as a template:

{
    "host": "localhost",
    "port": 1883,
    "ring_topic": "ring",
    "hass_topic": "hass/status",
    "mqtt_user": "",
    "mqtt_pass": "",
    "ring_user": "",
    "ring_pass": "",
    "ring_token": "<huge_long_string_in_quotes with no ling breaks>"
}

from ring-mqtt.

aidanblack avatar aidanblack commented on August 16, 2024

Apologies - it looks like the HassIO add-on hasn't been updated to pass the new parameters to your code that are required for 2FA.

from ring-mqtt.

tsightler avatar tsightler commented on August 16, 2024

Yes, that's true, although there is already a fork with a PR to include it so you can use that for now.

To be honest, this hit me at a bad time as I was gearing up to merge this repo with ring-mqtt which I've been working on during the last few weeks. It's much more modular, has support for cameras (optional for those that want it) and a few other goodies, but, most importantly, I was going to release my own HASSIO add-on so that all maintenance was in a single place, but I won't have time to get it out there for a few days.

from ring-mqtt.

aidanblack avatar aidanblack commented on August 16, 2024

from ring-mqtt.

jasonhyland avatar jasonhyland commented on August 16, 2024

Thanks for your work @tsightler! Hoping for a fix for HASSIO, but makes sense to wait for ring-mqtt!

from ring-mqtt.

jac2424 avatar jac2424 commented on August 16, 2024

Thanks for looking into it. Will wait for the new hass.io addin to fix the issue.

from ring-mqtt.

tsightler avatar tsightler commented on August 16, 2024

Since this script already has support for 2FA there's really nothing to do in this project so I'm going to close this issue.

I have published my own Hass.io addon that uses the new ring-mqtt script. I would consider it beta quality at this point, but it's mostly identical to the original addon with simple the added fields for refresh token and enable/disable for camera support. If anyone wants to test please find it here:

https://github.com/tsightler/ring-mqtt-hassio-addon

Please report any issues with the addon in that project.

from ring-mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.