Ring integration setup fails

Oh No you need to remove it as well check your custom component folder as well.

1 Like

Now itā€™s working, thanks a lot

Were can I find this pickle file?

I canā€™t get it working. If I press the configure button under Integrations nothing happensā€¦

Platform setup is no option i believeā€¦
The ring platform for the camera integration does not support platform setup. Please remove it from your config.

Remove or comment all the ring stuff from your configuration yaml files.

1 Like

The camera integration is also unreliable, does not work most of the time, no image preview or last recordingā€¦

1 Like

Anyone knows a way to reformat the time on the Last Activity? The new version displays the full instant instead of just the time which I preferred previously.

Running hass .104 so Seem to have got everything back working, all automations are working using the ring binary sensors. However, the download automation appears not to work, consistently, if I trigger it manually it works every time, when running as an automation itā€™s hit and miss,

This is what shows in the log when it fails

downloading ā€˜https://share-service-download-bucket.s3.amazonaws.com/4087943/6782579875304005452_stamp.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA46UYW43TKCR6ECRA%2F20200116%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200116T164926Z&X-Amz-Expires=3600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEAcaCXVzLWVhc3QtMSJHMEUCICKOpnzELNiURs8R370A3IpzFgPW1z3PjcWg2vrAHAGwAiEAo7bN07tObE4z4FqZXaHb373GCDUpGRBX79P9NT7u4AcqvQMIj%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw4OTA0NTIyNDAxMDIiDIjgSLPSOoi8CGUmdiqRAwjVVMGlV8QmKxOpEmUEgM54BEt2pFbntdNHAYZTUu87yL9ynhmcWYK%2FfcT2VHwidfSFgdLp0NswfnJ25gXWYqRMJRr%2FdFygJ1OpvpWumamCkhUpA8UZ%2FjLNGH%2B7djUIJDAY2D4dRvO0jiOJhPTJKMHwHLr%2FDZWvqs6nG8%2FCG6ZJqLTLS4GTyaj8fEn6flJ9AydBhAq2HEoT%2Bo6dYy%2Bfr2lsDJW5jVH%2Fp5XwUdQfTKQhT%2Bi%2B8ZG87ba1Pv2BRK%2BcRedUA0HhL59xweCwl9DWX8NVEsRP5TG2%2B6JzA48A5y5iGX2xxO1gbXd0HUMWvp28xTY%2Fhxe4jyY7RAnuYNav1drT3kaw772t8jT2t3CmXriS7TvvVsvWYrTUPHmPvsk8DJMdU1VNi1WpVKWjrKzoBHvWfVGSyh%2Fa%2BCvfXcDnsYyJqUUCog5UPZubqqSJO7SNRuDJv9Ux6PjOMzlbTzSykUfnvgV1pRYJPhVxcxhcuuoZOLehmqdA5cxKk%2FE7SKAD0IIb0Sivf70UswoKdpbRqnSFMNLigfEFOusB%2BUDDlxdcB7MuXV2jxvfSt9vFYeq%2F2466wUHzR2atkrFI%2FxbQkj%2BuKDfohdZfPp32%2BO%2FDiS0KgY1psTuOGgzXenvE76I%2Fb2U1nwL9t0VitvyhcgJ6mlpMmuv2%2FG9HkGGyl%2BlRbKZDLyKL5e%2BBRz9uPEBfR8NjbLVVcB%2Ftucx5PWtFBmsd7M0a8sgLWzMvsfwOTi8bd9ug%2F%2BVMyuOU8tk7%2FrQqMm%2F6ZVqPGawOL4wul5LosJp023u0NC%2BdAV%2BzFR4c3XeyHFA5HtXJn4RknjDf3vWDppXIfnKvB6PwqVNA3TF9RqAoDBM0V2X%2B9Q%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=ef1001461e359f92dda259b046d786b1f3155bd211c1f0a234ec31d1e6f723c9ā€™ failed, status_code=403

So the 403 code is showing not authorisedā€¦I didnā€™t setup with 2fa when setting up the integration would this be a cause?

you should enable 2fa, if that doesnā€™t fix itā€¦file a bug with all details

Remove all the platforms and only leave ring: along with username/password. So nothing under sensor: etcā€¦

In the previous version there has been a sensor called ā€œwifi_signal_strengthā€ indicating the signal quality of the doorbell which is now gone. Has it been removed on purpose?

It made a lot of calls and in all honesty these cameras are stationary so the signal should not change unless you have issues with multiple access points. The only camera that sorta moves is the peephole one because it moves when the door opens/closes. So to me it was a bit useless.

Hi dshokouhi,

I was just wondering why it has been gone. Thank you very much explaining the reason why it has been removed.

1 Like

This is wrong!
As previously stated, 0.104.0 does the config via the new Ring ā€œIntegrationā€ so you need to Remove or comment all the ring stuff from your configuration yaml files.

1 Like

Quick question: The output format of ā€œlast motionā€ and ā€œlast activityā€ has changed from something like ā€œ18:00ā€ to ā€œ2020-01-16T18:00:57+00:00ā€ which is pretty long and causes display problems in certain glance cards. Is there an easy way to get the old format back?

Thanks in advance and kind regards!

Actually the code was written to do the import but it will only work if configured as it expects: https://github.com/home-assistant/home-assistant/blob/a93088dafb32a20a894bf2d2de021bc68ebad94d/homeassistant/components/ring/config_flow.py#L78

We did some testing on that in the beta: https://discordapp.com/channels/330944238910963714/427516175237382144/664602335888015390

You will need to do a template sensor to extract the time.

I removed all previous Ring entries from config and the pickle file, then installed 0.104.0 but I get the following error (both with and without 2FA activated)

Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/ring/config_flow.py", line 45, in async_step_user
    token = await validate_input(self.hass, user_input)
  File "/usr/src/homeassistant/homeassistant/components/ring/config_flow.py", line 22, in validate_input
    auth.fetch_token, data["username"], data["password"], data.get("2fa"),
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/ring_doorbell/auth.py", line 40, in fetch_token
    headers=headers,
  File "/usr/local/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 244, in fetch_token
    self._client.parse_request_body_response(r.text, scope=self.scope)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 421, in parse_request_body_response
    self.token = parse_token_response(body, scope=scope)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 431, in parse_token_response
    validate_token_parameters(params)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 438, in validate_token_parameters
    raise_from_error(params.get('error'), params)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 405, in raise_from_error
    raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.UnauthorizedClientError: (unauthorized_client) The client is not authorized to request a token using this method.

Iā€™m seeing something like 45 minutes ago instead of long time string