Service Call input_text.set_value with Sensor States Doesn't Update Value

Hi Folks,

I have been wrestling with this automation for weeks now and not having any luck. The following is the service call that runs fine in Developer Tools as well as in the Automation, but the Input Text value does not get updated.

It works when I use either 1 of the states, but not when both are present. I have tried separating them out as variables, with and without single and double quotes to no avail.

service: input_text.set_value
data:
  value: "https://source.unsplash.com/random/${width}x${height}?{{state_attr('calendar.holidays_in_united_states','message') | replace(' ','%20')}},{{states('sensor.season')}}&sig=${timestamp}"
target:
  entity_id: input_text.wallpanel_image_url

When I execute it, the Trace output looks like it executied correctly, but the Input Text value is never updated. It also works when I use Developer Tools to manually set the Input Text to the same value.

Executed: November 5, 2023 at 11:11:57 AM
Result:
params:
  domain: input_text
  service: set_value
  service_data:
    value: >-
      https://source.unsplash.com/random/${width}x${height}?Daylight%20Saving%20Time%20ends,autumn&sig=${timestamp}
    entity_id:
      - input_text.wallpanel_image_url
  target:
    entity_id:
      - input_text.wallpanel_image_url
running_script: false

I am unsure what I am doing incorrectly.

UPDATE: For some reason, and no reason, this just started to work.

Did you every figure out why this has happened?
I am trying to do the exact same thing (hence update a URL for unsplash), and the entity does not get updated (though the automation completes successfully).

So it seems the forecast entity has been deprecated. You should use the weather.get_forecasts action.