SENSBLUE ATLAS/Home Assistant: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 67: | Line 67: | ||
</syntaxhighlight>Grant execution permission<syntaxhighlight lang="bash"> | </syntaxhighlight>Grant execution permission<syntaxhighlight lang="bash"> | ||
chmod +x install.sh | chmod +x install.sh | ||
</syntaxhighlight> | |||
=== 3. Execute installation === | |||
The script will install the required dependencies, install/configure Docker, copy the files to <code>/opt/atlas-ha</code>, and start Home Assistant.<syntaxhighlight lang="bash"> | |||
sudo ./install.sh | |||
</syntaxhighlight>After installation, the following should exist:<syntaxhighlight> | |||
/opt/atlas-ha/ | |||
├── docker-compose.yml | |||
└── ha-config/ | |||
├── configuration.yaml | |||
├── mqtt.yaml | |||
├── automations.yaml | |||
├── scripts.yaml | |||
└── scenes.yaml | |||
</syntaxhighlight> | |||
=== 4. Post-script validation === | |||
Verify that the container is active:<syntaxhighlight lang="bash"> | |||
sudo docker ps | |||
</syntaxhighlight>Check logs:<syntaxhighlight lang="bash"> | |||
sudo docker logs -f homeassistant | |||
</syntaxhighlight>Verify HTTP response:<syntaxhighlight lang="bash"> | |||
curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8123 | |||
</syntaxhighlight>Expected result: | |||
{| class="wikitable mix-table" | |||
!Code | |||
!Meaning | |||
|- | |||
|200 | |||
|Home Assistant access | |||
|- | |||
|302 | |||
|Home Assistant accessible, with redirection | |||
|- | |||
|000 or connection refused | |||
|It can be normal for the first 1–2 minutes; wait and repeat. | |||
|}Access in browser<syntaxhighlight> | |||
http://<ip-do-atlas>:8123 | |||
</syntaxhighlight> | </syntaxhighlight> | ||