diff --git a/hue/hue.go b/hue/hue.go index 08fbd74..6c07b57 100644 --- a/hue/hue.go +++ b/hue/hue.go @@ -51,6 +51,14 @@ func (exporter *Exporter) InitMetrics() (metrics []*metric.Metric) { Labels: []string{LabelName, LabelIndex, LabelType, LabelModelID, LabelManufacturerName, LabelSWVersion, LabelUniqueID, LabelStateOn, LabelStateAlert, LabelStateBri, LabelStateCT, LabelStateReachable, LabelStateSaturation}, }) + metrics = append(metrics, &metric.Metric{ + HueType: TypeLight, + FqName: "hue_light_state", + Help: "light status (1=ON, 0=OFF)", + Labels: []string{LabelName, LabelIndex, LabelType, LabelModelID, LabelManufacturerName, LabelSWVersion, LabelUniqueID, LabelStateOn}, + ResultKey: LabelStateOn, + }) + metrics = append(metrics, &metric.Metric{ HueType: TypeSensor, FqName: "hue_sensor_info",