Jump to content

SENSBLUE ATLAS/Home Assistant: Difference between revisions

No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Home Assistant}}
{{DISPLAYTITLE:Home Assistant}}[[File:Home Assistant Logo.png|frameless|150x150px]]
 
== Fast installation script ==
(If u are feeling lazy)
<table style="border: none; background: transparent; margin: 15px 0; border-collapse: collapse;">
    <td style="padding: 0 0 0 10px; border: none; background: transparent;">
        <span class="atlas-btn">[[Media:Atlas-ha-install-v1.zip|Atlas-ha-install-v1.zip]]</span>
    </td>
</table>
 
= Home Assistant integration =
= Home Assistant integration =
'''Installing Home Assistant on the SENSBLUE ATLAS / i.Cee²'''
'''Installing Home Assistant on the SENSBLUE ATLAS / i.Cee²'''
Line 17: Line 26:


=== 1. Prerequisites ===
=== 1. Prerequisites ===
{| class="wikitable tech-table"
{| class="wikitable mix-table"
!Item
!Item
!Value / check
!Value / check
Line 114: Line 123:
EOF
EOF
</syntaxhighlight>'''Important notes:'''
</syntaxhighlight>'''Important notes:'''
{| class="wikitable"
{| class="wikitable mix-table"
!Option
!Option
!Reason
!Reason
Line 141: Line 150:
curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8123
curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8123
</syntaxhighlight>'''Expected result:'''
</syntaxhighlight>'''Expected result:'''
{| class="wikitable"
{| class="wikitable mix-table"
!Code
!Code
!Meaning
!Meaning
Line 168: Line 177:
=== 7. Configure MQTT integration in Home Assistant ===
=== 7. Configure MQTT integration in Home Assistant ===
Since the container uses <code>network_mode: host</code>, Home Assistant can access the local Mosquitto via:
Since the container uses <code>network_mode: host</code>, Home Assistant can access the local Mosquitto via:
{| class="wikitable"
{| class="wikitable mix-table"
!Field
!Field
!Value
!Value
Line 346: Line 355:
EOF
EOF
</syntaxhighlight>'''Notes about this mqtt.yaml'''
</syntaxhighlight>'''Notes about this mqtt.yaml'''
{| class="wikitable"
{| class="wikitable mix-table"
!Entity
!Entity
!MQTT Topic
!MQTT Topic
Line 382: Line 391:


In Home Assistant, check for entities similar to:
In Home Assistant, check for entities similar to:
{| class="wikitable"
{| class="wikitable mix-table"
!Entity
!Entity
!Type
!Type
Line 469: Line 478:
cd /opt/atlas-ha
cd /opt/atlas-ha
</syntaxhighlight>
</syntaxhighlight>
{| class="wikitable"
{| class="wikitable mix-table"
!Action
!Action
!Command
!Command
Line 499: Line 508:
=== 15. Production notes ===
=== 15. Production notes ===
Before sending a unit to a client, review the following points:
Before sending a unit to a client, review the following points:
{| class="wikitable"
{| class="wikitable mix-table"
!Point
!Point
!Note
!Note
Line 563: Line 572:


==== 16.2 What the script does ====
==== 16.2 What the script does ====
{| class="wikitable"
{| class="wikitable mix-table"
!Step
!Step
!Action
!Action
Line 637: Line 646:
" http://localhost:8123
" http://localhost:8123
</syntaxhighlight>'''Expected result:'''
</syntaxhighlight>'''Expected result:'''
{| class="wikitable"
{| class="wikitable mix-table"
!Code
!Code
!Meaning
!Meaning
Line 665: Line 674:


=== 18. Summary ===
=== 18. Summary ===
{| class="wikitable"
{| class="wikitable mix-table"
!Step
!Step
!Command / Action
!Command / Action
Line 679: Line 688:
|-
|-
|Access
|Access
|[http://&#x3C;ip-do-atlas&#x3E;:8123 http://<atlas-ip>:8123]
|[http://&#x3C;ip-do-atlas&#x3E;:8123 '''<u>http://<atlas-ip>:8123</u>''']
|-
|-
|Configure MQTT
|Configure MQTT
Line 699: Line 708:
|sudo docker compose down
|sudo docker compose down
|}
|}
=== 19. Final checklist ===
* Docker installed and functional
* homeassistant container in Up state
* Port 8123 accessible
* MQTT configured in Home Assistant
* configuration.yaml file created with <code>mqtt: !include mqtt.yaml</code>
* mqtt.yaml file created
* AI1..AI4 entities created
* DI1..DI4 entities created
* DO1..DO4 entities created
* Node-RED still accessible on 1880
* Mosquitto still accessible on 1883
* Grafana still accessible on 3000
* InfluxDB still accessible on 8086
* Backup of the ha-config folder considered
atlas-ha-install-v1.tar.gz