This provides a sensor that shows details of a AWS S3 Bucket - size (in GB) and number of objects. You will need an Access Key
and Secret
from AWS that has ListAllMyBuckets
and ListBucket
permissions for the S3 service.
- Make sure that Home Assistant Community Store (HACS) is setup.
- Go to integrations in HACS
- Click the 3 dots in the top right corner and choose
Custom repositories
- Paste the following into the repository input field
https://github.com/hokiebrian/s3_size
and choose category ofIntegration
- Click add and restart HA to let the integration load
- Go to settings and choose
Devices & Services
- Click
Add Integration
and search forS3 Bucket Info
- Configure the integration by copying your
Bucket Name
andAWS Credentials
when prompted
This sensor does not update automatically due to the overhead associated with large buckets. AWS allows only 1000 objects to be fetched at a time. A Service S3 Size Update
is provided to be used in automations, scripts, or Tap Actions. The size returned is in GB, not GiB. AWS bills using GB and the S3 console displays in GiB.