Skip to content

Media player state not reported in status events - stuck in PLAYING state #223

@pajeronda

Description

@pajeronda

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions