Home Assistant template (#81)

* feat: homeassistant

* absolute path

* homeassistant port

* Mount config files
This commit is contained in:
Vyacheslav Scherbinin 2025-05-07 14:09:48 +07:00 committed by GitHub
parent 6b6f37c7fd
commit f4b940cfb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,20 @@
services:
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
restart: unless-stopped
ports:
- 8123
volumes:
- ../files/configuration.yaml:/config/configuration.yaml
- ../files/automations.yaml:/config/automations.yaml
- ../files/scripts.yaml:/config/scripts.yaml
- ../files/scenes.yaml:/config/scenes.yaml
- /opt/homeassistant:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://homeassistant:8123/"]
interval: 60s
retries: 5
start_period: 300s
timeout: 2s

View File

@ -0,0 +1,4 @@
<svg width="240" height="240" viewBox="0 0 240 240" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M240 224.762C240 233.012 233.25 239.762 225 239.762H15C6.75 239.762 0 233.012 0 224.762V134.762C0 126.512 4.77 114.993 10.61 109.153L109.39 10.3725C115.22 4.5425 124.77 4.5425 130.6 10.3725L229.39 109.162C235.22 114.992 240 126.522 240 134.772V224.772V224.762Z" fill="#F2F4F9"/>
<path d="M229.39 109.153L130.61 10.3725C124.78 4.5425 115.23 4.5425 109.4 10.3725L10.61 109.153C4.78 114.983 0 126.512 0 134.762V224.762C0 233.012 6.75 239.762 15 239.762H107.27L66.64 199.132C64.55 199.852 62.32 200.262 60 200.262C48.7 200.262 39.5 191.062 39.5 179.762C39.5 168.462 48.7 159.262 60 159.262C71.3 159.262 80.5 168.462 80.5 179.762C80.5 182.092 80.09 184.322 79.37 186.412L111 218.042V102.162C104.2 98.8225 99.5 91.8425 99.5 83.7725C99.5 72.4725 108.7 63.2725 120 63.2725C131.3 63.2725 140.5 72.4725 140.5 83.7725C140.5 91.8425 135.8 98.8225 129 102.162V183.432L160.46 151.972C159.84 150.012 159.5 147.932 159.5 145.772C159.5 134.472 168.7 125.272 180 125.272C191.3 125.272 200.5 134.472 200.5 145.772C200.5 157.072 191.3 166.272 180 166.272C177.5 166.272 175.12 165.802 172.91 164.982L129 208.892V239.772H225C233.25 239.772 240 233.022 240 224.772V134.772C240 126.522 235.23 115.002 229.39 109.162V109.153Z" fill="#18BCF2"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,49 @@
[variables]
main_domain = "${domain}"
[config]
[[config.domains]]
serviceName = "homeassistant"
port = 8123
host = "${main_domain}"
env = []
[[config.mounts]]
filePath = "configuration.yaml"
content = """
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.0.0/16 # Local LAN Subnet
- 172.0.0.0/8 # Docker Subnet
- 10.0.0.0/16 # Docker Swarm Subnet
"""
[[config.mounts]]
filePath = "automations.yaml"
content = """
"""
[[config.mounts]]
filePath = "scripts.yaml"
content = """
"""
[[config.mounts]]
filePath = "scenes.yaml"
content = """
"""

View File

@ -2234,6 +2234,25 @@
"server" "server"
] ]
}, },
{
"id": "homeassistant",
"name": "Home Assistant",
"version": "stable",
"description": "Open source home automation that puts local control and privacy first.",
"logo": "homeassistant.svg",
"links": {
"github": "https://github.com/home-assistant/core",
"website": "https://www.home-assistant.io/",
"docs": "https://www.home-assistant.io/getting-started/onboarding/"
},
"tags": [
"iot",
"home-automation",
"internet-of-things",
"self-hosted",
"server"
]
},
{ {
"id": "tooljet", "id": "tooljet",
"name": "Tooljet", "name": "Tooljet",