add-to-do-item.yaml 623 B

12345678910111213141516171819202122232425262728293031
  1. blueprint:
  2. name: Add to-do
  3. description: A script that adds an item to a to-do list.
  4. domain: script
  5. input:
  6. to_do_list:
  7. selector:
  8. entity:
  9. domain:
  10. - todo
  11. multiple: false
  12. name: To-do list
  13. item_label:
  14. selector:
  15. text: {}
  16. default: Item
  17. name: Item label
  18. source_url: https://community.home-assistant.io/t/add-to-do-item/699193
  19. mode: queued
  20. fields:
  21. item:
  22. selector:
  23. text:
  24. name: !input item_label
  25. required: true
  26. sequence:
  27. - service: todo.add_item
  28. data:
  29. item: '{{ item }}'
  30. target:
  31. entity_id: !input to_do_list