How to monitor mac cpu temps, fan speed, etc from HA?

What I did was

1. Installed iSMC

2. Wrote a flattening wrapper script to collapse the nested structure into flat Category_SensorName: value pairs (e.g. Temperature_CPU_Diode_Virtual_1), pulling quantity (clean float) over the string value.

3. Set up SSH auth

4. Wired it into HA config:

  • New command_line: !include command_line.yaml in configuration.yaml, with a command_line sensor running the SSH call every 60s, exposing the flattened values as json_attributes.

  • Added five derived template sensors in the existing templates.yaml (CPU temp, GPU temp, fan speed, CPU power, total power), each pulling via state_attr() off the raw sensor.

Open to suggestions/alternatives.