Learning in progress!
I’ve been thinking that creating a “plugin” is incorrect when used in the context of FreeNAS. Traditionally a plugin in FreeNAS is installed and managed (ie updates) using the web GUI of FreeNAS. When it’s time for the application (in this case HA for example) to update. I, as the plugin creator, would somehow update my “plugin” which would intern allow user to update HA using the “update plugin” in FreeNAS GUI. This is not gonna work that way. This unofficial plugin is safe to use. However you should consider this just an easy install method. If you plan to move forward with this any updates to Home Assistant or App Daemon will still need to be performed manually, on the command line, just like if you installed HA following my guide.
With regards to “iocage plugin” vs “iocage jail” They are technically both jails but the “plugin” is a “somewhat specialized jail” I don’t completely understand what “specialized” implies and that discussion is beyond the scope of this forum. So what does it mean? If you already installed this and it’s setup and you can’t change it, no biggie. Just be aware again that you have to perform your own updates. Don’t expect a “plugin update” to perform updates for you.
So a plugin is still a jail but “it’s a specialized jail” blah blah blah. So here’s the bottom line. In my guide we create a “jail”… plain and simple, nothing specialized about it. I like that because it’s easy to understand. That being said I am working on a better approach that will still provide a script to install Home Assistant but it will be installed in a regular “jail”. There’s really nothing complicated happening here. I would just just like to help save some time cut down on the amount of copy and paste from various guides just to get things installed. Still I learned a lot making this “plugin” and got a few new ideas. Hopefully what’s coming next will help lots of people get Home Assistant going FreeNAS. I don’t think anybody uses HA alone which is why this plugin has included AppDaemon and Configurator. I still have things to do but I have a roughly finished a few things including some simple bash scripts to create jails and install Home Assistant and some friends. at this time I Mosquitto, TasmoAdmin. AppDaemon, Configurator, Dasher and Node-Red Im working on next. Also I figured out some tricks that will allow for easier updating. For example to update to update HA would be as simple as entering in your FreeNAS console one command
iocage exec homeassistant bash /root/ha.sh upgrade And even better than that will be having a simple little menu to choose
update homeassistant so you don’t even have to remember what that nifty single command is. So that’s what coming from me next.
In the meantime I’m going to leave this “plugin” here. Give it try if you’d like but let’s just consider this a DEMO.
Also AppDaemon (includes HADashboard) and Configurator are installed as well. I included a sample Dashboard (sized for a fire 7 tablet) and both the configurator and my sample dashboard have been pre-configured to show up in HA
Just two lines to copy and paste. This should take less than 5 min. ( It really only takes 3 min for this to install in a VM on my laptop )
ssh into your FreeNAS
wget https://raw.githubusercontent.com/tprelog/iocage_plugings_freenas/master/homeassistant-demo.json sudo iocage fetch -P dhcp=on vnet=on bpf=yes -n homeassistant-demo.json