Hi,
I need some help with this condition template. I need it to return when { task_old.task_title == ‘task’}.
- id: '5166189215216854'
alias: DALS vacuum bedroom done
description: ''
trigger:
- entity_id: sensor.gtasks_dagpass
platform: state
condition:
condition: template
value_template: >
{% for task_old in trigger.from_state.attributes['tasks'] %}
{% if task_old not in trigger.to_state.attributes['tasks'] %}
{ task_old.task_title == 'task'}
{% endif %}
{% endfor %}
action:
- service: notify.pushbullet
data_template:
message: >
{% for task_old in trigger.from_state.attributes['tasks'] %}
{% if task_old not in trigger.to_state.attributes['tasks'] %}
{{ task_old.task_title }}
{% endif %}
{% endfor %}
title: Hass.io