Open Mr5Picker opened 3 days ago
Hey there @sdb9696, mind taking a look at this issue as it has been labeled with an integration (ring
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
ring documentation ring source (message by IssueLinks)
What HA version did you last have installed?
I previously had 2024.10.1 and I'm not certain, but I believe that it did work for a time during that version but stopped working at some point. I then upgraded to 2024.10.2 in hopes that would rectify the issue. Also forgot to mention that the switches do correlate correctly to the current status of the lights but are not able to operate them.
So I’m away from my pc tonight but iirc 422 sometimes happens because of ring.com rate limiting you. Do you have any automations that may be firing repeatedly by accident? Try disabling all automations and see if you can change a switch.
No, I do not have any automations tied to Ring and at most operate the switches 2 times per day. Thanks for looking into this when you can.
I have similar logs. The problem started 2 days ago. I get this error in the UI when floodlight switch is turned on or off, both manually (via the UI) or by an automation: "Failed to perform the action light/turn_on. Error communicating with API<function RingLight._async_set_light at 0x7f743dbec0>: HTTP error with status code 422 during query of url https://api.ring.com/clients_api/doorbots/31525054/floodlight_light_on: 422, message='', url='https://api.ring.com/clients_api/doorbots/31525054/floodlight_light_on'"
I was at Core 2024.10.2 when the problem started. Rolled back several updates to Core 2024.9.3 and it's happening with this older version as well, but had never happened before 2 days ago. I normally toggle the lights several times a day with an automation, but disabled the automation when the problem started. I just tried turning on a Ring Floodlight for the first time in 24 hours and the problem still exists. No other Ring entities are used in any of my automatons.
I also have a spare test only HA server without Ring. Loaded it with a fresh Ring Integration and connected to my Ring account. Same problem. Rolled HA Core on this server back to 2024.9.3 and exact same problem.
Have you checked your Authorised Devices on ring.com in the Control Centre? If you have a lot of entries you could need to delete all the excess ones.
Deleted all entries in "Authorized Client Devices" except the web browser. Logged in my phone to be sure Ring was working, no problem. Then went to Home Assistant and found "Authentication expired for 'me', The Ring integration needs to re-authenticate your account". Did it, all Ring entities came back. Toggled the floodlight and got this again:
Failed to perform the action light/turn_on. Error communicating with API<function RingLight._async_set_light at 0x7f6a207d80>: HTTP error with status code 422 during query of url https://api.ring.com/clients_api/doorbots/443375255/floodlight_light_on: 422, message='', url='https://api.ring.com/clients_api/doorbots/443375255/floodlight_light_on'
Verified in Ring's Authorized Client Devices that now only 3 Devices are Authorized. Was about a dozen before.
Exactly the same thing happened to me, also started a few days ago. Same error. I have both a Floodlight Cam Pro
and a Floodlight Cam
. I get the normal events (motion and such), just the 422 trying to change the light state.
Same problem with me. 422 trying to change the light state.
Core 2024.10.2 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.3
+1 for this happening to me too. Error 422 when trying to change the state of the light.
Core 2024.10.2 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.3
I have a potential fix but as I'm not getting this error myself I am not able to test it to see if it works. If I create a branch in the ring-doorbell library that the HA ring integration uses, would someone on this thread having the issue be able to test it out?
I could try it on my test system. Let me know how to load the "branch".
These instructions will load the test branch:
https://gist.github.com/sdb9696/3316358301fa335307f3f9a4fb8cbadb
However they only work on HAOS and the branch assumes you are running HA 2024.10.x
and not dev
otherwise the test branch could be uninstalled
Not sure exactly what configuration HAOS is or what "dev" is. But I'm at Core 2024.10.2 using a PI and I do everything with a web browser to the UI. Disabled the Terminal & SSH Protection mode and started the terminal. Entered the 4 lines then exited Terminal & SSH and rebooted the PI. Turned on the floodlight:
Failed to perform the action light/turn_on. Error communicating with API<function RingLight._async_set_light at 0x7f680b5120>: HTTP error with status code 422 during query of url https://api.ring.com/clients_api/doorbots/443375255/floodlight_light_on: 422, message='', url='https://api.ring.com/clients_api/doorbots/443375255/floodlight_light_on'
Is there a way to see if the library update is still installed?
When you're in the docker container and run uv pip freeze | grep ring-doorbell
what does it say?
The problem
Switches that control the lights and sirens on my Ring cameras no longer function and return an error message. Not sure when this started but just realized it today,
What version of Home Assistant Core has the issue?
2024.10.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Ring
Link to integration documentation on our website
https://www.home-assistant.io/integrations/ring
Diagnostics information
config_entry-ring-c01a200e73ffe6ab6130e64c201897f1.json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response