knowledge/technology/applications/web/Home Assistant.md

57 lines
1.4 KiB
Markdown
Raw Normal View History

2023-12-04 10:02:23 +00:00
---
obj: application
website: https://www.home-assistant.io/
android-id: io.homeassistant.companion.android.minimal
---
2024-03-19 08:25:42 +00:00
2023-12-04 10:02:23 +00:00
# Home Assistant
2023-12-29 00:37:41 +00:00
Home Assistant is a local smart home hub platform supportig many [integrations](https://www.home-assistant.io/integrations) for automation.
2024-09-03 16:13:27 +00:00
![Screenshot](./home_assistant.avif)
2023-12-29 00:37:41 +00:00
## Configuration
2024-01-17 08:44:04 +00:00
While you can configure most of Home Assistant directly from the user interface, some parts need you to edit `configuration.yaml`.
2023-12-29 00:37:41 +00:00
2024-01-17 08:44:04 +00:00
To improve readability, you can source out certain domains from your main configuration file with the `!include`-syntax.
2023-12-29 00:37:41 +00:00
```yaml
light: !include lights.yaml
```
Example basic configuration:
```yaml
homeassistant:
name: Home
latitude: 32.87336
longitude: 117.22743
elevation: 430
unit_system: metric
currency: USD
country: US
time_zone: "America/Los_Angeles"
external_url: "https://www.example.com"
internal_url: "http://homeassistant.local:8123"
allowlist_external_dirs:
- "/usr/var/dumping-ground"
- "/tmp"
allowlist_external_urls:
- "http://images.com/image1.png"
media_dirs:
media: "/media"
recordings: "/mnt/recordings"
legacy_templates: false
```
2023-12-04 10:02:23 +00:00
## Docker Compose
```yaml
version: '3'
services:
homeassistant:
image: homeassistant/home-assistant:stable
volumes:
- ./config:/config
environment:
- TZ=Europe/Berlin
restart: always
network_mode: host
```