diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2024-01-16 16:22:42 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2024-01-16 16:22:42 +0100 |
commit | 09610d64315ce3194f509f69cab01c55bd61509f (patch) | |
tree | 30001386e13dbbc9ed8ba214951901ccea33e555 /example/test | |
parent | 05f87bd5db3c2a47daa2eb24bf06f11bdf5dfd3e (diff) | |
download | automato-09610d64315ce3194f509f69cab01c55bd61509f.tar.gz |
move examples
Diffstat (limited to 'example/test')
-rw-r--r-- | example/test/actions.yml | 14 | ||||
-rw-r--r-- | example/test/endpoints.yml | 21 | ||||
-rw-r--r-- | example/test/triggers.yml | 10 |
3 files changed, 45 insertions, 0 deletions
diff --git a/example/test/actions.yml b/example/test/actions.yml new file mode 100644 index 0000000..caf6e70 --- /dev/null +++ b/example/test/actions.yml @@ -0,0 +1,14 @@ +--- +send-hello: + trigger: + - conditional: + interval: 30 + when: + - host1.user.jonas > 0 + - True + then: + - host1.notify: + msg: Hello + - host1.notify: + msg: World! + - host1.wol: {} diff --git a/example/test/endpoints.yml b/example/test/endpoints.yml new file mode 100644 index 0000000..e52cd70 --- /dev/null +++ b/example/test/endpoints.yml @@ -0,0 +1,21 @@ +host1: + info: + hostname: 'localhost' + mac: 90:1b:0e:4a:d8:1b + transports: + ssh: + class: automato.transport.SshTransport + hostname: 'localhost' + username: 'jonas' + allow_agent: True + commands: + notify: + class: automato.command.NotifyCommand + transport: ssh + wol: + class: automato.command.WakeOnLanCommand + states: + user: + class: automato.state.UserSessionState + transport: ssh + ttl: 30 diff --git a/example/test/triggers.yml b/example/test/triggers.yml new file mode 100644 index 0000000..b1b38c7 --- /dev/null +++ b/example/test/triggers.yml @@ -0,0 +1,10 @@ +conditional: + class: automato.trigger.ConditionalTrigger + +#mqtt: +# class: trigger.Mqtt +# server: asdf +# user: OwO +# +#timer: +# class: trigger.Timer |