byteman59
(bm05091987)
February 17, 2026, 9:08pm
1
I created an automation to send me an email when water is detected in a bathroom. I received the email. Is it possible to send email when the opposite is true, such as dry? Within the same automation?
Below is what i created using UI.
alias: Leak Detected
description: ""
triggers:
- type: moist
device_id: 83ea2ce28774b28da892d6ba6db168f8
entity_id: 80de19b099e6dc7ca4b64f332050672e
domain: binary_sensor
metadata:
secondary: false
trigger: device
conditions: []
actions:
- action: notify.mobile_app_bob_s_phone
metadata: {}
data:
message: Leak detected in upstairs bathroom
title: Water Leak
- action: email_notifier.send
data:
account: notify.email_notification_sender_1
recipients: email address
title: Leak Deteced
message: Leak detected in upstairs bathroom!
mode: single
Yes, there are several ways.
One basic option is to just add the “not_moist” version of your current trigger and to use trigger IDs to conditionally branch actions in an If/Then or Choose action.
Example Automation Configuration
alias: Leak Detected
description: ""
triggers:
- id: moist
type: moist
device_id: 83ea2ce28774b28da892d6ba6db168f8
entity_id: 80de19b099e6dc7ca4b64f332050672e
domain: binary_sensor
metadata:
secondary: false
trigger: device
- id: dry
type: not_moist
device_id: 83ea2ce28774b28da892d6ba6db168f8
entity_id: 80de19b099e6dc7ca4b64f332050672e
domain: binary_sensor
metadata:
secondary: false
trigger: device
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: moist
sequence:
- action: notify.mobile_app_bob_s_phone
metadata: {}
data:
message: Leak detected in upstairs bathroom
title: Water Leak
- action: email_notifier.send
data:
account: notify.email_notification_sender_1
recipients: email address
title: Leak Detected
message: Leak detected in upstairs bathroom!
- conditions:
- condition: trigger
id: dry
sequence:
- action: notify.mobile_app_bob_s_phone
metadata: {}
data:
message: Dryness detected in upstairs bathroom
title: Leak Sensor Dried Out
- action: email_notifier.send
data:
account: notify.email_notification_sender_1
recipients: email address
title: Leak Sensor Dried Out
message: Dryness detected in upstairs bathroom!
mode: single
But, there are many other ways to do the same thing using other types of triggers and templating to make a more concise automation.
byteman59
(bm05091987)
February 17, 2026, 9:41pm
3
Great, thank you so much. I will try and understand the logic and use it for future automation.