Automation not work - user error?

Did you check the traces of the two automations?

For future reference, post the YAML code of your automations in the forum, not screenshots of the YAML code.