Skip to content

Conversation

@JosiahSayers
Copy link

Adds a push message that sends when the entire archive loop finishes.

I'm using webhooks to automate things when the archive process finishes but I'm running into issues when music sync is enabled. There's no webhook sent when music sync starts and there is only a message sent post music sync if there were files synced. In this case my automations think that teslausb is done working when it may still be syncing music.

If there's a better way to do this or a more preferred message I'm happy to make changes.

@JosiahSayers JosiahSayers force-pushed the add-loop-completion-message branch from f266b8e to a019bc3 Compare November 5, 2025 22:35
@JosiahSayers JosiahSayers force-pushed the add-loop-completion-message branch from a019bc3 to e991fd5 Compare November 5, 2025 22:41
@marcone
Copy link
Owner

marcone commented Nov 5, 2025

I don't want to force an extra notification on everyone to make your automation work. This would have to be optional.
I also think that "archive loop finished" is not the right message. The loop isn't finished, it's still running.

What does your automation do? Perhaps there's a better way to support your use case.

@JosiahSayers
Copy link
Author

JosiahSayers commented Nov 6, 2025

That's totally fair! I'm really looking for a way to be notified with a webhook when the archive loop finishes an iteration.

I'm automating keeping the car awake with home assistant so that I don't have to store any api keys on the pi that can directly control the vehicle. The worst that could happen with the webhook I have stored on the pi is turning off sentry mode.

@marcone
Copy link
Owner

marcone commented Nov 6, 2025

I'm automating keeping the car awake with home assistant so that I don't have to store any api keys on the pi that can directly control the vehicle. The worst that could happen with the webhook I have stored on the pi is turning off sentry mode.

Maybe tying this into the existing awake_start and awake_stop scripts would work? E.g. in addition to the existing methods using TeslaFi, etc to keep the car awake, there could be a custom command (or message) at the point where TeslaUSB wants to start/stop keeping the car awake.

@JosiahSayers
Copy link
Author

That is a way better solution, thanks for pointing me in that direction. I'm going to push some commits up soon to see if you're on board with the approach and I'll be testing them on my vehicles over the weekend.

@marcone marcone merged commit 95d2a53 into marcone:main-dev Nov 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants