2024年11月23日星期六 下午4:12:42

Install Home Assistant with Docker on Raspberry Pi 3b+ raspberry pi os lite (64-bit)

10 个月 前
#28377 引用
Home Assistant with Docker on Raspberry Pi 3b+ raspberry pi os lite (64-bit)

https://www.home-assistant.io/installation/raspberrypi#install-home-assistant-container
0
10 个月 前
#28378 引用
sudo docker pull ghcr.io/home-assistant/home-assistant:stable




other
0
10 个月 前
#28379 引用
test

docker run -d --name="ha" -e "TZ=Europe/Sofia" -v "/homeassistant:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable


TZ=Asia/Shanghai


docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/homeassistant:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable




docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/home/homeassistant20221103:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable



docker run -d --name="hadocker" -e "TZ=Asia/Shanghai" -v "/home/homeassistantdocker20240104:/config" -p 58123:8123 ghcr.io/home-assistant/home-assistant:stable



docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/home/homeassistant20221103/.homeassistant:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable



docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/home/homeassistant20221103/.homeassistant:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable



docker run host

docker run -d \
  --name homeassistant \
  --privileged \
  --restart=unless-stopped \
  -v ./config:/config \
  -v /run/dbus:/run/dbus:ro \
  -e TZ=$TIMEZONE \
  --network=host \
  ghcr.io/home-assistant/home-assistant:stable



docker run -d\
--name="ha"\
-e "TZ=Asia/Shanghai"\
--network=host\
-v "/home/homeassistant20221103/.homeassistant:/config"\
-p 38123:8123\
ghcr.io/home-assistant/home-assistant:stable



docker run -d \
  --name ha2 \
  -v /home/homeassistant20221103/.homeassistant:/config \
  -e TZ=Asia/Shanghai \
  --network=host \
  ghcr.io/home-assistant/home-assistant:stable


直通模式不能指定端口


.homeassistant

docker run -d --name ha \
-v /home/homeassistant20221103:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
0
10 个月 前
#28384 引用
2.Docker discovery   run ok


docker run -d --name ha \
-v /home/homeassistant20221103:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable


202405


docker run -d --name ha \
-v /data/homeassistant202405:/config \
--network=host \
ghcr.io/home-assistant/home-assistant:stable




# docker run -d --name="ha" -e "TZ=Asia/Shanghai" -v "/home/homeassistant20221103:/config" -p 38123:8123 ghcr.io/home-assistant/home-assistant:stable

3946bce3384d12823e211e0e8788d3ee7d0d2aca39d3c0958ee13c65b4b74b80

t@raspberrypi:~# docker ps -a

CONTAINER ID   IMAGE                                                     COMMAND                  CREATED          STATUS          PORTS                                         NAMES
3946bce3384d   ghcr.io/home-assistant/home-assistant:stable              "/init"                  42 seconds ago   Up 39 seconds   0.0.0.0:38123->8123/tcp, :::38123->8123/tcp   ha
cbb03ce5bf23   ghcr.io/home-assistant-libs/python-matter-server:stable   "matter-server --sto…"   6 hours ago      Up 6 hours    
                                                matter-server
t@raspberrypi:~# docker logs 3946bce3384d

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
0
10 个月 前
#28391 引用


create user first hu for docker ha
 6 files changed, 133 insertions(+), 1 deletion(-)
create mode 100644 .storage/auth_provider.homeassistant
create mode 100644 .storage/core.area_registry
create mode 100644 .storage/onboarding
create mode 100644 .storage/person
0
10 个月 前
#28392 引用
create Home location first for docker ha

  
new file:   .storage/core.config
  modified:   .storage/core.config_entries
  modified:   .storage/onboarding
  modified:   .storage/repairs.issue_registry


  
modified:   .storage/core.device_registry
  modified:   .storage/core.entity_registry
  modified:   .storage/core.restore_state
0
10 个月 前
#28393 引用
create private first for docker ha

  
new file:   .storage/core.analytics
  modified:   .storage/core.device_registry
  modified:   .storage/core.entity_registry
  modified:   .storage/core.restore_state
  modified:   .storage/onboarding

0
10 个月 前
#28394 引用
create complete first for docker ha

modified:   .storage/auth
modified:   .storage/onboarding




https://github.com/mslycn/Home-AssistantConfig20221103/commit/5cbd5647510945d1e13c6c7a56608fbdef450329
0
10 个月 前
#28395 引用
1
0
10 个月 前
#28396 引用
System information
Version  core-2024.1.4
Installation Type  Home Assistant Container
Development  false
Supervisor  false
Docker  true
User  root
Virtual Environment  false
Python Version  3.11.6
Operating System Family  Linux
Operating System Version  6.1.0-rpi7-rpi-v8
CPU Architecture  aarch64
Timezone  Asia/Shanghai
Configuration Directory  /config


Database Engine  sqlite
Database Version  3.41.2
0