当前位置:首页 > HomeAssistant > 正文内容

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

西风12个月前 (08-09)HomeAssistant791

先在虚拟机或实体机安装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

分享给朋友:

相关文章

openwrt下安装homeassitant

openwrt下安装homeassitant

最近在研究homeassistant,目前选择的设备是家里硕果仅存的N1,在一番接入后,家里的设备除了摄像头基本上都接入了homekit,其实主要原因还是因为本身家里的aqara设备就较多,摄像头暂时不想接入,因为最近在考虑更换家里的摄像头...

手动配置Home Assitant能源模块代码

新版的HA推出了全新的能源模块,可以按天,按周,按月,按年显示能源消耗情况,比之前使用配置文件手动处理的方式好了很多。但是它需要一个设置一个总消耗电量的实体,默认情况下tasmota生成的实体是不被支持的,我们需要在配置文件中这样设置:se...

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

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

HomeAssistant接入国家电网数据(电费余额用电量查询)(理论已经是支持全国)欢迎加入本站交流群(245996886)sgcc_electricity容器地址:https://registry.hub.docker.com/r/ds...

HomeAssistant 接入南方电网 计算电费

HomeAssistant 接入南方电网 计算电费

1.China Southern Power Grid Statistics集成链接2.获取当月用电情况因为我的电费是固定的,没有阶梯电价用电量 * 0.63906875 = 电费3.计算电费然后在UI上显示进入configuration....

homeassistant安装zigbee2mqtt并接入海尔smartcare门磁传感器

homeassistant安装zigbee2mqtt并接入海尔smartcare门磁传感器

*本教程默认已经装好Mosquitto broker,配置好mqtt服务器*在 配置-加载项-加载项商店,右上角三个点,仓库,添加仓库地址,https://github.com/zigbee2mqtt/hassio-zigbee2...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。