I am trying to perform an automation based on the presence of a given attribute on an entity. I've proven that the entity only exists in certain circumstances, but I can't find the right YAML syntax to only trigger an automation if the attribute is present. I then want to set an input text based on the value of the attribute.
Can anyone help me figure the syntax out here please?