This commit is contained in:
Michael Lehmann
2025-02-18 22:55:03 +01:00
parent f34cf6da8b
commit 5399bc9a8a
8 changed files with 181 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ func TurnOn(ip string, port string, temperature int, dimming int) {
panic("Unable to connect to light bulp!")
}
c.Write([]byte(`{"method": "setPilot", "params":{"state": true, "temp": temperature, "dimming": dimming}}`))
c.Write([]byte(`{"method": "setPilot", "params":{"state": true, "temp": 2700, "dimming": 100}}`))
}
func TurnOff(ip string, port string) {