notify_user.yaml 420 B

123456789101112131415161718192021222324
  1. blueprint:
  2. domain: script
  3. name: Notify user
  4. description: >-
  5. Notify a user
  6. input:
  7. notify_device:
  8. name: "Device to notify"
  9. selector:
  10. entity:
  11. integration: notify
  12. default: []
  13. mode: parallel
  14. variables:
  15. device: !input notify_device
  16. data: "{{ {} }}"
  17. sequence:
  18. - alias: "Send notification"
  19. service: "{{ device }}"
  20. data: >-
  21. "{{ data if defined else {} }}"