Error starting Home Assistant on Synology for first time

Hello,

My first post here, so bear with me. Just started 2 weeks ago with HASS…

I was able to “install” netdisco (and it’s dependencies) on my DS411j (which does not support docker). It took me a full weekend of hacking, but at the end, the solution is quiet simpel…

For those that are still interested in this, here is a small procedure. It is not a detailed procedure since I just kept going but feel free to ask in this thread if you would run into problems:

The goal is to install a system into our DS so we can build like we want to…

  1. Install Debian Chroot from SynoCommunity by following this guide: http://www.hang321.net/en/2014/08/16/debian-chroot-on-dsm/

  2. Since this Debian is a Jessie release, it has Python 3.4, while our DS has 3.5. So we need to upgrade to Stretch release. Do this inside Debian Chroot
    a. vim /etc/apt/sources.list. Comment all Jessie, uncomment all testing
    b. vim /etc/apt/preferences.
    Packages stable should have priority -10
    Packages testing should have a priority 900
    c. apt-get update

  3. Now we need to install python3.5.
    a. apt-get install libpython3.5-dev (not sure if this is needed)
    b. apt-get install python3.5

  4. Let’s install netdisco on our debian
    a. python3.5 -m pip install netdisco

All files are now installed inside debian. We just need to copy them over to our DS.

  1. Inside SSH of DS:
    cd /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/
    cp /usr/local/debian-chroot/var/chroottarget//usr/local/lib/python3.5/dist-packages/* . -R

Now just restart HASS and discovery should be OK.

Please let me know your comments or remarks.

2 Likes