From 115bb5d7f617dd443120b546c39e8a9e2e37ef85 Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sat, 13 Jun 2020 20:14:31 -0700 Subject: [PATCH] add udm temp sensors --- core/unifi/udm.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/unifi/udm.go b/core/unifi/udm.go index 49727256..1b406e54 100644 --- a/core/unifi/udm.go +++ b/core/unifi/udm.go @@ -69,8 +69,12 @@ type UDM struct { MaxMirrorSessions FlexInt `json:"max_mirror_sessions"` MaxAggregateSessions FlexInt `json:"max_aggregate_sessions"` } `json:"switch_caps"` - HasFan FlexBool `json:"has_fan"` - HasTemperature FlexBool `json:"has_temperature"` + HasFan FlexBool `json:"has_fan"` + Temperatures []struct { + Name string `json:"name"` + Type string `json:"type"` + Value float64 `json:"value"` + } `json:"temperatures"` RulesetInterfaces interface{} `json:"ruleset_interfaces"` /* struct { Br0 string `json:"br0"`