I’ll take your word for it that you syntax is OK.
I’ll also have to assume that you have tested your notification system, and that it works.
I can tell you that you a ‘back-tick’ character at the end of your quotes ‘on’ and ‘off’ in both automations.
If you have this character in your actual yaml files, that will cause the automations to fail, (but also causes the config to fail the startup tests.
I can tell you that I copied your automation into my test system, and once I fixed the formatting, and fixed the back-tic issues, the automation worked as expected. I used persistent notification instead of notify, because I don’t have any notify components set up in my test system. Here is my modified code:
- alias: llegada test
trigger:
platform: state
entity_id: input_boolean.attic_fan
from: 'on'
to: 'off'
action:
service: persistent_notification.create
data:
message: "test fired"
title: "test"