This commit is contained in:
aexel90 2020-12-28 10:16:22 +01:00
parent a0e0927d04
commit 0f963c3012

View file

@ -126,8 +126,8 @@ func collectSensors(bridge *hue.Bridge) (sensorData []map[string]interface{}, er
result[LabelUniqueID] = sensor.UniqueID result[LabelUniqueID] = sensor.UniqueID
result[LabelStateButtonEvent] = float64(sensor.State.ButtonEvent) result[LabelStateButtonEvent] = float64(sensor.State.ButtonEvent)
result[LabelStateDaylight] = sensor.State.Daylight result[LabelStateDaylight] = sensor.State.Daylight
result[LabelStateLastUpdated] = sensor.State.LastUpdated.Unix() result[LabelStateLastUpdated] = sensor.State.LastUpdated
result[LabelStateLastUpdatedTime] = sensor.State.LastUpdated.Time.Unix() result[LabelStateLastUpdatedTime] = sensor.State.LastUpdated.Time
result[LabelConfigBattery] = sensor.Config.Battery result[LabelConfigBattery] = sensor.Config.Battery
result[LabelConfigOn] = sensor.Config.On result[LabelConfigOn] = sensor.Config.On
result[LabelConfigReachable] = sensor.Config.Reachable result[LabelConfigReachable] = sensor.Config.Reachable