Learning and Help with setup of automation for freezer temperature alert

I’m relatively new to HA and would like to create and understand more about automatons. I have a temperarure sensor with a probe on a wire ( SONOFF SNZB-02LD).

To that end I will proposed an automation to send me an alert when the freezer temperature is above -14. Here is my proposed yaml. Please critique.

alias: Freezdr Alarm 2
description: “”
triggers:

  • trigger: state
    entity_id:
    • sensor.sonoff_snzb_02ld
      conditions:
      actions:
  • choose:
    • conditions:
      • type: is_temperature
        condition: device
        device_id: 0efe2f110d5c33efb73d587e49e57121
        entity_id: 661ef3f0e7a641a5363d92d656d7cf73
        domain: sensor
        above: -14
        sequence:
      • action: notify.notifier_leak
        metadata: {}
        data:
        message: Feeezer too warm, above -14 C
        title: Feeezer too warm, above -14 C
        target: [email protected]
    • conditions:
      • type: is_temperature
        condition: device
        device_id: 0efe2f110d5c33efb73d587e49e57121
        entity_id: 661ef3f0e7a641a5363d92d656d7cf73
        domain: sensor
        below: -14
        sequence:
      • action: notify.notifier_leak
        metadata: {}
        data:
        message: Feeezer below -15 C, ok
        title: Feeezer below -15 C, ok
        target: [email protected]
        mode: single

Also it is not clear if this code will send multiple alerts or only one when it crossed the temperature threshold.
Note this is for learning as well as actual implementation. Thanks…RDK

It will send multiple because the trigger you are using will fire on every state change.

OK, but does that trigger happen for any temperature changes or only those which occur affecting the boundary conditions? for example, if the temperature goes from -18 to -19 C or from -13 to -14 C will that trigger an alert?
Thanks, I’m learning…RDK

Yes. Also, if the sensor has any attributes that change, those too will cause the trigger to fire.

Automation Triggers - State

Yes, based on the config shared above, you will be getting constant notifications… probably a lot more than you actually want.

It will trigger, but the condition will cause it to not send a notification.
That’s what I believe. It’s hard to read your code since it’s not formatted correctly

Folks…Thanks a lot!!! With your replies and the references, I’m going to be busy for a while. And, I already know and understand that the automation I posted in my question will not work the way I want. I guess I could your the “Alert” integration, but for now I want to understand the technology. …RDK