Random entity_id in an action?

I am trying to get an action that randomly turns of 1 of 2 lights… Is it possible to have a random entity_id in a action?

entity_id: {{ [light.hue_ambiance_1,light.hue_ambiance_2] | random }}'

Nor:

entity_id: 'light.hue_ambiance_{{ [1,2] | random }}'

Seem to work.

Are you using “data_template” instead of “data”?

Thanks ever so much! I knew I was missing something obvious :man_facepalming: