automations: skip pause/play on stereo power-on when AirPlay is active #8

Merged
jmaroeder merged 1 commit from jmaroeder/lyrion-airplay-detection into main 2026-06-23 14:16:55 +00:00
Owner

Summary

  • Wraps the media_player.media_pause and media_player.media_play calls in the stereo power-on automation with a file:// check on media_content_id
  • When AirPlay is the source (non-file:// content ID), the pause/play sequence is skipped so the AirPlay session isn't disrupted
  • The stereo power-on, input switch, and Pure Direct steps still execute regardless of source

Test plan

  • Trigger from local Lyrion playback — stereo powers on, playback pauses then resumes after delay
  • Trigger from AirPlay — stereo powers on without touching playback; verify AirPlay session stays connected
## Summary - Wraps the `media_player.media_pause` and `media_player.media_play` calls in the stereo power-on automation with a `file://` check on `media_content_id` - When AirPlay is the source (non-`file://` content ID), the pause/play sequence is skipped so the AirPlay session isn't disrupted - The stereo power-on, input switch, and Pure Direct steps still execute regardless of source ## Test plan - [ ] Trigger from local Lyrion playback — stereo powers on, playback pauses then resumes after delay - [ ] Trigger from AirPlay — stereo powers on without touching playback; verify AirPlay session stays connected
Pausing/resuming via LMS during AirPlay disrupts the session. Skip
the pause and play steps when media_content_id is not a file:// URL.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jmaroeder deleted branch jmaroeder/lyrion-airplay-detection 2026-06-23 14:16:55 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jmaroeder/ha-config!8
No description provided.