Created
October 22, 2026 13:24
-
-
Save peyanski/8920cf8297c183856a61ccc9becd4301 to your computer and use it in GitHub Desktop.
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
| alias: 'Shopping list: send to Kiril and Jerry by Assist' | |
| description: Say 'send me the shopping list' to notify both phones. | |
| triggers: | |
| - trigger: conversation | |
| command: | |
| - send me the shopping list | |
| - send the shopping list to my phone | |
| note: | | |
| Either phrase sends the same list to BOTH predefined phones, regardless | |
| of who spoke or which Assist device heard it. Replace the Kiril-only | |
| version with this YAML in the existing automation; do not enable both | |
| versions with the same phrases or Kiril may receive duplicate pushes. | |
| Use a unique phrase if you make another automation for todo.hardware. | |
| actions: | |
| - action: todo.get_items | |
| target: | |
| entity_id: todo.shopping_list | |
| data: | |
| status: needs_action | |
| response_variable: shopping | |
| note: | | |
| Read unfinished items once for both phones. For another list, such as | |
| todo.hardware, change this entity ID and the response key below together. | |
| - variables: | |
| item_names: >- | |
| {{ shopping['todo.shopping_list']['items'] | map(attribute='summary') | | |
| list }} | |
| note: | | |
| Extract item names from the response. For todo.hardware, use | |
| shopping['todo.hardware']['items'] here to match the target above. | |
| - action: notify.mobile_app_kiril_iphone | |
| data: | |
| title: Shopping list | |
| message: |- | |
| {% if item_names | count > 0 %} | |
| To buy: {{ item_names | join(', ') }} | |
| {% else %} | |
| Nothing to buy. | |
| {% endif %} | |
| data: | |
| tag: kiril-shopping-list | |
| url: /shopping-list | |
| clickAction: /shopping-list | |
| note: | | |
| First recipient, Kiril. Change the notify action for a different phone. | |
| For another list, change title and tag (for example, kiril-hardware-list). | |
| /shopping-list opens only the native Shopping List. For todo.hardware, | |
| use its actual dashboard To-do card path in BOTH url and clickAction. | |
| - action: notify.mobile_app_jerry | |
| data: | |
| title: Shopping list | |
| message: |- | |
| {% if item_names | count > 0 %} | |
| To buy: {{ item_names | join(', ') }} | |
| {% else %} | |
| Nothing to buy. | |
| {% endif %} | |
| data: | |
| tag: jerry-shopping-list | |
| url: /shopping-list | |
| clickAction: /shopping-list | |
| note: | | |
| Second recipient, Jerry. For a different person, change this notify | |
| action and tag. To add a third phone, duplicate this whole notify step, | |
| then change its action and tag. For todo.hardware, change title and tag | |
| (for example, jerry-hardware-list) and set BOTH links to that list's | |
| actual dashboard To-do card path. Test delivery and tap on each phone. | |
| - set_conversation_response: I've sent the shopping list to both phones. | |
| note: | | |
| Speak this acknowledgement after both notify actions return. It does | |
| not prove either handset displayed the push. | |
| mode: queued | |
| max: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment