AppDaemon in Docker for Home Assistant on Synology - #020
Описание
Today we will install AppDaemon in Docker on Synology for Home Assistant.
https://www.home-assistant.io/docs/ecosystem/appdaemon/
https://appdaemon.readthedocs.io/en/latest/
00:00 Intro
AppDaemon is a multithreaded, sandboxed python execution environment for writing automation apps that can greatly improve your current options in both Home Assistant automations and Node-RED.
There are only a few steps to get you started with AppDaemon.
01:07 - Before we go into command line, we have to create Long-lived Access Token in Home Assistant. Don't forget to copy it or save as temporary note somewhere.
02:07 - We have to create new folder for configuration file and future applications and dashboards:
mkdir /volume1/docker/appdaemon
02:44 - Following is terminal command we have to run to get it downloaded and installed:
sudo docker run --name=appdaemon -itd --net=host --restart=always -e HA_URL="http://192.168.1.201:8123" -e TOKEN="COPY YOUR TOKEN HERE" -e DASH_URL="http://192.168.1.201:5050" -v /volume1/docker/appdaemon:/conf -v /etc/localtime:/etc/localtime:ro acockburn/appdaemon:latest
07:00 - Next step is to go into Portainer, check if everything is correct (and it will not be). Stop the Docker container so we can proceed.
07:36 - In Synology File Station go to /Docker/AppDaemon folder and right-click on appdaemon.yaml file to edit permissions.
Now edit appdaemon.yaml file and add couple of lines just below "appdaemon:":
latitude: 45.815399 # copy your data from Home Assistant
longitude: 15.966568 # copy your data from Home Assistant
elevation: 100 # copy your data from Home Assistant
time_zone: Europe/Zagreb # change to match your time zone
Don't forget to save changes.
09:41 - Next step is to go back to Portainer and start AppDaemon container.
If everything is working OK, you should see Hello World app successfully started in AppDaemon log file.
09:59 - You can now access AppDaemon UI on following IP address:
http://192.168.1.201:5050 (please change to match your Synology IP address).
Here is a nice list of AppDaemon scripts and examples you can use in your install:
https://github.com/eifinger/appdaemon-scripts
You can of course also use HACS for some of the scripts it has in its repository.
Thank you for watching this video. If you have any questions or comments , please leave them below or contact me on the Discord Server.
Have fun!
BeardedTinker
Twitter: @BeardedTinker
Discord: https://discord.gg/HkxDRN6
#HomeAssistant #AppDaemon #Synology #Docker
Рекомендуемые видео



















