This repository has been archived on 2023-08-29. You can view files and clone it, but cannot push or open issues or pull requests.
automation/automation/dark.go
Dreaded_X 00f623ab45
All checks were successful
continuous-integration/drone/push Build is passing
Actally enable setting the flag on the hue bridge
2022-11-23 22:33:13 +01:00

15 lines
321 B
Go

package automation
import (
"automation/integration/hue"
"automation/integration/zigbee"
paho "github.com/eclipse/paho.mqtt.golang"
)
func darknessAutomation(client paho.Client, hue *hue.Hue) {
on(client, "automation/darkness/living", func(message zigbee.DarknessPayload) {
hue.SetFlag(43, message.IsDark)
})
}