From cdfde35d7db739334a75eaf7d6f0c98f203e68db Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sat, 25 Jan 2025 19:46:48 +0100 Subject: [PATCH] feat: added Thunderbolt power and current sensors (#2350) --- Modules/Sensors/values.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/Sensors/values.swift b/Modules/Sensors/values.swift index 2b753739..1b74c43f 100644 --- a/Modules/Sensors/values.swift +++ b/Modules/Sensors/values.swift @@ -468,6 +468,8 @@ internal let SensorsList: [Sensor] = [ Sensor(key: "ID0R", name: "DC In", group: .sensor, type: .current, platforms: Platform.all), Sensor(key: "IBAC", name: "Battery", group: .sensor, type: .current, platforms: Platform.all), Sensor(key: "IDBR", name: "Brightness", group: .sensor, type: .current, platforms: Platform.all), + Sensor(key: "IU1R", name: "Thunderbolt Left", group: .sensor, type: .current, platforms: Platform.all), + Sensor(key: "IU2R", name: "Thunderbolt Right", group: .sensor, type: .current, platforms: Platform.all), // Power Sensor(key: "PC0C", name: "CPU Core", group: .CPU, type: .power, platforms: Platform.all), @@ -493,6 +495,9 @@ internal let SensorsList: [Sensor] = [ Sensor(key: "PMTR", name: "Memory Total", group: .sensor, type: .power, platforms: Platform.all), Sensor(key: "PSTR", name: "System Total", group: .sensor, type: .power, platforms: Platform.all), + Sensor(key: "PU1R", name: "Thunderbolt Left", group: .sensor, type: .power, platforms: Platform.all), + Sensor(key: "PU2R", name: "Thunderbolt Right", group: .sensor, type: .power, platforms: Platform.all), + Sensor(key: "PDBR", name: "Power Delivery Brightness", group: .sensor, type: .power, platforms: [.m1, .m1Pro, .m1Max, .m1Ultra]) ]