Add to-do item

This blueprint allows you to create a script to add an item to a to-do list that is pre-configured to a specific to-do list.

It is meant to be added to your dashboard. When activated, it will ask the user for the item to add.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

This blueprint requires Home Assistant 2024.3 or later.

blueprint:
  name: Add to-do
  description: >-
    A script that adds an item to a to-do list.
  domain: script
  input:
    to_do_list:
      selector:
        entity:
          domain: todo
      name: To-do list
    item_label:
      selector:
        text:
      default: Item
      name: Item label

mode: queued

fields:
  item:
    selector:
      text:
    name: !input item_label
    required: true

sequence:
- service: todo.add_item
  data:
    item: "{{ item }}"
  target:
    entity_id: !input to_do_list