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

Toml configuration #64

Open
Nekmo opened this issue Jul 18, 2018 · 0 comments
Open

Toml configuration #64

Nekmo opened this issue Jul 18, 2018 · 0 comments
Assignees
Milestone

Comments

@Nekmo
Copy link
Owner

Nekmo commented Jul 18, 2018

[[devices]]
mac = "0C:47:C9:98:4A:12"
name = "My button name"
  [[devices.actions]]
  action = "cmd"
  command = "ls"
  [[devices.actions]]
  action = "send-telegram"
  condition = "success"

Toggle example:

[[devices]]
mac = "0C:47:C9:98:4A:12"
name = "My button name"
  [[devices.actions]]
  action = "cmd"
  command = "ls"
  set-state = "on"
  condition = "state != 'on'"
  [[devices.actions]]
  action = "send-telegram"
  set-state = "off"
  condition = "state == 'on'"
@Nekmo Nekmo added this to the v2.0.0 milestone Jul 18, 2018
@Nekmo Nekmo self-assigned this Jul 18, 2018
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