Integrating FreeNAS with Home Assistant

FreeNAS is a popular free and open-source network-attached storage (NAS) operating system. While FreeNAS does have an interface of its own, it is nice to be able to see how much free space you have from the Home Assistant dashboard. Using the two guides below you can set up your Home Assistant to read FreeNAS statistics and messages and to control the system itself.

Unfortunately, I don’t run FreeNAS on my NAS any more, so there won’t be any more guides added in the foreseeable future. A commenter has kindly informed me that the code in my articles still works.

TrueNAS Core statistics and messages in Home Assistant

The FreeNAS dashboard has evolved into a nice little visual hub for viewing important data but as I have Home Assistant open on my desktop a lot more often than the FreeNAS web interface I wanted to import and display that data in my UI.

Controlling a FreeNAS using Home Assistant

For this to work I’m using the FreeNAS API to trigger a system shutdown from Home Assistant. Turning on the FreeNAS is way easier thanks to Wake on LAN (WOL) integration in Home Assistant.