I have been using the same code for my notifications for some time now but recently I have been getting some unexpected behaviour.
My notification scripts wait for the media player to change state to playing
, then wait for paused
in order to know that the notification is finished.
All very good so far.
Yesterday and today I appear to have had situations (sometimes but not always) where the change in state wasn’t happening (evidenced by its lack of an entry in the logbook) so my script never finished.
Looking in the logs I have the following warning which looks suspicious. But what does it mean?
WARNING (MainThread) [homeassistant.components.sonos.media_player] Timeout waiting for target groups [[<Entity Kitchen: paused>]]