-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I see a lot of the following messages in the HA log recently. Something must have changed with the API.
2025-08-31 16:31:55.133 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.feeder_last_feeding fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 963, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1314, in async_device_update
await self.async_update()
File "/config/custom_components/petsafe/SensorEntities.py", line 233, in async_update
feeding = await feeder.get_last_feeding()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/petsafe/devices.py", line 76, in get_last_feeding
messages = await self.get_messages_since()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/petsafe/devices.py", line 63, in get_messages_since
response = await self.client.api_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^
self.api_path + "messages?days=" + str(days)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/petsafe/client.py", line 216, in api_get
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '500 Internal Server Error' for url 'https://platform.cloud.petsafe.net/smart-feed/feeders/xxxxxxxxxxxxxx/messages?days=7'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
Metadata
Metadata
Assignees
Labels
No labels