Set device value from sensor

Hello, i have a sensor entity called sensor.value_opendtu.

I’d like to set this value to a device in an automation, but i can only set a numeric value in the automation and not the sensors entity-id.

How can i do this?
Thank you

If the field supports templates you can try it with

"{{states('sensor.value_opendtu')}}"