Reduce the size of the Nest event media storage cache (#128855)

Reduce max media items per nest device
pull/128883/head
Oliver Woodings 2024-10-20 18:58:27 +01:00 committed by GitHub
parent 1f9c06e606
commit 94534f714c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -103,10 +103,10 @@ CONFIG_SCHEMA = vol.Schema(
PLATFORMS = [Platform.CAMERA, Platform.CLIMATE, Platform.EVENT, Platform.SENSOR]
# Fetch media events with a disk backed cache, with a limit for each camera
# device. The largest media items are mp4 clips at ~120kb each, and we target
# device. The largest media items are mp4 clips at ~450kb each, and we target
# ~125MB of storage per camera to try to balance a reasonable user experience
# for event history not not filling the disk.
EVENT_MEDIA_CACHE_SIZE = 1024 # number of events
EVENT_MEDIA_CACHE_SIZE = 256 # number of events
THUMBNAIL_SIZE_PX = 175