Need help with Input select and state values

Hello again,

i got my alexa notify message working, but now after some update 2-3 months ago it stopped working. I can not figure it out why this happend.

I use Input Select to create many different messages for the same action for example “Bring out the Trash”. I still get the messages but not with any values. Alexa reads out the code instead of the value itself.

It was working for a long time…

Example:

Input Select.yaml

texte_abfall:
  name: Zufallstexte Abfallerinnerung
    options:
      - Morgen kommt die Müllabfuhr. Es wird der "{{states.sensor.sensornaechsterabfall.attributes.values()| first }}" abgeholt.

the part in notify automation:

      - data:
          data:
            type: tts
          target: media_player.wohnzimmer
          message: "{{state_attr('input_select.texte_abfall', 'options') | random }}"
        action: notify.alexa_media

When i test this with the template editor i get the right result with the text but not with the link via input_select option

Are you sure about that? Input selects do not accept templates in the Options list.

I think what you should probably be using is just a template sensor… or maybe no external entity at all. But, if you need something that is user select-able and has template-based Options, use a Template Select entity.

If you describe what your overall goal is, we may be able to offer more specific help.