The SynoCommunity has released a current version of HomeAssistant Core for Synology. Yves Martin put together a framework that seems to allow any version of HomeAssistant to be compiled into a .spk file ready to install on a Synology SAN server. HomeAssistant Core makes sense for folks with Synology SAN Servers that are not capable of running Docker or who don’t wish to run Docker on a San Server.
The SynoCommunity does not put out updates to packages at the same frequency as the HomeAssistant developers. Currently the HomeAssistant 0.114.2 package is available. My goal was to find a way to create an installable .spkr file at any level I desire. Further I can pick what Python modules my system needs as compiled wheels.
I did some testing with 0.114.4 and 0.115.0b8. HomeAssistant worked as a proof of concept. There certainly is no need to install every minor version if things are working well, but compiling will allow the user to pick their version of choice on the Synology.
I decided to use the Docker version of spksrc cross compilation framework to compile and package software for Synology NAS devices.
First get the current source files:
git clone https://github.com/SynoCommunity/spksrc.git
Update Homeassistant version and wheel components:
Update version to match version selected in requirements.txt:
docker run -it --rm -v ~/spksrc:/spksrc -w /spksrc synocommunity/spksrc:latest /bin/bash
The make setup defaults to DSM 6.1 which is a reasonable minimum level. My DS414 is an armadxp architecture. Replace armadaxp with the model for your Synology: Synology Models You can also see the list of supported architectures listed in spksrc/toolchains
If everything was successful, the package will be in spksrc/packages
Install that package on your Synology from the Package Center Manual Install button.