Skip to main content

Follow your TV’s play and pause

Let F1 replay follow your TV’s play and pause states after you align the session manually. When you pause your main TV, the replay pauses automatically. When you resume, the replay resumes. No need to manually pause and unpause the replay every time you take a break.

The blueprint works with any media player entity — Apple TV, a smart TV, or any other player that reports play and pause states.

Replay Mode required

This blueprint requires Replay Mode to be set up and a session to be loaded and playing.


Import the Blueprint​

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Or go to Settings > Automations & Scenes > Blueprints and import manually using the URL:

https://raw.githubusercontent.com/Nicxe/f1_sensor/main/blueprints/f1_replay_sync.yaml

Requirements​

  • F1 Sensor integration installed with Replay Mode enabled
  • A session loaded and ready to play in Replay Mode
  • A TV or media player entity that reports playing and paused states

Setup​

Step 1 — Create an automation from the blueprint​

  1. Go to Settings > Automations & Scenes > Blueprints
  2. Find F1 Replay Sync
  3. Click Create Automation

Step 2 — Configure inputs​

SettingDescription
Main TVThe media player you are watching the F1 replay on. Any media player entity works — Apple TV, smart TV, or similar
F1 Replay PlayerThe standard media_player.f1_replay_player entity from the F1 Sensor integration. If you upgraded from an older release and already have a different registry ID, select your existing replay player entity instead

Behavior​

The blueprint watches your main TV for state changes. When the TV pauses and the F1 replay is currently playing, the replay is paused. When the TV resumes and the replay is currently paused, the replay resumes.

Each action checks the current F1 replay state: TV pause affects a playing replay; TV play resumes a paused replay. This also means that resuming the TV can resume an F1 replay you paused manually. Disable the automation when you want independent playback.

This blueprint does not load sessions, match playback positions, or follow a seek on the TV. Use the Replay controls to align positions again after seeking.


YAML alternative​

Add the following two automations under automation: in a Home Assistant configuration or included automation file, merging with your existing list. This example follows play/pause changes; it does not match the playback position automatically. First load the F1 session and align it manually. The Replay Sync blueprint provides the same basic workflow without writing YAML.

automation:
- alias: "Pause F1 replay when Apple TV pauses"
trigger:
- platform: state
entity_id: media_player.apple_tv
to: "paused"
condition:
- condition: state
entity_id: media_player.f1_replay_player
state: "playing"
action:
- service: media_player.media_pause
target:
entity_id: media_player.f1_replay_player

- alias: "Resume F1 replay when Apple TV plays"
trigger:
- platform: state
entity_id: media_player.apple_tv
to: "playing"
condition:
- condition: state
entity_id: media_player.f1_replay_player
state: "paused"
action:
- service: media_player.media_play
target:
entity_id: media_player.f1_replay_player

Replace media_player.apple_tv with your actual media player entity. This works with any media player that reports play and pause states.