I started using the energy dashboard. and one of the mail components that use powe is my server.
i found the intergration page for ILO (HP Integrated Lights-Out (ILO) - Home Assistant)
For the temperature there is a template availible.
However for the power reading not.
i guess it is so obvious that they didn’t mention it.
This isn’t exactly usefull for me.
i am only intrested in the present_power_reading.
So question 1. how do i create a template that will extract only the value?
question 2. how i do add an “last reset” so it will be availible in the energy dashboard?
However if i try to add
state_class (& device_class) i got an error.
Invalid config for [sensor.hp_ilo]: [state_class] is an invalid option for [sensor.hp_ilo]. Check: sensor.hp_ilo->monitored_variables->1->state_class. (See ?, line ?).
so now i have an nice graph. however the energydashboard ignores it.
still not able to see it in the energy dashboard.
also the value is “117 Watts” instead of “117” (the unit is included in the value) which gives an output of “117 Watts Wh”
Tried value_template: "{{ (ilo_data.power_supply_summary['present_power_reading']).split(" ")[0] }}"
however it gave me an error expected <block end>, but found <scalar>
with googleing the error i didn’t find anything close to my situation.
and as always, the devil is in the details.
there was a " in the split. instead of an ’ value_template: "{{ (ilo_data.power_supply_summary['present_power_reading']).split(' ')[0] }}"
Hi thanks for your work.
I reused your template for getting the power draw of the server. Please be advise that power (in W) measurement do not show up on the Energy Dashboard, there is a way around that. Since the value seems to be precise and updated frequently enough we can calculate the integral thus getting te server’s and energy (in kW/h) consumption see Integration - Riemann sum integral - Home Assistant
So my setup is
while using the “W” is not supported.
after changing back to “wh” the energy dashboard didn’t gave an error. but still no result.
I used the “helper” but as you can see in the above screenshot that wasn’t verry useful.any suggestions.