From ca976b11434602ab518cdc3677c3b3b8b354edde Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 23 Nov 2022 22:20:49 +0100 Subject: [PATCH] First tune to on off value for light sensor --- integration/zigbee/light_sensor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/zigbee/light_sensor.go b/integration/zigbee/light_sensor.go index f8e18a3..c18f797 100644 --- a/integration/zigbee/light_sensor.go +++ b/integration/zigbee/light_sensor.go @@ -31,9 +31,9 @@ type DarknessPayload struct { func NewLightSensor(info Info, client paho.Client) *lightSensor { l := &lightSensor{info: info} - // @TODO Two completely random values for now - l.minValue = 8000 - l.maxValue = 16000 + // First tune: 15 000 - 16 000 + l.minValue = 15000 + l.maxValue = 18000 l.timeout = time.Minute l.timer = time.NewTimer(l.timeout)