summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-03-26 21:02:20 +0100
committerxengineering <me@xengineering.eu>2026-03-26 21:34:16 +0100
commit0ec5e0034891075ca0c70c6d29e20442c8ddb46e (patch)
treeffe261f4141c823bb6d345e6e22e12ec630b8ae5 /main.go
parent443ba52ab3f49a28e8874ebcb5476e36c3defb4c (diff)
downloadsia-server-0ec5e0034891075ca0c70c6d29e20442c8ddb46e.tar
sia-server-0ec5e0034891075ca0c70c6d29e20442c8ddb46e.tar.zst
sia-server-0ec5e0034891075ca0c70c6d29e20442c8ddb46e.zip
Add Shelly / TP-Link device discovery
This announces Shelly and TP-Link devices with an empty MQTT message. This makes it possible that a client can display the available devices.
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 3194359..ef59574 100644
--- a/main.go
+++ b/main.go
@@ -24,8 +24,8 @@ func main() {
go MQTTRun(config.MQTT, tx, coverMovement, plugAction)
go HomematicRun(config.Homematic, tx)
- go ShellyRun(config.Shelly, coverMovement)
- go TPLinkRun(config.TPLink, plugAction)
+ go ShellyRun(config.Shelly, tx, coverMovement)
+ go TPLinkRun(config.TPLink, tx, plugAction)
Await(syscall.SIGTERM, syscall.SIGINT)
}