So far it looks fine… except, as the error says, your automation needs an action.
In the future please do not post screen shots of configuration text. No one wants to transcribe your configuration. Instead follow community guidelines and post the actual YAML, properly formatted.