Home Assistant

 

https://github.com/home-assistant/operating-system

HassOS = Home Assistant Operating System

OS: Buildroot

運作:

Supervisor(container) -> Docker engine -> Add-Ons(container)

More Info.

Buildroot(https://buildroot.org/)

It is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation.

 


Panel

 

# Home Assistant observer

查看它的運行情況

http://IP:4357/

Home Assistant observer
Supervisor:    Connected
Supported:    Supported
Healthy:    Healthy

# Dashboards

可以控制開關的安 Addon

http://IP:8123/

 


Shell command

 

進入 Shell 的方式

  • Console
  • Terminal & SSH # Official add-ons

Install addon("Terminal & SSH")

Regardless of how you connect (using the web terminal or using an SSH client),
you end up in this add-on's container. The Home Assistant configuration directory is located on the path /config.

Dashboards > Settings > Add-ons > ADD-ON STORE > Terminal & SSH # Official add-ons

Web Terminal

show on sidebar (enable "Show in sidebar")

Tips

To copy text from the Web UI:

Hold down the SHIFT key.
Select the text you want to copy using your mouse.
On releasing the left mouse button, the text gets copied to your system clipboard.

To paste text into the Web UI:

Press SHIFT + INSERT.

SSH

* disabled by default

Log

...
[13:16:25] INFO: Starting Web Terminal...
[13:16:25] WARNING: SSH port is disabled. Prevent start of SSH server.

To enable SSH connectivity, you need to:

  • Provide authentication credentials - a password or SSH key(s)
  • Specify which TCP port to bind to (i.e. 22222)

CLI

# Version

ha info

arch: amd64
channel: stable
docker: 24.0.7
features:
- reboot
- shutdown
  ...
hassos: "11.2"
homeassistant: 2023.12.2
hostname: homeassistant
logging: info
machine: qemux86-64

# hardware (VM?) 及 Version

ha os info

board: ova
boot: B
data_disk: QEMU-HARDDISK-QM00001
update_available: false
version: "11.2"
version_latest: "11.2"

# 查看安了什麼 addons

ha addons | grep name

  name: Studio Code Server
  name: ESPHome
  name: Terminal & SSH

# Network 情況

ha network info | grep 192.168

 

 

Creative Commons license icon Creative Commons license icon