Skip to content

Instantly share code, notes, and snippets.

@dantz
Created February 8, 2026 22:06
Show Gist options
  • Select an option

  • Save dantz/e05ff5e2c0f8807f7736723d5a86dc10 to your computer and use it in GitHub Desktop.

Select an option

Save dantz/e05ff5e2c0f8807f7736723d5a86dc10 to your computer and use it in GitHub Desktop.
cookidoo zu bring
alias: Bewege Cookidoo zu Bring!
description: Kopiere Cookidoo-Einträge zu Bring! und markiere sie als erledigt
triggers:
- entity_id:
- todo.cookidoo_shopping_list
- todo.cookidoo_additional_purchases
trigger: state
actions:
- target:
entity_id: "{{ trigger.entity_id }}"
data:
status: needs_action
response_variable: items
action: todo.get_items
- repeat:
for_each: "{{ items['todo.' + trigger.entity_id.split('.')[1]]['items'] }}"
sequence:
- target:
entity_id: todo.wocheneinkauf
data:
item: "{{ repeat.item.summary }}"
description: "{{ repeat.item.description | default('', true) | string }}"
action: todo.add_item
- target:
entity_id: "{{ trigger.entity_id }}"
data:
item: "{{ repeat.item.summary }}"
status: completed
action: todo.update_item
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment