2023-12-16 00:46:23 +00:00
|
|
|
- id: info_low_battery
|
|
|
|
alias: '[INFO] Low battery'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
2023-12-16 14:38:36 +00:00
|
|
|
below: 15
|
|
|
|
for:
|
|
|
|
hours: 0
|
|
|
|
minutes: 1
|
|
|
|
seconds: 0
|
2023-12-16 00:46:23 +00:00
|
|
|
entity_id:
|
|
|
|
{% for entity in entities %}
|
|
|
|
- {{ entity }}
|
|
|
|
{% endfor %}
|
|
|
|
- platform: numeric_state
|
|
|
|
below: 10
|
2023-12-16 14:38:36 +00:00
|
|
|
for:
|
|
|
|
hours: 0
|
|
|
|
minutes: 1
|
|
|
|
seconds: 0
|
2023-12-16 00:46:23 +00:00
|
|
|
entity_id:
|
|
|
|
{% for entity in entities %}
|
|
|
|
- {{ entity }}
|
|
|
|
{% endfor %}
|
|
|
|
action:
|
|
|
|
- service: notify.mobile_app_iphone
|
|
|
|
data:
|
|
|
|
title: "Low battery"
|
|
|
|
message: >
|
2023-12-16 14:38:36 +00:00
|
|
|
{% raw %}{{ device_attr(trigger.entity_id, 'name_by_user') }} has low battery {{ states(trigger.entity_id) }}% {% endraw %}
|