Skip to content

Instantly share code, notes, and snippets.

@willwhui
Created November 6, 2017 01:01
Show Gist options
  • Save willwhui/865a48e35f0cc60b24c4a933be6abf49 to your computer and use it in GitHub Desktop.
Save willwhui/865a48e35f0cc60b24c4a933be6abf49 to your computer and use it in GitHub Desktop.
在hass中接入Echo dot
@willwhui
Copy link
Author

willwhui commented Nov 6, 2017

有两种办法:

  1. 使用component Emulated Hue Bridge: https://home-assistant.io/components/emulated_hue/
  2. 使用component Alexa: https://home-assistant.io/components/alexa/

@willwhui
Copy link
Author

willwhui commented Nov 6, 2017

使用component Emulated Hue Bridge

官方文档:https://home-assistant.io/components/emulated_hue/
参考教程:https://bbs.hassbian.com/forum.php?mod=viewthread&tid=234&highlight=echo

hass版本0.56

  • 为设备设置emulated_hue_name:
    我没有配置custom.yaml,而是直接在component对应的位置作了修改。
    后续证明是有效的。
    也是几乎必需的,否则不好指明让alexa操作它。

  • 重启之后有警告:

WARNING (Thread-14) [homeassistant.components.emulated_hue] Alexa type is deprecated and will be removed in a future version

查看官方文档:https://home-assistant.io/components/emulated_hue/

type (Optional): The type of assistant who we are emulated for. Either alexa or google_home, defaults to google_home. This configuration option is deprecated and will be removed in a future release. It is no longer necessary to define type.

原来以后的版本就不用指定这个“alexa”类型了
当前版本是0.56,稍候升级到0.57试试看。

  • 进入手机端的alexa,找到添加设备的地方,经过小段时间的扫描,识别了所有的设备。

hass版本0.57

升级之后,去掉"alexa"类型声明,没有问题。

@willwhui
Copy link
Author

willwhui commented Nov 8, 2017

使用component Alexa

官方文档: https://home-assistant.io/components/alexa/
可见需要将本地的http服务暴露给外网。跟google home的连接模式是类似的,既然如此,我还是去折腾google home那边吧,毕竟google home比alexa贵一些。。。

@willwhui
Copy link
Author

不能发现家里的设备

在hass的设备(树莓派)上不恰当的配置iptables,更改端口转发规则,会导致无法发现模拟的hue设备。

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