I believe you can also inject the domain.
You should be able to use this logic here: Changing lamp color based on a variable - #4 by AlmostSerious
I believe you can also inject the domain.
You should be able to use this logic here: Changing lamp color based on a variable - #4 by AlmostSerious