Define device/entity at the beginning of a script for all actions

Hi community,
I have a situation like this:


Where basically I’m chaining actions on the same device/entity.
Is there a way to define a specific device or entity at the beginning of the script, so I don’t have to recall it on each action?
I know I can do this as best practive via blueprints, but I tried and I don’t get the result I want… :frowning: anyone can help?
Thanks!!