Passing on data (via input text) to an automation service (data field)

Hi,

I have a service (from an integration) where I can enter something in the field ‘Search’. I prefer to do this not in the service (through automation) but via an input text ‘helper’. is this possible?

so when I enter something (in the text box) this value (let’s say Eminem) should go into the “search” field as value and then get’s executed.

how the service looks like:

description: ""
mode: single
trigger: []
condition: []
action:
  - service: spotify
    data:
      limit: 20
      repeat: "off"
      shuffle: false
      search: HERE THE VALUE FROM THE TEXT INPUT

What I already tried, but the tracing keeps telling me 'unknown":
image

description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - input_text.test
    enabled: true
condition: []
action:
  - service: spotify
    data:
      limit: 20
      repeat: "off"
      shuffle: false
      device_name: Livingroom
      search: "{{ states('input_select.test') }}"

So it seems that what I enter in the input is not passed on…

image

Should this be

search: "{{ states('input_text.test') }}"

So, TEXT not SELECT?

I’m not that sharp anymore, but this was the solution. thanks!

1 Like