I have a notification working now when an item is added to a list… but its triggering on ANY list… i’d like to limit it to a single list…
is anyone able to help me modify this automation to only trigger when an item is added to a list called “todo”?
alias: List Notification
description: ""
trigger:
- platform: event
event_type: call_service
event_data:
domain: todo
service: add_item
variables:
list_name: >
{{ state_attr((trigger.event.data.service_data.entity_id)[0],
'friendly_name') }}
item: "{{ trigger.event.data.service_data.item | title }}"
condition: []
action:
- service: notify.pushover
metadata: {}
data:
message: "{{item}} has been added to the {{list_name}} list"
title: List Notification
mode: single
I’m pretty sure it’s a condition i need but i just can’t figure it out…