summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2026-03-26 17:48:09 +0100
committerxengineering <me@xengineering.eu>2026-03-26 17:48:09 +0100
commita965777d436f3bd68686e3b33066459c7ed5a01c (patch)
tree958f4e62fa3489b7f306e243fbf78d0776a8b48d /main.go
parent4bc67b734dc8c90dd4679877e8825da32e67b7eb (diff)
parent5c7284640a6f0ddc0aa80178d5a3b91a5123b6c8 (diff)
downloadsia-server-a965777d436f3bd68686e3b33066459c7ed5a01c.tar
sia-server-a965777d436f3bd68686e3b33066459c7ed5a01c.tar.zst
sia-server-a965777d436f3bd68686e3b33066459c7ed5a01c.zip
Merge branch 'tp-link'
This adds support for the TP-Link HS100 Wi-Fi plugs.
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 1678eac..3194359 100644
--- a/main.go
+++ b/main.go
@@ -20,10 +20,12 @@ func main() {
tx := make(chan MQTTMessage)
coverMovement := NewRoute("cover/+/movement", QoS2)
+ plugAction := NewRoute("plug/+/action", QoS2)
- go MQTTRun(config.MQTT, tx, coverMovement)
+ go MQTTRun(config.MQTT, tx, coverMovement, plugAction)
go HomematicRun(config.Homematic, tx)
go ShellyRun(config.Shelly, coverMovement)
+ go TPLinkRun(config.TPLink, plugAction)
Await(syscall.SIGTERM, syscall.SIGINT)
}