notify_device.yaml 1.0 KB

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