notify_device.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Require: https://github.com/jmgiaever/home-assistant-blueprints/blob/master/script/notify_user.yaml
  2. script:
  3. notify_device:
  4. alias: Notify device
  5. fields:
  6. notify_device:
  7. name: "Device notify service"
  8. description: "Device service, e.g notify.mobile_app_x"
  9. selector:
  10. object:
  11. data:
  12. name: Notification data
  13. description: "Notification data, same as for notify-services"
  14. selector:
  15. object:
  16. action_scripts:
  17. name: Action scripts
  18. description: >-
  19. See blueprint
  20. selector:
  21. object:
  22. default: {}
  23. timeout:
  24. name: "Timeout"
  25. description: >-
  26. Timeout before clearing event and stop waiting. 0 equals to never.
  27. Respects «Days» too in YAML mode.
  28. selector:
  29. duration:
  30. mode: parallel
  31. max: 200
  32. use_blueprint:
  33. path: notify_user.yaml
  34. input:
  35. notify_device: "{{ notify_device }}"
  36. timeout: "{{ timeout if timeout is defined else 0 }}"
  37. data: "{{ data }}"
  38. action_scripts: "{{ action_scripts if action_scripts is defined else {} }}"