Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mp3 file only got play for 1 second. #110

Open
FireROR opened this issue Dec 4, 2024 · 10 comments
Open

Mp3 file only got play for 1 second. #110

FireROR opened this issue Dec 4, 2024 · 10 comments

Comments

@FireROR
Copy link

FireROR commented Dec 4, 2024

Hi,

I just created a straightforward door bell setup with all default settings, the mp3 file only played for 1 sec and the music resume is on. Any idea what I did wrong?

Thank you
trace automation.someone_at_the_door 2024-12-04T02_40_49.227729+00_00.json

@TheFes
Copy link
Owner

TheFes commented Dec 5, 2024

are you on the latest version of the package? And can you provide traces of the Resume Script and Resume Helper Script as well?

@FireROR
Copy link
Author

FireROR commented Dec 7, 2024

trace automation.google_home_automatic_resume 2024-12-07T14_25_02.816605+00_00.json

Just got chance to test again today and download the trace. I only have the resume script but no helper script.

@TheFes
Copy link
Owner

TheFes commented Dec 7, 2024

You've sent me a trace for the automation in which you call the script, but not the trace for the script itself (and the helper script).
Make sure to go the the scripts tab, instead of the automations tab

@FireROR
Copy link
Author

FireROR commented Dec 7, 2024

@TheFes
Copy link
Owner

TheFes commented Dec 9, 2024

On line 759 of the last version there is a short delay (of 2 seconds) which should ensure the playback of the TTS or other media file has started, and then the script should wait until that one is stopped before resuming. You could try increasing that delay with a few more seconds.

https://github.com/TheFes/Google-Home-Resume/blob/main/google_home_resume.yaml#L759

@FireROR
Copy link
Author

FireROR commented Dec 9, 2024

I increased to 5s and restarted the HA. It still played 1-2s of the mp3 file. The playback does start, I guess that's not the problem. If the google home is not playing youtube music, the doorbell mp3 will play completely.

@TheFes
Copy link
Owner

TheFes commented Dec 9, 2024

did you reload scripts after making the change?

@FireROR
Copy link
Author

FireROR commented Dec 9, 2024

Yes. Reload script, and tried restart the HA as well

@TheFes
Copy link
Owner

TheFes commented Dec 9, 2024

can you send a new trace for the helper script?

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

No branches or pull requests

2 participants