Automation: Information on Specified Tag removed after saving Automation with Trigger Type: Tag

Hi all, maybe I’m overlooking something but I can’t seem to find what is going wrong.

I created this simplified automation to do something based on scanning a tag:

alias: Test2
description: ''
trigger:
  - platform: tag
    tag_id: 7529266c-23c2-465f-becf-79a906cc5c64
condition: []
action:
  - service: media_player.play_media
    target:
      entity_id: media_player.study_speaker
    data:
      media_content_id: media-source://tts/cloud?message=Succesfull&language=en-GB&gender=female
      media_content_type: provider
    metadata:
      title: Succesfull
      thumbnail: https://brands.home-assistant.io/_/cloud/logo.png
      media_class: app
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: app
          media_content_id: media-source://tts
        - media_content_type: provider
          media_content_id: >-
            media-source://tts/cloud?message=Succesfull&language=en-GB&gender=female
mode: single

Or, at first part, in the Visual Editor:

After saving, or switching to edit in YAML, or reopening the Tag under Triggers becomes empty:

However:

alias: Test2
description: ''
trigger:
  - platform: tag
    tag_id: 7529266c-23c2-465f-becf-79a906cc5c64
condition: []
action:
  - service: media_player.play_media
    target:
      entity_id: media_player.study_speaker
    data:
      media_content_id: media-source://tts/cloud?message=Succesfull&language=en-GB&gender=female
      media_content_type: provider
    metadata:
      title: Succesfull
      thumbnail: https://brands.home-assistant.io/_/cloud/logo.png
      media_class: app
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: app
          media_content_id: media-source://tts
        - media_content_type: provider
          media_content_id: >-
            media-source://tts/cloud?message=Succesfull&language=en-GB&gender=female
mode: single

So on saving the automation a next time - no tag

Is this one of the things that is part of my learning-curve in HA, or is something going wrong elsewhere? I’m running HA 2022.3.8, and have tried to restart multiple times.

1 Like