From 3e4f4266efe7deea0fce2291950f9674bbacdc83 Mon Sep 17 00:00:00 2001 From: Falko Richter Date: Wed, 10 Jul 2024 13:30:44 +0200 Subject: [PATCH] tasmota --- README.md | 10 +++++++++- config/bffh/bffh.dhall | 24 +++++++++++++++++------- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e7bbe31..205ffc9 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,12 @@ open questions: * shoudl I change the cert? * how do I validate the server is working? * sample requests? - * what to expect on port `59661`? \ No newline at end of file + * what to expect on port `59661`? + + +# setup tasmota +``` +cd adapters +git clone https://gitlab.com/fabinfra/fabaccess/actors/tasmota.git +chmod +x tasmota/main.py +``` \ No newline at end of file diff --git a/config/bffh/bffh.dhall b/config/bffh/bffh.dhall index a271283..f72c652 100644 --- a/config/bffh/bffh.dhall +++ b/config/bffh/bffh.dhall @@ -285,18 +285,28 @@ actors = { - tasmota_1 = - { - module = "Shelly", - params = + tasmota_8365AF = + { + module = "Process", + params = { - topic = "tasmota_8365AF" + cmd = "/usr/local/lib/bffh/adapters/tasmota/main.py", + args = "--host mqtt --tasmota 8365AF" } - } + }, + tasmota_8352F4 = + { + module = "Process", + params = + { + cmd = "/usr/local/lib/bffh/adapters/tasmota/main.py", + args = "--host mqtt --tasmota 8352F4" + } + }, }, actor_connections = [ - { machine = "MachineA1", actor = "tasmota_1" }, + { machine = "MachineA1", actor = "tasmota_8365AF" }, ] : List { machine : Text, actor : Text }, initiators = {=},