当前位置: 首页 > news >正文

物联网从HomeAssistant开始

文章目录

  • 一、在树梅派5上安装home-assistant
  • 二、接入米家
    • 1.对比下趋势
    • 2.手动安装插件
    • 3.配置方式
  • 三、接入公牛
    • 1.手动安装插件
    • 2.配置方式

一、在树梅派5上安装home-assistant

https://www.home-assistant.io/installation/
https://github.com/home-assistant/operating-system/releases
目前是在树
在这里插入图片描述

docker-compose up -d
version: '3'
services:# https://www.home-assistant.io/installation/linux#docker-composehomeassistant:container_name: homeassistantimage: "homeassistant/home-assistant"environment:- TZ=Asia/Shanghaiports:- "8123:8123"volumes:- /root/homeassistant:/config- /etc/localtime:/etc/localtime:ro- /etc/hosts:/etc/hosts:ro- /run/dbus:/run/dbus:rorestart: unless-stoppedprivileged: truenetwork_mode: host

二、接入米家

好久没更新了:https://github.com/ha0y/xiaomi_miot_raw
最近还在更新:https://github.com/al-one/hass-xiaomi-miot
官方强势来袭:https://github.com/XiaoMi/ha_xiaomi_home

1.对比下趋势

https://ossinsight.io/analyze/XiaoMi/ha_xiaomi_home?vs=al-one%2Fhass-xiaomi-miot#overview
还是建议用小米官方的
在这里插入图片描述

2.手动安装插件

git clone https://github.com/XiaoMi/ha_xiaomi_home
cp -r ha_xiaomi_home/custom_components/xiaomi_home /root/homeassistant/custom_components

3.配置方式

安装完成后,重启 Home Assistant。待 Home Assistant 启动后,在「设置」菜单中点击「设备与服务」选项,在新界面中选择「添加集成」,搜索「xiaomi home」,按照提示操作即可。
在这里插入图片描述

三、接入公牛

1.手动安装插件

https://github.com/stevenjoezhang/hass-iotbull

git clone https://github.com/stevenjoezhang/hass-iotbull
cp -r hass-iotbull/custom_components/bull /root/homeassistant/custom_components

2.配置方式

安装完成后,重启 Home Assistant。待 Home Assistant 启动后,在「设置」菜单中点击「设备与服务」选项,在新界面中选择「添加集成」,搜索「Bull IoT」,按照提示操作即可。
在这里插入图片描述

相关文章:

  • 【无标题】云计算运维
  • 通道注意力-senet
  • LLM词编码机制:文字映射,词嵌入
  • 【测试开发】BUG篇 - 从理解BUG到如何处理
  • Spark中RDD算子的介绍
  • JVM中对象的存储
  • 验证es启动成功
  • win10 使用 bat 文件,切换电源模式
  • cpp学习笔记3--class
  • ES6入门---第三单元 模块七: Proxy的使用+Reflect的使用
  • 鞅与停时 - 一种特别的概率论问题
  • C++相关学习过程
  • mysql:什么是一致性视图(Read View)
  • 【AI提示词】心流理论研究者
  • 【前端样式】手写rem + flexible.js自动适配方案全解析
  • SpringBoot优雅参数检查
  • 可重入锁理解(redission)
  • typescript类型定义讲解
  • sqlite数据库操作
  • python+open3d选择点云上的某个点并获取其对应三维坐标
  • 著名文物鉴赏家吴荣光逝世,享年78岁
  • 耿军强任陕西延安市领导,此前任陕西省公安厅机场公安局局长
  • 侧记|青年为何来沪创新创业?从这一天寻找答案
  • 上海劳模风采馆焕新升级后重新开放,展示480位劳模先进故事
  • 印度军方否认S-400防空系统被摧毁
  • 巴基斯坦称成功拦截印度导弹,空军所有资产安全