Skip to content

Commit

Permalink
feat: added Thunderbolt power and current sensors (#2350)
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Jan 25, 2025
1 parent 262d4b2 commit cdfde35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Modules/Sensors/values.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand 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])
]

Expand Down

0 comments on commit cdfde35

Please sign in to comment.