Ring integration setup fails

Just got this integration setup today and now getting large volume of traffic on the network.

HA is generating between 2-4 TCP sessions per second to the Ring API host servers (104.17.128.1). This seems somewhat excessive!
Screenshot_20191229-232852|298x500
These are not DNS queries as others have seen, rather requests on port 443 to ring.api.com

The integration itself is working as expected, just hammering the network.

Is this normal ?

PS. Changing the scan_interval to 60 seconds made no difference to the number of sessions.

I upgraded to 0.103 yesterday and, now like Rob, I am seeing high amounts of DNS requests to oauth.ring.com in pihole.

What gives?

However, it’s also, definitely, making DNS queries to oauth.ring.com. On the order of 50/second. The underlying library author, https://github.com/tchellomello/python-ring-doorbell, is aware of it and I submitted an Issue that is being investigated.

I’m still on 103.4
I’m not seeing any excessive traffic.
Are you all on 103.5 ?

Yep, I’m on 0.103.5 and have excessive traffic…

1 Like

Same this is just today https://i.imgur.com/MPkUuAh.png

Just a quick update…
The author of the python-ring-doorbell library has identified the issue with the excessive DNS queries. It has to do with the Token Refresh timer not being set properly. He is working on correcting the problem and has a temporary working solution. It should be available “shortly”.

8 Likes

Very good news :slight_smile:

Looks like v.0.2.9 of the lib had been published here https://github.com/tchellomello/python-ring-doorbell/releases

Any guide as to how to build this into an existing HA server, or is it just just best to wait for an official release ? (I use Hassio on a Pi…)

PS. Tried turning off protected mode on the SSH server plugin, full shutdown and restart of HA, connected via SSH and I still cannot see any of the files to update referenced earlier in this thread, docker and pip commands are not found, plus /usr/local/lib is empty and /usr/src does not exist…( is this because I’m SSH’d into the docker container running the HA instance and not the actual host machine ?)

Just go to the componants folder and find ring. I bumped the manifest version to .9 and it fixed my issue.

Like I said by post , in don’t have access to the components folder from Hassio which is why I was asking for a ‘guide’ on how to do this

Hi, I have hassio on rpi and I have it fixed without accessing the hidden folders. Just follow the procedure mentioned some posts above (im on my phone, so here it is from memory) -
Have ha latest update
Disable 2fa on your ring account
Delete the pickle file from config folder
Restart ha - see that now ring works
Re-enable 2fa on your ring account
Restart again ha - see that now ring works

Cheers.

if you scroll up
its there a numer of times
dependant on your system

Hi,

I appreciate the replies, but I’m asking for help because I’ve tried all the things mentioned in this thread, and as I have said a number of times, I don’t have access to any of the files and folders described.

phil@Desktop-PC:~$ ssh root@hassio

  _    _                 _       
 | |  | |               (_)      
 | |__| | __ _ ___ ___   _  ___  
 |  __  |/ _` / __/ __| | |/ _ \ 
 | |  | | (_| \__ \__ \_| | (_) |
 |_|  |_|\__,_|___/___(_)_|\___/ 
                                 


Our Cli:
$ hassio help

~ $ cd /
~ $ ls /usr/src
ls: /usr/src: No such file or directory
~ $ ls /usr/local/lib
~ $ ls /srv
~ $ ls /home
/ $ find . -name ring
/ $ find . -name ring*
/ $ find . -name requirments_all.txt
/ $ find . -name manifest.json
./config/custom_components/hacs/manifest.json
./config/custom_components/badnest/manifest.json
~ $ pip
-bash: pip: command not found
~ $ docker
-bash: docker: command not found
~ $ 

Again, I can’t find any of the ‘stuff’ referenced in this thread. Thoughts ?

Well my post about this is 9 and 10days ago

From where you are you need to go into the docker container. To get to the files.

Type
docker exec -it homeassistant /bin/bash
That will get you in
You land at the config folder
the python library are located in
/usr/local/lib/python3.7/site-packages
The homeassistant components are located in
/usr/src/homeassistant/homeassistant/components

George, if you read my last post you will see that when I SSH into my HASSIO instance (with protected mode turned OFF) and type docker… i get…

phil@Desktop-PC:~$ ssh root@hassio

  _    _                 _       
 | |  | |               (_)      
 | |__| | __ _ ___ ___   _  ___  
 |  __  |/ _` / __/ __| | |/ _ \ 
 | |  | | (_| \__ \__ \_| | (_) |
 |_|  |_|\__,_|___/___(_)_|\___/ 
                                 


Our Cli:
$ hassio help

~ $ docker exec -it homeassistant /bin/bash
-bash: docker: command not found
~ $

Also,

~ $ ls /usr/local/lib

There is NOTHING in /usr/local/lib.

This is the third time I’ve exactly described my problem, but no one seems to understand… Is it me ?, Is there something I’m fundamentally failing to understand here ?

I’m not an expert, so forgive if this is bad advice.
Have you tried running the “login” command right after you ssh into hassio, and then run the docker commands?

Hi,

phil@Desktop-PC:~$ ssh root@hassio

  _    _                 _       
 | |  | |               (_)      
 | |__| | __ _ ___ ___   _  ___  
 |  __  |/ _` / __/ __| | |/ _ \ 
 | |  | | (_| \__ \__ \_| | (_) |
 |_|  |_|\__,_|___/___(_)_|\___/ 
                                 


Our Cli:
$ hassio help

~ $ login
core-ssh.local.hass.io login: 
core-ssh.local.hass.io login: 
core-ssh.local.hass.io login:            
Login timed out after 60 seconds
~ $

are you opening the web ui or are you connecting via ssh
you should just be using the open web ui or the terminal from the side menu bar in HA
i just tried it on my system Ubuntu/Docker/Hassio and my office Hyper-V VM running Hassio

on both occasions
docker
did not come back as not found
Capture