light status metric
This commit is contained in:
parent
b7b33182b7
commit
f351bc49de
1 changed files with 8 additions and 0 deletions
|
@ -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},
|
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{
|
metrics = append(metrics, &metric.Metric{
|
||||||
HueType: TypeSensor,
|
HueType: TypeSensor,
|
||||||
FqName: "hue_sensor_info",
|
FqName: "hue_sensor_info",
|
||||||
|
|
Loading…
Reference in a new issue