I'm trying to handle notifications that are preceded by a sound, but the media player state is never updated - it remains constantly in PLAYING state even after playback completes. This forces me to use a fixed timeout before triggering TTS, which works for one type of sound but not for another with a different duration.
Looking at the status events received, I only see sensor data:
2025-12-13 09:38:37.495 DEBUG (MainThread) [custom_components.vaca.media_player] Received status update: {'timestamp': 'Sat Dec 13 09:38:33 GMT+01:00 2025', 'sensors': {'light': 266}}
It shouldn't be complicated to add the media player state (playing, idle, paused, buffering) to these status events. Also, I'm curious: what's the use case for receiving the light sensor data from the media player entity in debug mode?
I'm trying to handle notifications that are preceded by a sound, but the media player state is never updated - it remains constantly in
PLAYINGstate even after playback completes. This forces me to use a fixed timeout before triggering TTS, which works for one type of sound but not for another with a different duration.Looking at the status events received, I only see sensor data:
2025-12-13 09:38:37.495 DEBUG (MainThread) [custom_components.vaca.media_player] Received status update: {'timestamp': 'Sat Dec 13 09:38:33 GMT+01:00 2025', 'sensors': {'light': 266}}It shouldn't be complicated to add the media player state (
playing,idle,paused,buffering) to these status events. Also, I'm curious: what's the use case for receiving the light sensor data from the media player entity in debug mode?