State chage not triggering automation

Post the automation’s YAML.

Reference: FAQ Guideline 11, Format it properly