Problem with fan automation

This is very hard to help you with it formatted like this.
Can you edit it as described in the FAQ to make it easier to understand?
How to help us help you - or How to ask a good question.
Here’s how it should be formatted:
Persistent Notification - Home Assistant.