Setting a variable and reuse it

Hello
I have a Dim app where I need to specify entity_id: a coupe of times.
Is it possible to set a variable ex. Lightsource = light.bedroom and then use %lightsource% ? this will make it a lot easier if I need to rename some lights.
I know its not the right syntax :slightly_smiling_face:

-Medman

if you want it in the whole app:
self. Lightsource = “light.bedroom”
from that moment on you can use self.Lightsource

but its better toset such things in the yaml. and use self.args[“theVarName”]

if you want to know more of those basic functions:

Nice easy
Thx :smile:

1 Like