diff options
| author | xengineering <me@xengineering.eu> | 2026-03-23 20:53:40 +0100 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2026-03-25 21:09:11 +0100 |
| commit | 1bd2833f81379f25b29ab5d929f14e51700fa471 (patch) | |
| tree | 130facd6bf6f328a1b5f716082524c0b9a7b1fe2 /main.go | |
| parent | 64f8cf0630ce51349b94aca2f91617d373ee800d (diff) | |
| download | sia-server-1bd2833f81379f25b29ab5d929f14e51700fa471.tar sia-server-1bd2833f81379f25b29ab5d929f14e51700fa471.tar.zst sia-server-1bd2833f81379f25b29ab5d929f14e51700fa471.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.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) } |
