-
-
Save davosian/de4ec1a1299fa3348b08af4cd1e75d28 to your computer and use it in GitHub Desktop.
Revisions
-
andrew-codechimp created this gist
Mar 9, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,38 @@ alias: Add unique to-do mode: single icon: mdi:clipboard-list sequence: - service: todo.get_items target: entity_id: "{{ list }}" data: status: needs_action response_variable: mylist - if: - condition: template value_template: >- {{ mylist[list]['items']|selectattr('summary','search',item)|list|count == 0 }} then: - service: todo.add_item metadata: {} data: item: "{{ item }}" target: entity_id: "{{ list }}" fields: item: selector: text: null name: Item description: The to-do item to add required: true list: selector: entity: filter: - domain: todo name: List required: true description: The to-do list