I have this piece of code to help me randomize all the color change for my bulbs. It’s a purely aesthetic thing but I like having all the lights go to random colors. They’ve all been working.
However my config check on it always spits out this error
Invalid config for [automation]: invalid template (TemplateSyntaxError: unexpected '}', expected ')') for dictionary value @ data['action'][0]['data_template']. Got None. (See /config/configuration.yaml, line 9).
Now it passes if I change the {{ brackets to (( but then the automation doesn’t work. Not if I try to call it or if I try to execute it.
This is confusing I’m still fairly new to this stuff. Should I just let the error keep happening, I can’t restart my server though. I guess I could do it from the terminal but it’d definitly satisfy my OCD if I can get the automation actually working without the Check Configuration borking it.
I am running HomeAssistant OS 0.118.5 on a RPI4. HassOS 4.15
I’m using 0.118.4 but I doubt the different patch version is responsible for the script passing Check Config.
What’s the rest of the automation/script where this is used?
BTW, since version 0.115, the data_template option has been deprecated and the data: option serves the same purpose. In fact, if you check the Log at startup, you may see messages concerning this modification.