Hi everyone. I am new to this forum and try to learn how to use HA that btw is fantastic!
Among other things I was trying to integrate some sensors info of my Supermicro server in HA but I did see anything concerning this topic.
I am running HA in VM generate with python3 venv on a Linux Mint VM mounted on ESXi on a Supermicro hardware.
I just discovered that with this command I am able to read all sensors of my motherboard:
ipmitool -I lanplus -H -U -P sdr elist full
Where
IPADDR is the IP of my Supermicro IPMI lan
User the user of the Supermicro server
Pswrd the password of the Supermicro server
And I get something like this:
CPU Temp | 01h | ok | 3.1 | 70 degrees C
PCH Temp | 0Ah | ok | 7.3 | 57 degrees C
System Temp | 0Bh | ok | 7.1 | 51 degrees C
Peripheral Temp | 0Ch | ok | 7.2 | 57 degrees C
VcpuVRM Temp | 10h | ok | 8.1 | 78 degrees C
DIMMA1 Temp | B0h | ok | 32.64 | 49 degrees C
DIMMB1 Temp | B4h | ok | 32.68 | 51 degrees C
FAN1 | 41h | ok | 29.1 | 5200 RPM
FAN2 | 42h | ok | 29.2 | 7400 RPM
FAN3 | 43h | ok | 29.3 | 5300 RPM
12V | 30h | ok | 7.17 | 11.81 Volts
5VCC | 31h | ok | 7.33 | 4.95 Volts
3.3VCC | 32h | ok | 7.32 | 3.28 Volts
VBAT | 33h | ok | 7.18 | 3.18 Volts
VCPU | 34h | ok | 3.2 | 1.28 Volts
P1V2_VDDQ | 35h | ok | 32.1 | 1.21 Volts
P5V_DUAL | 38h | ok | 7.15 | 4.97 Volts
3.3VSB | 39h | ok | 7.12 | 3.35 Volts
PVCC_VCCSA | 3Ch | ok | 7.21 | 1.05 Volts
P1V2_STBY | 3Dh | ok | 7.22 | 1.27 Volts
VPCH 1.0V | 3Eh | ok | 7.5 | 1 Volts
Chassis Intru | AAh | ok | 23.1 |
Fantastic! Really
Now, does anybody have a clue on how to pass this info to HA??
Thanks for the answer…
I saw that option, but I am absolutely not sure about how to integrate it…
And… I found pretty strange nobody is using IPMI with HA…
If you have python experience you could write a IPMI (custom) component. There is python ipmi library that you could use. https://github.com/kontron/python-ipmi
thanks guys!
I reached this result as suggested by nickrout:
ipmitool -I lanplus -H 192.168.2.97 -U ADMIN -P ADMIN sdr entity 8.1
with this output:
VcpuVRM Temp | 10h | ok | 8.1 | 52 degrees C
but
i am not able to just take the number of the temp: 52.
the template i am using:
value_template: ‘{{value | truncate (20) | multiply(0.001) | round(1) }}’
is giving me this result:
CPU Temperature ‘VcpuVRM Temp …’ °C
that means that i am able to truncate some part of the result but I cannot get what i want… the number of the temperature!!!
Any idea on how to do it? do I need to pass through a file?
@hthiery: I am really NOT familiar at all with python ipmi library… i could try… does it work also form extracting ipmi value from another server different from the one in which i run HA?
I think is going to recognize it because i took 3 characters and the value is a number… actually I ask myself the same question… but I will test it and let you know…
Hello all, I know this is a old thread but I am not able to get ipmitool running through YAML. It works if I download it via apk and run in a terminal or SSH to the addon, not core. I read that Home Assistant runs in it own docker but I do not see where I can load the ipmitool so that it can run with automation. I get command not found in the server logs.
Thanks for anyone still out there and has this working.
When I try to add a sensor using the command_line platform it does not work. in the logs it says command not found. If I run the same command from a normal ssh or terminal session it works fine.
Trying now to see if I can call a script and pull the value into HA.