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

Announcements to resume previous playback after chime finishes on Google Cast #170

Open
3 tasks done
SCBionicle opened this issue Jul 21, 2024 · 11 comments
Open
3 tasks done

Comments

@SCBionicle
Copy link

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

When using the announce feature, previous playback doesn't resume on the Google Nest Hub.

Describe the solution you'd like

It would be awesome if Chime could resume the previous playback on the Nest Hub after the announcement is finished.

Describe alternatives you've considered

I'm not exactly sure what this field means. But, it might be worth mentioning, that the google cast integration does hold the tokens, urls, media types, application, seek position, etc in the device attributes during playback.

Additional context

No response

@SCBionicle SCBionicle changed the title Announcements to resume previous playback after chime finishes Announcements to resume previous playback after chime finishes on Google Cast Jul 21, 2024
@SixFive7
Copy link

If need be I can easily test any solution for this. Just let me know!

@nimroddolev
Copy link
Owner

Hi @SCBionicle and @SixFive7.
I don't own a Google Nest Hub so I can't do any testing on my end. Could you please provide me with debug logs in order to help me understand what's going on?

To enable debug logs:

  1. Turn on debug logging:

    action: logger.set_level
    data:
      custom_components.chime_tts: debug
    
  2. Call the chime_tts.say action again.

  3. Check your log messages in Home Assistant:

    https://{YOUR_HOME_ASSISTANT_ADDRESS}:8123/config/logs?filter=chime_tts
    

    and click LOAD FULL LOGS

@nimroddolev
Copy link
Owner

Hi @SCBionicle and @SixFive7. Is this issue still relevant or can I close this ticket?

@SCBionicle
Copy link
Author

I apologize, I completely forgot I posted this ticket. I moved to using Music Assistant to process Chime TTS announcements because Chime TTS does not resume previous playback on either the Spotify Player or the default media player.

@SCBionicle
Copy link
Author

It's the end of the day over here right now, so I can explore getting those logs to you tomorrow, if that works.

@nimroddolev
Copy link
Owner

Hi @SCBionicle. No problem, please reply when you've had a chance 👍

With respect to the issue you're having with the resuming of playback after the announcement: have you read the documentation for the announce parameter? It should allow for the previously playing audio to resume after the announcement.

If you are still experiencing the issue, please provide me with your debug log messages. Without them I have no way of knowing what it going on behind the scenes on your end and can't help you further.

@SCBionicle
Copy link
Author

SCBionicle commented Sep 30, 2024

I'll attach the debug logs here.

Player Device: Google Nest Hub 1st Gen
Home Assistant Hardware: Hyper-V x86_64 6GB 4 Core Home Assistant OS v12.0 Core v2024.9.3
Chime TTS: v1.1.4
filtered Chime TTS Debug.txt (Default media player playing locally based video)

@SCBionicle
Copy link
Author

Some observations I noticed with the Google Nest Hub in Google Cast when using the Default Media Player (which Chime uses):

Entity State changes to Idle under the following conditions:

  • Playback of current track ends (default media player doesn't support enqueuing) (This is distinct from the app being turned off, device gets the Entity State, off, when the app disconnects and the device returns to the default photo frame)
  • Playback gets stuck buffering (Entity State doesn't switch to Buffering for some reason)

@Burbacottero
Copy link

News about this? I'm facing the same problem

@Burbacottero
Copy link

I apologize, I completely forgot I posted this ticket. I moved to using Music Assistant to process Chime TTS announcements because Chime TTS does not resume previous playback on either the Spotify Player or the default media player.

How do you did that?

@SCBionicle
Copy link
Author

I apologize, I completely forgot I posted this ticket. I moved to using Music Assistant to process Chime TTS announcements because Chime TTS does not resume previous playback on either the Spotify Player or the default media player.

How do you did that?

I set up the music assistant server add-on and its corresponding integration.

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

4 participants