Fix low battery automation
This commit is contained in:
parent
7dc824dfae
commit
6269c1a5e4
@ -3,13 +3,21 @@
|
|||||||
mode: single
|
mode: single
|
||||||
trigger:
|
trigger:
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
below: 20
|
below: 15
|
||||||
|
for:
|
||||||
|
hours: 0
|
||||||
|
minutes: 1
|
||||||
|
seconds: 0
|
||||||
entity_id:
|
entity_id:
|
||||||
{% for entity in entities %}
|
{% for entity in entities %}
|
||||||
- {{ entity }}
|
- {{ entity }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
- platform: numeric_state
|
- platform: numeric_state
|
||||||
below: 10
|
below: 10
|
||||||
|
for:
|
||||||
|
hours: 0
|
||||||
|
minutes: 1
|
||||||
|
seconds: 0
|
||||||
entity_id:
|
entity_id:
|
||||||
{% for entity in entities %}
|
{% for entity in entities %}
|
||||||
- {{ entity }}
|
- {{ entity }}
|
||||||
@ -19,4 +27,4 @@
|
|||||||
data:
|
data:
|
||||||
title: "Low battery"
|
title: "Low battery"
|
||||||
message: >
|
message: >
|
||||||
{% raw %}{{ state_attr(trigger.entity_id, 'name_by_user') }} has low battery {{ states(trigger.entity_id) }}% {% endraw %}
|
{% raw %}{{ device_attr(trigger.entity_id, 'name_by_user') }} has low battery {{ states(trigger.entity_id) }}% {% endraw %}
|
||||||
|
Loading…
Reference in New Issue
Block a user