Use of "Define Variable" action in an automation

Just use an input_text helper. It has actions to set its value: Input text - Home Assistant

1 Like