All works fine except for the part where I have no /srv/homeassistant/bin/ directory. So all the steps from this part onwards don’t work
Finally, still as user hass (or who ever runs HA), activate the virtualenv and reinstall homeassistant using the updated openssl source /srv/homeassistant/bin/activate
I just get this error -su: /srv/homeassistant/bin/activate: No such file or directory
Is there an alternative filepath? How do I complete the remaining steps.
Sorry for the confusion. I recently updated this plugin to better follow standard BSD conventions. The openssl wiki page had not been updated to match. I took care of that now though.
By the way, you can use service homeassistant rcvar to see what’s set for homeassistant. There are more possible, but these are the ones I set during the plugin installation
I have the same issue, set the community plugin up with version 0.115.4 had to manually update with above method you describe. Now same happens when I want to upgrade to 0.115.6.
Upgrading using below command also works:
service homeassistant install --upgrade homeassistant
Do I now always have to use above method or can I fix the menu option in my setup?
Hi @wmn79 – Sorry, I realize I still need to add a plugin version, or some other way to determine which files (most important are the menu and rc.d scripts) you currently have installed with the plugin.
The menu is a shortcut for
service homeassistant upgrade
which internally, should be equal to using
service homeassistant install --upgrade homeassistant
I have a suspicion. Can you confirm a few things please?
Before looking at the actual files, please make some simple checks
Next please check line 237 in the rc.d/homeassistant script
# Exit the menu
ee /usr/local/etc/rc.d/homeassistant
You might find the following on Line 237
homeassistant_install --upgrade "${name}"
If so, please try changing it to the following and let me know if the menu option works again.
run_rc_command install --upgrade "${name}"
Also are you using FreeNAS 11.3 or TrueNAS Core?
By the way, menu options 2 - 8 are all just shortcuts to run service commands from the rc.d script. For example 8) check_config can also be run from the command line using.
So I just realized that I fixed this on TrueNAS Core two months ago but must have forgot to updated the 11.3-RELEASE as well - Anyways, it’s done now. Thanks for letting me know @wmn79 – I’m surprised it gone this long without being reported. Although I’m now wondering if @elyobelyob might be having the same issue.
I assume the menu option 4) upgrade is broke for everyone that has recently installed or updated the plugin on FreeNAS 11.3
Simply running an UPDATE from the Plugins page on FreeNAS will now fix the issue, however, due to the amount of time it can take, I think this may be a bit extreme for a relatively easy fix. – If your plugin is recent, it may be preferred to save time by manually editing one line of code.
Within the next few weeks, I’ll be updating the FreeNAS (11.3-RELEASE) plugin to use Python 38 (for clean installs only).
If you’ve installed this plugin on FreeNAS 11.3 after 10/09/2020, you should already using Python 38
If you’ve installed this plugin on TrueNAS Core, you should already using Python 38
You can check the Python version currently being used by going to Configuration -> Info in the Home Assistant UI.
Updating an existing installation to use Python 38 will require manual intervention to reinstall the Home Assistant virtualenv. Assuming your Home Assistant instance is up and running, these steps should be all that’s required. (when asked, answer YES to also clear the pip cache)
iocage console $_JAIL_NAME
# Press 0 to exit the menu
pkg install -y python38 py38-sqlite3
sysrc homeassistant_python=/usr/local/bin/python3.8
service homeassistant reinstall
Please note, the command
service homeassistant reinstall
will reinstall the same version of Home Assistant that you are currently running.
If there is a more recent version of Home Assistant available and you would like to reinstall using the latest version you should use
I remember this error myself - /usr/bin/ld: cannot find -lresolv - That’s why I added…
sed -i .orig 's| -lresolv||g' qt-ozwdaemon/Makefile
Can you try these steps again from here. I suspect you might have missed the line shown above.
setenv BUILDNUMBER 0
git clone https://github.com/OpenZWave/qt-openzwave.git /usr/local/src/qt-openzwave \
&& cd /usr/local/src/qt-openzwave \
&& sed -i .orig 's|-Wno-deprecated-copy|-Wno-deprecated|g' qt-openzwave.pri \
&& /usr/local/lib/qt5/bin/qmake "BUILDNUMBER=$BUILDNUMBER" \
&& sed -i .orig 's| -lresolv||g' qt-ozwdaemon/Makefile \
&& make && make install && cd
Otherwise I’ll need to further investigate this evening. I’m really noob when it comes to compiling software. I only figured this much out by trying to read the docker file and with trial / error.
I’ve been looking through the FreeBSD Porter’s Handbook and I’ve considered attempting a port of ozwdaemon. It’s just that when I jump into something like this, it can get overwhelming.
No, should be your mqtt broker – Also you’ll want to use the rc service script so ozwdaemon will auto-start – You can either configure all options using sysrc or use a .profile
Thanks, I need to dig a bit more into how this open zwave beta works.
I did use a different devfs_ruleset btw. I used one that I had created earlier for one of my earlier jail installations. This has no issues with restarting jails and rebooting the server. It is placed on the FreeNAS host in /etc/devfs.rules and looks like this:
[usbrules=100]
add path ‘usbctl’ mode 660 group uucp
add path ‘usb/’ mode 660 group uucp
add path 'ttyU’ mode 660 group uucp
Off course I also changed the jail creation command to use ruleset 100 instead of 99.
Quickly starting the ozwdaemon seemed to work just fine. Now need to study a bit on setting up mqtt etcetera.
Hello, thank you very much for this great work and plugin, for me it’s much better to run home assistant on a jail than on a raspberry or a VM.
After a few days of configurations, I managed to do everything I was doing with domoticz.
I use zigbee, z-wave and RFX, gmail and push notifications, everything is ok.
Not having hassio, I created a new jail and installed node-red on it, but I get the error “can not get ha identities”. But it does not matter because in my opinion node-red is not necessary.
My only real problem is that I can’t save my home assistant’s database without the supervisor tab.
I am running Freenas 11.3
Thanks a lot for your help
The name of the backup file above is HA_0.116.1_201010.090516
HA = Home Assistant
0.116.1 = Home Assistant version at time of backup
201010 = Date of backup – Year (20) month (10) day (10)
090516 = Time of backup – Hour (09) Minute (05) second (16)
EDIT – Sorry I don’t have time right now, but next week I will add an example of how to trigger this backup from Home Assistant using the shell command integration