Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save willwhui/04019a2ee13d4fa57efa9dc83dbbb965 to your computer and use it in GitHub Desktop.
Save willwhui/04019a2ee13d4fa57efa9dc83dbbb965 to your computer and use it in GitHub Desktop.
在hass中用Google Home语音控制小米扫地机器人
@willwhui
Copy link
Author

willwhui commented Nov 1, 2017

先接入小米机器人-顺利成功

官方文档: https://home-assistant.io/components/vacuum.xiaomi_miio/
因为之前我接入小米插座做了一些获取token的准备工作,所以现在很简单:

vacuum:
  - platform: xiaomi_miio
    host: 192.168.1.2
    token: !secret xiaomi_vacuum_robot_token

注意:保险起见,不把token直接写到配置文件正文中
为了保持configuration.yaml的文件简洁,还可以像其他一些组件一样利用!include vacuums.yaml的方式来分离配置文件

官方文档中有对机器人的各种调用方法说明。

@willwhui
Copy link
Author

willwhui commented Nov 3, 2017

google home和本地小米设备的连接方式有几种?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment