summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-03-23 20:53:40 +0100
committerxengineering <me@xengineering.eu>2026-03-23 21:36:30 +0100
commit2463ce39f4aeb99e38b5d7f83d0179e9547aa3eb (patch)
tree130facd6bf6f328a1b5f716082524c0b9a7b1fe2 /main.go
parent74ddd135ebc63399d9f71b585f23ae8b97d46866 (diff)
downloadsia-server-2463ce39f4aeb99e38b5d7f83d0179e9547aa3eb.tar
sia-server-2463ce39f4aeb99e38b5d7f83d0179e9547aa3eb.tar.zst
sia-server-2463ce39f4aeb99e38b5d7f83d0179e9547aa3eb.zip
Add MQTT subscription for /cover/<id>/movement
This let's the Sia server receive cover movement commands. For now they are simply logged.
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 6a59d64..e123c83 100644
--- a/main.go
+++ b/main.go
@@ -18,10 +18,12 @@ func main() {
config := GetStartupConfig(flags.ConfigPath)
+ rx := make(chan MQTTMessage)
tx := make(chan MQTTMessage)
- go MQTTRun(config.MQTT, tx)
+ go MQTTRun(config.MQTT, rx, tx)
go HomematicRun(config.Homematic, tx)
+ go ShellyRun(config.Shelly, rx)
Await(syscall.SIGTERM, syscall.SIGINT)
}