『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: ABC

[进阶教程] 小米插座WiFi版接入hass

[复制链接]

24

主题

885

帖子

5069

积分

论坛元老

Rank: 8Rank: 8

积分
5069
金钱
4179
HASS币
20
发表于 2017-9-30 01:21:06 | 显示全部楼层
noel 发表于 2017-9-18 22:08
安装好python-mirobo,但是搜不出来token...

mirobo discover

可以下载手机端米家,连上插座使用一下,然后pp助手连接手机,进入米家文档/Documents/,找到xxxxxx_mihome.sqlite这个文件导出到本地,再安装DB browser for sqlite,打开刚刚导出的文件,点浏览数据选项卡,拉到最右边可以看到token
回复

使用道具 举报

6

主题

150

帖子

1784

积分

金牌会员

Rank: 6Rank: 6

积分
1784
金钱
1634
HASS币
0
发表于 2017-10-10 21:26:04 | 显示全部楼层
版主,按你的教程安装完后CHECK CONFIG报错:
Configuration Validation
Validate your configuration if you recently made some changes to your configuration and want to make sure that it is all valid.
Configuration invalid.CHECK CONFIG
Testing configuration at /home/homeassistant/.homeassistant
2017-10-10 21:21:23 ERROR (Thread-2) [homeassistant.util.yaml] YAML file /home/homeassistant/.homeassistant/configuration.yaml contains duplicate key "sensor". Check lines 55 and 71.
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setting up introduction
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.2 seconds.
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setting up recorder
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setting up http
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds.
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setting up history
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setting up api
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setting up frontend
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2017-10-10 21:21:28 INFO (MainThread) [homeassistant.setup] Setting up group
2017-10-10 21:21:29 ERROR (MainThread) [homeassistant.loader] Unable to find component switch.xiaomi_plug
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up updater
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up discovery
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up sensor
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up sun
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up xiaomi_aqara
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.5 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.3 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.3 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up zone
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain xiaomi_aqara took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up conversation
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up tts
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up logbook
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up config
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up panel_iframe
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up light
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up switch
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up automation
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up script
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain panel_iframe took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.1 seconds.
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2017-10-10 21:21:29 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.0 seconds.
Failed config
  General Errors:
    - Platform not found: switch.xiaomi_plug

Successful config (partial)
回复

使用道具 举报

0

主题

21

帖子

105

积分

注册会员

Rank: 2

积分
105
金钱
84
HASS币
0
发表于 2017-10-31 18:08:30 | 显示全部楼层
都安装完成后,运行时提示 name host token等属性不存在 怎么办啊?
回复

使用道具 举报

1

主题

19

帖子

65

积分

注册会员

Rank: 2

积分
65
金钱
46
HASS币
0
发表于 2018-3-22 22:53:54 来自手机 | 显示全部楼层
你好  我用你的脚本报这个错是为什么  求教
IMG_20180322_225006.jpg
回复

使用道具 举报

0

主题

51

帖子

475

积分

论坛积极会员

积分
475
金钱
424
HASS币
0
发表于 2018-9-3 23:11:55 | 显示全部楼层
感谢楼主分享的方法~~~我先去获取token~~~
回复

使用道具 举报

0

主题

40

帖子

170

积分

注册会员

Rank: 2

积分
170
金钱
130
HASS币
0
发表于 2018-9-5 13:59:47 | 显示全部楼层
感谢分享,标记备用
回复

使用道具 举报

0

主题

7

帖子

50

积分

注册会员

Rank: 2

积分
50
金钱
43
HASS币
0
发表于 2018-12-26 09:46:28 | 显示全部楼层
请问这问仁兄,这里设置的host是插座的IP,还是HA的IP?
回复

使用道具 举报

0

主题

7

帖子

50

积分

注册会员

Rank: 2

积分
50
金钱
43
HASS币
0
发表于 2018-12-27 10:10:13 | 显示全部楼层
接入HA之后怎样开放接口出来??
回复

使用道具 举报

0

主题

6

帖子

42

积分

新手上路

Rank: 1

积分
42
金钱
36
HASS币
0
发表于 2019-6-3 15:50:11 | 显示全部楼层
插上一个眼,现在还没搞懂怎么回事,搞懂了回来看
回复

使用道具 举报

11

主题

80

帖子

349

积分

中级会员

Rank: 3Rank: 3

积分
349
金钱
269
HASS币
0
发表于 2020-1-25 16:44:14 | 显示全部楼层
提示我 Integration xiaomi_plug not found when trying to verify its switch platform 这是怎么回事
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-22 11:09 , Processed in 0.116490 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表