diff --git a/custom_components/alexa_media/media_player.py b/custom_components/alexa_media/media_player.py index 416e70f1..e2ce6ab6 100644 --- a/custom_components/alexa_media/media_player.py +++ b/custom_components/alexa_media/media_player.py @@ -413,6 +413,15 @@ async def _refresh_if_no_audiopush(already_refreshed=False): self.hass.data[DATA_ALEXAMEDIA]["accounts"][email]["http2"] ) self.async_schedule_update_ha_state(force_refresh=force_refresh) + if self._last_called: + self.hass.bus.async_fire( + "alexa_media_last_called_event", + { + "last_called": self.device_serial_number, + "timestamp": self._last_called_timestamp, + "summary": self._last_called_summary, + }, + ) elif "bluetooth_change" in event: if event_serial == self.device_serial_number: _LOGGER.debug(