I’m struggling to figure out something which I thought would be really simple. I’m trying to upload files local to Home Assistant to an S3 bucket.
I thought this would be what I needed GitHub - robmarkcole/HASS-S3: Home Assistant integration for S3 but it doesn’t appear to expose any form or service or action I can call in an integration to upload the file to S3. Nor does the official s3 integration.
Am I missing something very obvious? Surely someone else must have figured this out already? Any help would be greatly appreciated. Here is my automation for context:
Thanks for the quick response! Yep, that part all works, I can view the video or images via the browser with no issue. Just can’t work out the best way to upload to s3!
No problem, I appreciate your time. That just allows me to watch for new/changed files right? I’m not having any issues with the local files; I just can’t figure out how to upload them to an Amazon S3 bucket. There doesn’t appear to be any examples of someone else doing this online - that I can find anyway.
Same error, unfortunately. Also if I try and find the concept of this s3.put service through settings there is no reference to it. If I look at the config for this integration this is all that is listed:
Which is why I was opening with a general question as to how I might best do this, I’ve assumed this old integration just doesn’t work anymore. I’ll probably have to write a custom server to do the upload for me and use a webhook to send the image data instead. I was hoping someone else might have already solved this problem thanks again for your time.
I’m not so sure whether it’s installed correctly. Home Assistant is complaining about an unknown action, so maybe something is going wrong when the custom component is registering the service. Can you find it under Development Tools-Actions?
I run Home Assistant in Docker and use a simple Python script to watch a folder for new photos, resize and save them in HA’s local folder (for use as last snapshot in still cameras). There’s probably also some docker images doing something like watching a folder and automatically upload to a S3 bucket using FTP.