Hi I just added this integration and Iām so excited by it!
It was running about 24 hours for four devices (Purobot Ultra, two Eversweet Maxes and YumShare DualHopper) and one pet with everything looking good, then started getting various errors in the logs and is not working. The first was an error that looks to be around retrieving video and getting āLow App versionā error from the PetKit servers:
Traceback (most recent call last):
File "/config/custom_components/petkit/coordinator.py", line 216, in _async_update_media_files
await dl_mgt.download_file(media, self.media_type)
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/media.py", line 526, in download_file
await self._get_video_m3u8()
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/media.py", line 543, in _get_video_m3u8
aes_key, iv_key, segments_lst = await self._get_m3u8_segments()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/media.py", line 584, in _get_m3u8_segments
video_data = await self.client.get_cloud_video(self.file_data.video)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 585, in get_cloud_video
response = await self.req.request(
^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 767, in request
return await self._handle_response(resp, _url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 809, in _handle_response
raise PypetkitError(
f"Request failed code : {error_code}, details : {error_msg} url : {url}"
)
pypetkitapi.exceptions.PypetkitError: Request failed code : 1513, details : Low App version. Please update the App. url : https://api.petkt.com/latest/d4sh/cloud/video?startTime=1742197451&deviceId=10010283&userId=100738927&mark=1742197443
I tried disabling video and pictures and reloading the integration. I now routinely get this error:
Traceback (most recent call last):
File "/config/custom_components/petkit/coordinator.py", line 307, in _async_update_bluetooth_connection
if await self.config.runtime_data.client.bluetooth_manager.open_ble_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
device_id
^^^^^^^^^
):
^
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/bluetooth.py", line 118, in open_ble_connection
response = await self.client.req.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<8 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 767, in request
return await self._handle_response(resp, _url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pypetkitapi/client.py", line 801, in _handle_response
raise PetkitSessionExpiredError(f"Session expired: {error_msg}")
pypetkitapi.exceptions.PetkitSessionExpiredError: Session expired: Login session expired. Please log in again.
And most of my sensors are unavailble or 0 or other not valid values, including the petās weight, etc.
EDIT: Iāve now also noticed that at exactly midnight each night, all my sensors go to invalid states (0, unknown, etc.). This has happened two nights in a row. Iām turning up logging and trying to see what happens tonight, will report.
EDIT2: Is it possible that a number of the litter box settings reset at midnight, including the petās weight? I havenāt specifically seen documentation indicating this may be the case, but if I reload the integration today nothing has happened but also my pet hasnāt visited yet.