This is a simple docker-compose file to get started with home assistant.
Prereqs:
- docker
- docker-compose
starting the program:
- Either clone or simply create copy file
docker-compose.yml
in an empty directory. The docker-compose will create sub folders after first run. - Navigate terminal to the root directory with
docker-compose.yml
- Run
docker-compose up
to test while sending logs to console.- Navigate to
http://{ hostname or IP }:8123
in the browser.
- Navigate to
- CTL+C once to gracefully shutdown once you are done testing.
- you should see new folders such as
config/
anddata/
which will be used by the container every time you start it. This includes DB files. - Run permantently even after reboot with
docker-compose up -d
Some getting-started advice:
- Typically, the first thing to do is to add any smart devices.
- go to
configuration
>Devices & Services
, thenAdd Integration
- once you have an integration added, associated devices will be available
on the
devices
tab.
- go to
- Update homepage lovelace (AKA overview) to have any devices and features.
- The fun part : create automations!
- go to
configuration
>Automations & Scenes
, thenAdd Automation
- create a blank automation, allows you to add triggers and events.
- go to