当前位置:首页 > HomeAssistant

diban系统安装homeassistant运行代码(适用各虚拟机实体机安装)

西风3年前 (2023-08-09)HomeAssistant2305

先在虚拟机或实体机安装diban系统,然后依次执行下面代码:

查看本机ip命令

ip addr show

普通用户获取管理员权限

su -

配置软件包

cat <<EOF > /etc/apt/sources.list 
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
EOF

apt update &&  apt upgrade -y

apt-get install sudo

更新Home Assistant Supervised 依赖库的命令

apt-get install \
jq \
wget \
curl \
udisks2 \
libglib2.0-bin \
network-manager \
dbus -y

下面是安装Docker-CE的命令

curl -fsSL get.docker.com | sh

安装OS agent

wget https://github.com/home-assistant/os-agent/releases/download/1.3.0/os-agent_1.3.0_linux_x86_64.deb

dpkg -i os-agent_1.3.0_linux_x86_64.deb

命令测试OS agent是否正常安装

gdbus introspect --system --dest io.hass.os --object-path /io/hass/os

重启系统命令

sudo reboot

安装Home Assistant Supervised

su -

wget https://github.com/home-assistant/supervised-installer/releases/latest/download/homeassistant-supervised.deb

dpkg -i homeassistant-supervised.deb

重启系统命令

sudo reboot

配置HACS

wget -O - https://get.hacs.xyz | bash

重启系统命令

sudo reboot


扫描二维码推送至手机访问。

版权声明:本文转载自网络,如有侵权请与本站联系。

本文链接:https://blog.cnod.net/post/57.html

分享给朋友:

相关文章

HomeAssistant接入国家电网(电费余额用电量查询)

HomeAssistant接入国家电网(电费余额用电量查询)

HomeAssistant接入国家电网数据(电费余额用电量查询)(理论已经是支持全国)sgcc_electricity容器地址:https://registry.hub.docker.com/r/dscao/sgcc_electricity…

HomeAssistant 安装 HACS教程

HomeAssistant 安装 HACS教程

1.在ha的配置目录建立custom_components、themes、tts、www文件夹2.解压hacs 到custom_components文件夹,或者下载最新版本的HACShttps://github.com/hacs/integ…

绿米系列网关接入homeassistant的教程

绿米系列网关接入homeassistant的教程

一、硬件支持范围绿米公司出品的设备,凡是支持接入苹果homekit 的网关,都可以通过这种方式接入。比如m1s等,具体范围,自己查询。二、接入方案进入homeassistant,在集成里面点击添加集成,然后搜索apple,点击进入选择Hom…

智能电表 DDSU666 接入 HomeAssistant 详细安装教程

智能电表 DDSU666 接入 HomeAssistant 详细安装教程

DDSU666电表RS485 + ESP32 + ESPHome + HomeAssistant本方案是使用 正泰 DDSU666 带 RS485 通讯的电表,添加一个 ESPHome 模块连接到 HomeAssistant 智能家居系统,…

HomeAssistant 米家官方插件安装教程

HomeAssistant 米家官方插件安装教程

一、插件地址通过以下 GitHub 地址获取米家官方插件:https://github.com/XiaoMi/ha_xiaomi_home二、安装步骤1. 添加自定义插件在 Home Assistant 中添加自定义插件。方法1:打开 Ho…