I’m trying to monitor a HP Proliant DL380 G9 Server with Home Assistant and have hit some strange issues.
I have this fragment in my XAML configuration:
- platform: hp_ilo
host: !secret hpILOIP
username: !secret hpILOUsername
password: !secret hpILOPassword
monitored_variables:
- name: CPU fanspeed
sensor_type: server_health
unit_of_measurement: '%'
value_template: '{{ ilo_data.fans["Fan 1"].speed[0] }}'
- name: Inlet temperature
sensor_type: server_health
unit_of_measurement: '°C'
value_template: '{{ ilo_data.temperature["01-Inlet Ambient"].currentreading[0] }}'
- name: Server Health
sensor_type: server_health
- name: Power Status
sensor_type: server_power_status
- name: Power Readings
sensor_type: server_power_readings
All of the sensors get created apart from the main Server Health one. Because of that I don’t get the JSON data being returned so I have no means by which I can determine how to build other sensors.
I have no idea if it’s possible but ideally i’d like to monitor the health of the logical volume on the RAID array and/or the health state of the disks. In essence I want to have some visual cue or alert if the fault tolerance of the RAID array is degraded.
Is anyone able to offer any ideas on this one please?
I know this was posted a long time ago, but it helped me get my power reading working for my DL380P G8, when nothing else seemed to work. For those with one of these servers, the code for the inlet temperature needs to be: