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
