playlist starts to play after TTS message is over (even if not playing before TTS)
frelev opened this issue · comments
If you have a player with a playlist loaded and call the TTS notify it resumes the playlist playing when message is done even if device was silent before.
It plays for a couple of seconds then stops.
Current behaviour:
- device silent
- device plays TTS message
- device plays next track in playlist queue for a couple of seconds
- device silent
No 3 is not expected.
Let me know if you need more information
What do the logs show:
logger:
logs:
custom_components.lms_tts_notify: debug
After adding debug and restarting HASS I cannot reproduce it anymore, So Ill close it
EDIT: Just because of that it happened again
Not sure which line you need
Wrong
I do not need the full debug log off everything, only from the integration like I showed and when the problem occurs
The log above does not even contain the messages of the integration
I need the debug log of custom_components.lms_tts_notify
2021-07-27 16:49:48 DEBUG (MainThread) [custom_components.lms_tts_notify] Received on event bus: {'message': 'Test', 'entity_id': 'media_player.bureau'}
2021-07-27 16:49:49 DEBUG (Coordinator) [custom_components.lms_tts_notify] Add Sync Group ['media_player.keuken', 'media_player.bureau']
2021-07-27 16:49:49 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save state: media_player.bureau -> {'state': 'off', 'attributes': {'repeat': '0'}}
2021-07-27 16:49:49 DEBUG (Coordinator) [custom_components.lms_tts_notify] Add Sync Group ['media_player.keuken', 'media_player.bureau']
2021-07-27 16:49:49 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save state: media_player.keuken -> {'state': 'off', 'attributes': {'repeat': '0'}}
2021-07-27 16:49:49 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save playlists: media_player.bureau
2021-07-27 16:49:49 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save playlists: media_player.keuken
2021-07-27 16:49:49 DEBUG (Coordinator) [custom_components.lms_tts_notify] UnSync media_player.bureau
2021-07-27 16:49:50 DEBUG (bureau_queue) [custom_components.lms_tts_notify] Playing message 'Test'
2021-07-27 16:49:58 DEBUG (bureau_queue) [custom_components.lms_tts_notify] Waiting for media_player.bureau to finish
2021-07-27 16:49:58 DEBUG (Coordinator) [custom_components.lms_tts_notify] Restore volume: media_player.bureau
2021-07-27 16:49:58 DEBUG (Coordinator) [custom_components.lms_tts_notify] Restore state: media_player.bureau -> {'state': 'off', 'attributes': {'repeat': '0'}}
2021-07-27 16:49:58 DEBUG (Coordinator) [custom_components.lms_tts_notify] ReSync media_player.bureau->media_player.keuken
2021-07-27 16:49:58 DEBUG (Coordinator) [custom_components.lms_tts_notify] Players all done: {'media_player.bureau'}
Here you go
2021-07-31 18:02:42 DEBUG (MainThread) [custom_components.lms_tts_notify] Received on event bus: {'message': 'Det var inte bra', 'entity_id': 'media_player.kitchen', 'volume': 0.8}
2021-07-31 18:02:43 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save state: media_player.kitchen -> {'state': 'off', 'attributes': {'sync_group': [], 'repeat': '0'}}
2021-07-31 18:02:43 DEBUG (Coordinator) [custom_components.lms_tts_notify] Add Sync Group ['media_player.bathroom', 'media_player.dining']
2021-07-31 18:02:43 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save state: media_player.bathroom -> {'state': 'off', 'attributes': {'repeat': '0'}}
2021-07-31 18:02:43 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save state: media_player.tts_broadcast -> {'state': 'off', 'attributes': {'sync_group': [], 'repeat': '0'}}
2021-07-31 18:02:43 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save playlists: media_player.kitchen
2021-07-31 18:02:43 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save playlists: media_player.bathroom
2021-07-31 18:02:43 DEBUG (Coordinator) [custom_components.lms_tts_notify] Save playlists: media_player.tts_broadcast
2021-07-31 18:02:43 DEBUG (Coordinator) [custom_components.lms_tts_notify] UnSync media_player.kitchen
2021-07-31 18:02:43 DEBUG (kitchen_queue) [custom_components.lms_tts_notify] Playing message 'Det var inte bra'
2021-07-31 18:02:47 DEBUG (kitchen_queue) [custom_components.lms_tts_notify] Waiting for media_player.kitchen to finish
2021-07-31 18:02:47 DEBUG (Coordinator) [custom_components.lms_tts_notify] Restore volume: media_player.kitchen
2021-07-31 18:02:47 DEBUG (Coordinator) [custom_components.lms_tts_notify] Restore state: media_player.kitchen -> {'state': 'off', 'attributes': {'sync_group': [], 'repeat': '0'}}
2021-07-31 18:02:47 DEBUG (Coordinator) [custom_components.lms_tts_notify] ReSync media_player.bathroom->media_player.dining
2021-07-31 18:02:47 DEBUG (Coordinator) [custom_components.lms_tts_notify] Players all done: {'media_player.kitchen'}
media_player.kitchen is not restoring the playlist after the tts message as shown in the logs
media_player.kitchen is also not part of a sync group that could be the problem ( there where some issues with restoring the sync groups but that should be fixed in the latest release )
You do not have the issue every time, is the log of when it occurred?