2024年11月21日星期四 下午4:34:32

Quick Start

2 年 前
#17729 引用

Restart  http://192.168.2.50:28123/developer-tools/yaml


http://192.168.2.50:28123/

Logs http://192.168.2.50:28123/config/logs


path


/home/homeassistant20221102/.homeassistant
/home/homeassistant20221102/.homeassistant/.storage




Clean up the Cache and Obsolete Files

sudo apt autoremove
sudo apt clean
0
2 年 前
#17734 引用
restart hass cli


sudo -u homeassistant20221102 -H -s

cd /srv/homeassistant20221102


source bin/activate




hass -v

20221103


sudo -u homeassistant20221103 -H -s
cd /srv/homeassistant20221103
python3.10 -m venv .
source bin/activate

hass -v



20230202


sudo -u homeassistant20230202 -H -s
cd /srv/homeassistant20230202
python3.10 -m venv .
source bin/activate

hass -v
0
2 年 前
#18733 引用



/home/homeassistant20221102/.homeassistant
0
2 年 前
#18747 引用
change Home Assistnant Core default port

configuration.yaml



####################################################
#                                                  #
#                     HTTP                         #
#                                                  #
####################################################
# https://www.home-assistant.io/integrations/http/
http:
  server_port: 28123

0
2 年 前
#18748 引用


root@raspberrypi:~# netstat  -anp
0
2 年 前
#18784 引用
Make Python virtual environment + Home Assistant Core run automatically

/etc/systemd/system/[email protected]


First

udo systemctl enable [email protected]

sudo systemctl start [email protected]
sudo systemctl restart [email protected]
sudo systemctl stop [email protected]
sudo systemctl status [email protected]

sudo journalctl -fu [email protected]


sudo systemctl daemon-reload

sudo systemctl restart [email protected]


20221103

udo systemctl enable [email protected]

sudo systemctl start [email protected]
sudo systemctl restart  [email protected]
sudo systemctl stop [email protected]
sudo systemctl status [email protected]

sudo journalctl -fu [email protected]


sudo systemctl daemon-reload

sudo systemctl restart [email protected]




20230504

udo systemctl enable [email protected]

sudo systemctl start [email protected]
sudo systemctl restart  [email protected]
sudo systemctl stop [email protected]
sudo systemctl status [email protected]

sudo journalctl -fu [email protected]


sudo systemctl daemon-reload

sudo systemctl restart [email protected]




0
2 年 前
#18807 引用
First config

0
1 年 前
#18936 引用
1
0
1 年 前
#18937 引用


configuration.yaml

# https://www.home-assistant.io/integrations/http/
http:
  server_port: 38123
  use_x_forwarded_for: true
  trusted_proxies:
    - 127.0.0.1      # Add the IP address of the proxy server
    - 127.0.0.0/24  # You may also provide the subnet mask
    - 192.168.101.1      # Add the IP address of the proxy server
    - 192.168.101.50      # Add the IP address of the proxy server
    - 192.168.101.0/24  # You may also provide the subnet mask
    - 114.55.28.108  # You may also provide the subnet mask
  ip_ban_enabled: False
  login_attempts_threshold: 5




home assistant changes as follow:


change from

.storage/http

  
"login_attempts_threshold": -1,
    "ip_ban_enabled": true,
    "ssl_profile": "modern"


change  to

"key": "http",
  "data": {
    "server_port": 38123,
    "use_x_forwarded_for": true,
    "trusted_proxies": [
      "127.0.0.1",
      "127.0.0.0",
      "192.168.101.1",
      "192.168.101.50",
      "192.168.101.0",
      "114.55.28.108"
    ],
    "ip_ban_enabled": false,
    "login_attempts_threshold": 5,
    "ssl_profile": "modern",
    "cors_allowed_origins": [
      "https://cast.home-assistant.io"
0
1 年 前
#18951 引用
Initial configuration

Home Assistnant Core Initial configuration , First configuration

First configuration

Edit location  http://192.168.2.50:28123/config/general


create user
http://192.168.2.50:38123/config/users

create people

Select the devices that belong to this person.


http://192.168.2.50:38123/config/person
0