I created the following automation:
id: '1642561461207'
alias: Low batteries (ench)
description: ''
trigger:
- platform: time_pattern
minutes: '30'
condition:
- condition: template
value_template: '{{state_attr(''sensor.ench_entities'',''battery'') | length > 0 }}'
action:
- service: persistent_notification.create
data:
notification_id: ench_battery
message: >
<B>Low battery:</B><Br> {% for ent in
state_attr('sensor.ench_entities','battery') | list %} {{ ent }}<BR>
{% endfor %}
mode: single
There are currently none, so the condition evaluates to false
Executed: January 27, 2022, 12:30:04 PM
Result:
result: false
entities:
- sensor.ench_entities
In step details for the action it says:
This node was not executed and so no further trace information is available.
But yet it fires anyway and generated the notification. i’m sure i’m missing something obvious and would appreciate any assistance.
Thanks!