I’ve tried some codes alternatives, but without success. I’m still getting this error:
Invalid config for [automation]: expected a dictionary for dictionary value @ data[‘action’][0][‘data_template’]. Got None not a valid value for dictionary value @ data[‘action’][0][‘entity_id’]. Got None.
What am I missing?
Thank you!
PS: this is my first post. I’ve read this post, and I hope I did it well. If not, forgive this noob.
I don’t know about your trigger, if that works fine then maybe just leave it alone but your indentation doesn’t look correct. I haven’t tested myself but see if the action written like the code below works.
Thanks @AJStubbsy, thanks @123! Just to clarify, I’ve implemented Adam solution before the edit, and it is working fine without the quotes. I’ve just tried with the quotes and it works also. I guess that the main issue was the indentation (as usual). Thank you both!