Skip to content

Automations EN

XAV59213 edited this page Nov 8, 2026 · 1 revision

🇫🇷 Français

Automations

Events fired: starship_tracker_live_started, starship_tracker_live_ended, starship_tracker_launch_soon (T-1h).

alias: Starship - live
trigger:
  - platform: event
    event_type: starship_tracker_live_started
action:
  - service: notify.notify
    data:
      title: "🚀 Starship en direct"
      message: "{{ trigger.event.data.mission | default('Starship') }} est en live !"
alias: Starship - lancement dans 1 h
trigger:
  - platform: event
    event_type: starship_tracker_launch_soon
action:
  - service: notify.notify
    data:
      message: "Lancement Starship dans environ 1 heure."

Notification texts in the examples are in French; adapt them as you like.

New YouTube video per language — 1.16.0

The starship_tracker_youtube_video event contains language (fr / en), title, url, channel (UC ID) and published (ISO 8601 with time zone). It is fired only for a not-yet-seen video, not on the first read; seen IDs are kept across restarts.

Paste into an automation's YAML editor. Replace the notification service; for English speakers, use language: en and adapt the title. No notification is sent without this automation.

# Configuration > Automatisations > Créer > Modifier en YAML.
# FR: remplacer le service notify par celui du téléphone. EN: replace notify service.
# Pour l'anglais / For English: change language: fr to language: en.
alias: "Starship - vidéo YouTube FR"
triggers:
  - trigger: event
    event_type: starship_tracker_youtube_video
    event_data:
      language: fr
actions:
  - action: notify.mobile_app_mon_telephone
    data:
      title: "📺 Starship — YouTube FR"
      message: "{{ trigger.event.data.title }}"
      data:
        url: "{{ trigger.event.data.url }}"
        clickAction: "{{ trigger.event.data.url }}"
mode: queued
max: 20

RSS is polled every 10 minutes; no notification for the initial history. Channel/filter changes establish a new silent baseline.

StarBase FR (option)

Once youtube_starbase_fr is enabled, its new videos also fire starship_tracker_youtube_video with language: fr. The FR example therefore covers UFOTINIK and StarBase FR. For an automation limited to StarBase FR, add channel: UC… to event_data with the ID shown in the attributes of the sensor.starship_tracker_youtube_fr_starbase sensor (do not use @StarBaseFR instead of the ID). The title filter is disabled by default for this source only. No initial notification and no duplicates after a restart.

Upcoming / live YouTube stream — 1.21.0

starship_tracker_youtube_live event: status (upcoming / live), scheduled, title, url, channel, language. Fired only once per video and per state, with no repeat on restart. Only lives whose title contains the keyword (starship) are taken into account.

alias: "Starship - live YouTube"
triggers:
  - trigger: event
    event_type: starship_tracker_youtube_live
actions:
  - action: notify.mobile_app_mon_telephone
    data:
      title: "🔴 Starship {{ trigger.event.data.status }}"
      message: "{{ trigger.event.data.title }} {{ trigger.event.data.url }}"

Clone this wiki locally