Last active
April 22, 2026 15:32
-
-
Save TitoTB/f87f5c95b98c07896d85af50d4f2adf7 to your computer and use it in GitHub Desktop.
This blueprint allows you to sync any To-Do List with your Improved Shopping List!.
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 characters
| blueprint: | |
| name: đź›’Improved Shopping List Gateway | |
| description: 'This blueprint allows you to sync any To-Do List with your Improved Shopping List!. Full guide and more functionalities in https://aguacatec.es/domotizar-tu-lista-de-la-compra-4-0/' | |
| source_url: https://gist.github.com/TitoTB/f87f5c95b98c07896d85af50d4f2adf7 | |
| domain: automation | |
| input: | |
| shopping_list: | |
| name: Shopping List | |
| description: 'Select the ToDo entity of your main Shopping List' | |
| selector: | |
| entity: | |
| domain: | |
| - todo | |
| multiple: false | |
| sync_list: | |
| name: Gateway ToDo list | |
| description: 'Select the ToDo entity you want to sync with your main Shopping List' | |
| selector: | |
| entity: | |
| domain: | |
| - todo | |
| multiple: false | |
| triggers: | |
| - trigger: state | |
| entity_id: !input sync_list | |
| conditions: [] | |
| actions: | |
| - variables: | |
| shopping_list: !input 'shopping_list' | |
| sync_list: !input 'sync_list' | |
| - action: todo.get_items | |
| metadata: {} | |
| data: | |
| status: needs_action | |
| response_variable: new_items | |
| target: | |
| entity_id: !input sync_list | |
| - repeat: | |
| for_each: "{{ new_items[sync_list]['items'] }}" | |
| sequence: | |
| - action: todo.add_item | |
| target: | |
| entity_id: !input shopping_list | |
| data: | |
| item: "{{ repeat.item.summary }}" | |
| - action: todo.remove_item | |
| data: | |
| item: "{{ repeat.item.summary }}" | |
| target: | |
| entity_id: !input sync_list | |
| mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment