Automation needs to join a text value and a variable when the luminescence changes

Use data_template instead of data. Rule 1 here.

Also, please format your code correctly, as per rule 11 here. Your indentation might be all wrong, but we can’t tell with your current formatting.