#Can variables reference each other?
12 messages · Page 1 of 1 (latest)
Hi @quaint basin,
Yes you can and the order does matter.
I also think I noticed variables don't work in the triggers?
Wonder if this stuff is in the docs. Will look around more closely. I feel like it always seemed tough to find docs on vars
You can use trigger_vatiables and those are rendered before the trigger.
However limited template come into play then, and you can't do all the jinja things.
Ah cool that might actually work for my use case
I feel like automation docs are sort of split up cuz they're basically made up of different components? (triggers, actions)
variables: are rendered after the trigger. trigger_variables before.
There's some info here
https://www.home-assistant.io/docs/automation/yaml/#variables
That looks about right then. I'll admit I didn't look too hard before leaving for the gym 😅