TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Quick Home Assistant setup with Docker

    Scheduled Pinned Locked Moved Home Assistant
    1 Posts 1 Posters 675 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RussR Offline
      Russ
      last edited by

      I wrote this start.sh bash script to run Home Assistant for the Youtube demo but you could also use it to try out Home Assistant and/or the TRIGGERcmd integration for it:

      #!/bin/bash
      
      mkdir -p ~/ha/config
      docker run -d \
        --name homeassistant \
        --privileged \
        -e TZ=America/Detroit \
        -v ~/ha/config:/config \
        -v /run/dbus:/run/dbus:ro \
        -p 8123:8123 \
        --rm \
        ghcr.io/home-assistant/home-assistant:stable
      

      This shows my session where I ran it, then confirmed it's running with the docker ps command:

      russ@RussHP:~/ha$ cat start.sh
      #!/bin/bash
      
      mkdir -p ~/ha/config
      docker run -d \
        --name homeassistant \
        --privileged \
        -e TZ=America/Detroit \
        -v ~/ha/config:/config \
        -v /run/dbus:/run/dbus:ro \
        -p 8123:8123 \
        --rm \
        ghcr.io/home-assistant/home-assistant:stable
      russ@RussHP:~/ha$ ./start.sh
      a32957000a3f029fda67ff1cc2d96b22d2fe4f13125536023e94723a5df2dc6f
      russ@RussHP:~/ha$ docker ps
      CONTAINER ID   IMAGE                                          COMMAND   CREATED       STATUS       PORTS                    NAMES
      59c343cb87fa   ghcr.io/home-assistant/home-assistant:stable   "/init"   2 hours ago   Up 2 hours   0.0.0.0:8123->8123/tcp   homeassistant
      

      After it was running, I was able to access it at http://localhost:8123

      Russell VanderMey

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post