目录

树莓派128G

树莓派128G

资料

  • Home Assistant, (1) 系統安裝與簡單上手

https://gogoprivateryan.blogspot.com/2019/01/home-assistant-1-internet-of-things.html

  • 安装Home Assistant踩过的坑

https://blog.csdn.net/u011738895/article/details/105755512

https://bbs.hassbian.com/thread-10764-1-1.html

  • 官网

https://www.home-assistant.io/

安装步骤

  1. 下载32位镜像文件

https://www.home-assistant.io/hassio/installation/

  1. 下载balenaEtcher格式工具

https://www.balena.io/etcher

  1. 将镜像刷入tf卡

  2. 将tf卡插入nas里,在第一分区(**hassio-boot分区)**下新建CONFIG文件夹,内建network文件夹,里面放入my-network文件,写入

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
[connection]
id=my-network
uuid=f34a63d1-8dff-44a7-a65f-afa67c3e26cb
type=802-11-wireless
 
[802-11-wireless]
mode=infrastructure
ssid=R6900-2.4G
# Uncomment below if your SSID is not broadcasted
#hidden=true
 
[802-11-wireless-security]
auth-alg=open
key-mgmt=wpa-psk
psk=19830806
 
[ipv4]
method=auto
 
[ipv6]
addr-gen-mode=stable-privacy
method=auto
  1. 回到 CONFIG/,新建timesyncd.conf,写入以下内容
1
2
3
[Time]
NTP=0.pool.ntp.org1.pool.ntp.org2.pool.ntp.org3.pool.ntp.org
FallbackNTP=0.pool.ntp.org1.pool.ntp.org2.pool.ntp.org3.pool.ntp.org
  1. tf卡插入树莓派,开机

  2. Add-ons内安装Mosquitto broker,不需要改参数

  3. Add-ons内安装Node-RED,需要修改的参数为

1
2
3
4
5
6
7
npm_packages:
  - node-red-admin
init_commands:
  - echo 'This is a test'
  
credential_secret: xinqinew
ssl: false
  1. Add-ons内安装Samba share,需要修改的参数为
1
2
3
username: xinqinew

password: '198386'
  1. Add-ons内安装SSH & Web Terminal

  2. 集成中安装homekit桥接器

  3. 集成中安装mqtt

  4. 集成中安装broadlink ip:192.168.0.196

  5. 集成中安装xiaomi key:09C5782B397D45DA

  6. Tasmota 设置**自动发现 **

    在控制台输入

    1
    2
    3
    4
    5
    6
    7
    
    SetOption59 1
    
    Timezone 8时区
    
    latitude 40
    
    longitude 117
    
  7. 长期口令

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJkZTE4ZTkyZjZkZjc0ZjkxOGY3YzFmNWNmZWRiZTFjMyIsImlhdCI6MTYwMDYyMjg0MiwiZXhwIjoxOTE1OTgyODQyfQ.rptUfcby3M1KexveQZ3DTJEqCzDMCNm44k0zO4PwYuQ

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmYzgzZmNiYzk1NGE0ZDQyOWFmNDUyY2FkMjE0YTkyNCIsImlhdCI6MTYwNTg2NzUwMywiZXhwIjoxOTIxMjI3NTAzfQ.ZtnNoWlvwIrXB5wHhqZkoexNcgjL6nC1WLQzpgCCK4k

  1. 易微联设备接入home assistant教程–官方插件使用说明
    1. 原帖 https://github.com/AlexxIT/SonoffLAN#install-with-hacs
    2. 打开网址,下载sonoff的插件,丢进自定义插件文件夹config/custom_components。
    3. 集成中搜sonoff(可能需要先重启ha),输入易微联的相关账号信息登陆,一定要+86。