42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
blueprint:
|
|||
|
|
name: Litter level - low notification
|
||
|
|
description: Notify once after a numeric litter level stays at or below its threshold for two minutes. Refilling above the threshold rearms the alert.
|
||
|
|
domain: automation
|
||
|
|
input:
|
||
|
|
litter_sensor:
|
||
|
|
name: Litter level sensor
|
||
|
|
selector:
|
||
|
|
entity:
|
||
|
|
domain: sensor
|
||
|
|
threshold:
|
||
|
|
name: Low level threshold (inclusive)
|
||
|
|
default: 65
|
||
|
|
selector:
|
||
|
|
number:
|
||
|
|
min: 0
|
||
|
|
max: 100
|
||
|
|
title:
|
||
|
|
name: Notification title
|
||
|
|
selector:
|
||
|
|
text: {}
|
||
|
|
message:
|
||
|
|
name: Notification message
|
||
|
|
selector:
|
||
|
|
text: {}
|
||
|
|
trigger_variables:
|
||
|
|
litter_sensor: !input litter_sensor
|
||
|
|
threshold: !input threshold
|
||
|
|
triggers:
|
||
|
|
- trigger: template
|
||
|
|
value_template: >-
|
||
|
|
{{ is_number(states(litter_sensor))
|
||
|
|
and states(litter_sensor) | float(101) <= threshold | float(65) }}
|
||
|
|
for: '00:02:00'
|
||
|
|
conditions: []
|
||
|
|
actions:
|
||
|
|
- action: notify.notify_events_cats
|
||
|
|
data:
|
||
|
|
title: !input title
|
||
|
|
message: !input message
|
||
|
|
mode: single
|