Normally, I do trial and error in the template editor until I get it right. However, in this case, the template editor doesn’t mind if I have a colon there or not:
Thank you so much. Sorry to keep bugging you… I just want to make sure I did this right. This is what it looks like in the YAML editor:
However, the actual script in automations.yaml has two single quotes surrounding the sensor name. Ive never seen a template with 2 single quotes like that… Also, I noticed that the double-quotes was changed to single quotes in the automations.yaml. Maybe this is normal?
- service: notify.sms_family
data:
message: 'Warning: Litter-Robot waste drawer is {{ states(''sensor.litter_robot_waste_drawer'')
}}% full. Please replace bag!'
mode: single
No problem.
To be honest: I never cared. What I know is that special characters and magic YAML variables need quotation to be interpreted properly. Think, I‘m not the right person figuring out that