I seem to remember that you’ll get an “Unknown” if there is no message or alert level. Maybe you can set a condition that if the others were able to pull data and Alert message is null, then make it “Ok.” or something.
In order to get your UPS status, you’ll probably have to go the SNMP sensor route and create a custom SNMP sensor. I would also like to set this up for the same reason. I just haven’t gotten around to playing with SNMP yet. With the API you can access your UPS settings, but it doesn’t look like you can get the current status: http://api.freenas.org/resources/services.html#ups
I got it to work. I was missing “object” in the value_template. But in the process I forced an alert by setting the disk temp low. I have the alert showing now but it will not clear even when I reset my disk temp alert and clear it from the Freenas UI. Restarted HA and it still holds.
It could either be your scan_interval or FreeNAS could still be reporting it in the API. Try getting the message from your browser and see what FreeNAS is reporting. http://hostipaddress/api/v1.0/system/alert/?format=json
On another note did you get the stats from pfSense working?
I installed a crazy custom API package to get stats from pfSense ([link ](https://community.home-assistant.io/t/pfsense-stat-monitor/61070)). SNMP may have been better?
Her you go. Its pretty easy. Just copy and paste the sensors below and paste them in your sensor.yaml file.
Replace the IP of mine that is 192.168.1.9 with the IP of your Freenas. Also put in your user name and password on each sensor.
I would also like to know, please!
Is this data coming from SNMP probe? Or is the FN11.x API providing a richer data set that includes SMART data?
I’m still on FN 9.10 (as I was too scared to upgrade after the coral debacle) and I can see that the API for disks is not returning SMART parameters.
I think that OP used a command line sensor; however, you can get the values over SNMP too.
Have a look at my post 35 above. You can extend SNMP with the result of any script that you run on the FN.
For example: in order to get temperature of each drive use (replace x with 0 or any drive that you have) smartctl -A /dev/adax it will give you something like below. Then, to extract temperature only, use
smartctl -A /dev/ada0 | grep -i airflow_temperature | awk '{print $10}' and save this as a script on FN.
Hey guys! Could you please share your config? I got HDD and CPU temperature sensors working, but I’m having trouble setting up other sensors, such as system load. I don’t know how to ‘ask’ that of my system over SSH. Thanks!
You need a little more than my yaml files (such as setting up ssh). Believe me, follow the link in post 52 and you’ll see I’ve documented the approach and given code examples. Nothing was held back. I don’t want to duplicate that work, but will be happy to answer specific questions.