I haven't had a chance to see if the underlying automations are working (out of town). But, seems like the API path may have changed and needs updated per log entries.
What version of Home Assistant Core are you running?
core-2024.9.2
What was the last working version of Home Assistant Core?
No response
Diagnostics information
Unknown exception while updating Pura data: 401 Client Error: Unauthorized for url: https://trypura.io/mobile/api/users/devices?types=wall%2Ccar%2Cplus
Unknown exception while updating Pura data: 502 Server Error: Bad Gateway for url: https://trypura.io/mobile/api/users/devices?types=wall%2Ccar%2Cplus
Traceback (most recent call last):
File "/config/custom_components/pura/coordinator.py", line 50, in _async_update_data
if devices := await self.hass.async_add_executor_job(self.api.get_devices):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pypura/pura.py", line 98, in get_devices
return self.get("users/devices", params={"types": "wall,car,plus"})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pypura/pura.py", line 223, in get
return self.__request("get", url, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pypura/pura.py", line 218, in __request
response.raise_for_status()
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://trypura.io/mobile/api/users/devices?types=wall%2Ccar%2Cplus
The problem
I haven't had a chance to see if the underlying automations are working (out of town). But, seems like the API path may have changed and needs updated per log entries.
What version of Home Assistant Core are you running?
core-2024.9.2
What was the last working version of Home Assistant Core?
No response
Diagnostics information
Unknown exception while updating Pura data: 401 Client Error: Unauthorized for url: https://trypura.io/mobile/api/users/devices?types=wall%2Ccar%2Cplus Unknown exception while updating Pura data: 502 Server Error: Bad Gateway for url: https://trypura.io/mobile/api/users/devices?types=wall%2Ccar%2Cplus Traceback (most recent call last): File "/config/custom_components/pura/coordinator.py", line 50, in _async_update_data if devices := await self.hass.async_add_executor_job(self.api.get_devices): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pypura/pura.py", line 98, in get_devices return self.get("users/devices", params={"types": "wall,car,plus"}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pypura/pura.py", line 223, in get return self.__request("get", url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pypura/pura.py", line 218, in __request response.raise_for_status() File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://trypura.io/mobile/api/users/devices?types=wall%2Ccar%2Cplus
Anything in the logs that might be useful?
No response
Additional information
No response