[라즈베리파이] homeassistant 설치
라즈베리파이의 라즈비안에 homeassistant를 설치할 것이다.
home assistant 란
https://www.home-assistant.io/
Home Assistant
Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.
www.home-assistant.io
위 링크를 참조해보도록 하자.
리눅스 기반의 설치는 아래 명령어를 따르면 가능하다.
참고로 docker 기반이 아니라 비슷한 pod를 통해 podman으로 설치를 할 예정이다.
podman은 아래 참고 포스팅 참고 바란다.
먼저 podman을 설치해야한다.
apt update apt upgrade -y apt install podman |
그리고 설치가 되면 아래 명령어로 homeassistant를 설치하고 실행하면 된다.
podman run -d \ --name homeassistant \ --privileged \ --restart=unless-stopped \ -e TZ=Asia/Seoul \ -v /home/main/homeassistant:/config \ --network=host \ ghcr.io/home-assistant/home-assistant:stable |
참고로 -v 옵션 은 설치될 경로이므로 미리 폴더가 만들어져있어야한다.
그리고 잘 생성이 되었으면 podman ps 를 하게 되면 pod가 생성된것이 보인다.
그리고 podman pod ls 로도 확인이 가능하다.
ip:8123 포트가 default 이므로 들어가서 로그인하고 설정을 해주면 된다.
참고로 pod restart 방법은 podman ps 로 pid를 알아낸 후
podman restart pid
로 가능하다.
참고 포스팅
https://thenicesj.tistory.com/325
Podman(RedHat)
지금의 개발 시대는 클라우드, MSA, 분산 등의 단어가 빠지면 이상할 정도로 개발의 추세가 로컬, 네이티브, 프라이빗한 환경에서 많이 변화해왔다. 그러면서 중요시되는 게 몇 가지 있는데 그중
thenicesj.tistory.com