Help with setting up automation to send a notification when the freezer temperature goes above -18 degrees

I’m trying to create an automation for kitchen freezer.
There is a temperature sensor in it and I would like to get an notification in my iPhone when the temperature goes above -18 degrees.

Below is the code I created and it is not working. The sensor works, but no notification is sent.

Hope somebody can help, because I’m sure many must have this kind of automation.

alias: pakastimen lämpiäminen
description: Hälyttää jos pakastimen lämpötila nousee yli -18 asteen.
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.pakastimen_lampotilasensori_temperature
    above: -18
    value_template: "  "
conditions: []
actions:
  - action: notify.mobile_app_iphone_marko
    data:
      message: The freezer is getting warmer. Do something, man!
      title: The freezer alert
mode: single

Did you just accidentally paste it twice here or is that your actual automation configuration?

If you are not actually using a value_template, erase that line.

In regards to the trigger, make sure you understand the concepts explained in the following:

yes, it was pasted twice by mistake.

The automation itself is not like that.

I will read topic you posted thoroughly. Thanks.