Could you copy your automation and paste it in your post as preformatted text (</> in the toolbar)? It’s difficult to see what’s going on at the moment - we need to see the spacing, which is critical in .yaml.
For example:
alias: Study IT cupboard too hot
description: >-
Sends SMS message when study IT cupboard gets too hot, measured by temperature
of NAS hard disk.
trigger:
- platform: numeric_state
entity_id: sensor.nas_drive_1_temperature
above: '32'
condition: []
action:
- service: notify.mobile
data:
message: Temperature in study IT cupboard is too high.
data:
priority: normal
- service: system_log.write
data:
message: SMS notification sent (IT cupboard too hot).
level: warning
mode: single