
## Installation of home-assistant on Synology

Follow https://www.home-assistant.io/installation/alternative/:

The steps would be:

Install “Docker” package on your Synology NAS
Launch Docker-app and move to “Registry”-section
Find “homeassistant/home-assistant” within registry and click on “Download”. Choose the “stable” tag.
Wait for some time until your NAS has pulled the image
Move to the “Image”-section of the Docker-app
Click on “Launch”
Choose a container-name you want (e.g., “homeassistant”)
Click on “Advanced Settings”
Set “Enable auto-restart” if you like
Within “Volume” click on “Add Folder” and choose either an existing folder or add a new folder. The “mount path” has to be “/config”, so that Home Assistant will use it for the configs and logs. It is therefore recommended that the folder you choose should be named “config” or “homeassistant/config” to avoid confusion when referencing it within service calls.
Within “Network” select “Use same network as Docker Host”
To ensure that Home Assistant displays the correct timezone go to the “Environment” tab and click the plus sign then add variable = TZ & value = Europe/London choosing your correct timezone
Confirm the “Advanced Settings”
Click on “Next” and then “Apply”
Your Home Assistant within Docker should now run and will serve the web interface from port 8123 on your Docker host (this will be your Synology NAS IP address - for example http://10.0.0.142:8123)


## Install git on Synology via SynoCommunity (https://synocommunity.com/)

Install the SynoCommunity package source
Install ‘git’ using the package manager
Now you can use ‘git’ commands from the CLI while SSHed into the
Synology.


## Install Gitea iva Docker

https://thomes.blog/2020/12/09/how-to-gitea-on-synology/

## use git version control on the local gitea client
https://community.home-assistant.io/t/sharing-your-configuration-on-github/195144

(use gitea instead of github)
Ensure a sensible .gitignore and secrets.yaml

## Editing in Emacs

Now, the synology homeassistant drive can be mounted and files be
opened in Emacs

Use the VC mode
https://www.youtube.com/watch?v=0YlYX_UjH5Q
CTRL-x v CTRL-h

C-x v v : vc-next-action

C-c C-c : commit
