Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New yaml config (Amazon Dash 2.0) #71

Open
Nekmo opened this issue Aug 8, 2018 · 1 comment
Open

New yaml config (Amazon Dash 2.0) #71

Nekmo opened this issue Aug 8, 2018 · 1 comment
Assignees
Milestone

Comments

@Nekmo
Copy link
Owner

Nekmo commented Aug 8, 2018

# amazon-dash 2.0
# --------------------
settings:
  delay: 10
templates:
  - template: "default"
    context:
      title: "Amazon-dash alert"
      body: "Executed {mac} successfully"
  - template: "tg"
    context:
      body: "{mac} executed"
  - template: "other"
    pipes:
      - context: body
        pipe: join
        arguments:
          - "subject"
          - "body"
devices:
  - mac: "0C:47:C9:98:4A:12"
    name: "My button name"
    actions:
      - use: "command"
        message:
          cmd: ls
      - use: "telegram-to-nekmo"
        condition: "success"
        message: "tg"
actions:
  - component: "command"
  - component: "telegram"
    config:
      token: "..."
      to: "nekmo"
    action_as: "telegram-to-nekmo"

New "device" parameters:

  • async: run actions on parallel or not. Default: false.
  • on_error: options: retry, continue (run next action), fail.

Condition vars:

  • success
  • failure
  • complete
  • state
@Nekmo Nekmo added this to the v2.0.0 milestone Aug 8, 2018
@Nekmo Nekmo self-assigned this Aug 8, 2018
@Nekmo
Copy link
Owner Author

Nekmo commented Aug 8, 2018

AST Docs for condition:
https://www.programcreek.com/python/example/6783/ast.Compare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@Nekmo and others