I’m using the GUI to add a wait template where I want it to continue the automation when 2 sensor values have decreased to 12. Values are the state of charge percentages from 2 batteries.
What needs to be added to get this wait template to work?
If both those need to be true, you should combine them with an and.
The == comparison is literal, the values must be “12”… not “11.9”, not “12.0”, etc. For numeric values, convert the state to a float or integer, then use >= or <=.
Thanks for helping out, your suggestions gives an error: Message malformed: invalid template (TemplateSyntaxError: unexpected char ‘‘’ at 9) for dictionary value @ data[‘actions’][14][‘wait_template’].
Yes, that is due to the fact that you didn’t format the original post properly and I forgot to remove the “pretty” quote marks… I have fixed it in my post above.