SENSBLUE ATLAS/Home Assistant: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 19: | Line 19: | ||
├── scripts.yaml | ├── scripts.yaml | ||
└── scenes.yaml | └── scenes.yaml | ||
</syntaxhighlight> | |||
=== 1. What the script does === | |||
{| class="wikitable mix-table" | |||
!Stage | |||
!Action | |||
|- | |||
|Validates argument | |||
|Confirms that a backup file was specified | |||
|- | |||
|Installs dependencies | |||
|Run <code>apt update</code> and install <code>docker.io</code> and <code>docker-compose-plugin</code> | |||
|- | |||
|Enables Docker | |||
|Executes <code>systemctl enable docker</code> and <code>systemctl start docker</code> | |||
|- | |||
|Breed pasta | |||
|Ensure <code>/opt/atlas-ha</code> exists | |||
|- | |||
|Extract backup | |||
|Extract the <code>.tar.gz</code> file to <code>/opt/atlas-ha</code> | |||
|- | |||
|HA starts up | |||
|Navigates to <code>/opt/atlas-ha</code> and runs <code>sudo docker compose up -d</code> | |||
|- | |||
|Show URL | |||
|Indicate access via <code><nowiki>http://DEVICE_IP:8123</nowiki></code> | |||
|} | |||
=== 2. Prepare Device === | |||
Transfer the package to ATLAS, for example using WinSCP: | |||
# Open the connection to ATLAS using WinSCP. | |||
# Copy <code>atlas-ha-installer.zip</code> or <code>atlas-ha-installer.tar.gz</code> to <code>/home/pi</code>. | |||
# Drag the folder extracted from the .zip file to the /home/pi directory on ATLAS. | |||
'''Note:''' If you need help installing WinSCP, '''''<u>[[SENSBLUE ATLAS/Putty & WinSCP#Install WinSCP|click here]]</u>'''''. | |||
On ATLAS, after transferring the necessary files, establish an SSH connection | |||
If the package is <code>.zip</code>:<syntaxhighlight lang="bash"> | |||
cd /home/pi | |||
unzip atlas-ha-installer.zip | |||
cd atlas-ha-installer | |||
</syntaxhighlight>Se o pacote for :<code>.tar.gz</code><syntaxhighlight lang="bash"> | |||
cd /home/pi tar -xzf atlas-ha-installer.tar.gz cd atlas-ha-installer | |||
</syntaxhighlight>Grant execution permission<syntaxhighlight lang="bash"> | |||
chmod +x install.sh | |||
</syntaxhighlight> | </syntaxhighlight> | ||