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[LabelStateButtonEvent] = float64(sensor.State.ButtonEvent)
result[LabelStateDaylight] = sensor.State.Daylight
result[LabelStateLastUpdated] = sensor.State.LastUpdated.Unix()
result[LabelStateLastUpdatedTime] = sensor.State.LastUpdated.Time.Unix()
result[LabelStateLastUpdated] = sensor.State.LastUpdated
result[LabelStateLastUpdatedTime] = sensor.State.LastUpdated.Time
result[LabelConfigBattery] = sensor.Config.Battery
result[LabelConfigOn] = sensor.Config.On
result[LabelConfigReachable] = sensor.Config.Reachable