|
看了zhkufish大神的https://bbs.hassbian.com/thread-5417-1-1.html《小度音箱接入HomeAssistant 采用自带OAuth访问控制》心痒难耐,忍不住入手1S一个。
我用的是树莓派debian+docker+hassio,家里8个小米的东东早就接入hass了,想用小度控制,遇到难题。
家里有公网ip,用的是华硕路由,有华硕dns的域名,但华硕的证书是自签名的,不带小绿锁......可联通封了80和443,想https接入真是烧了多少脑细胞。后来还好用duckdns,获得了证书,终于授权成功。再然后,顺利发现设备,再然后......
然而,可但是,但可是,每次模拟测试,或者喊小度1s控制,总是控制不了,信息贴出来:
2019-04-28 03:39:13 ERROR (MainThread) [custom_components.dueros] Traceback (most recent call last):
File "/config/custom_components/dueros.py", line 97, in post
response = await handleRequest(data)
File "/config/custom_components/dueros.py", line 133, in handleRequest
result = await controlDevice(name, payload)
File "/config/custom_components/dueros.py", line 229, in controlDevice
result = await _hass.services.async_call(domain, service, data, True)
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1115, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service fan.turn_on_request not found') |
疯了疯了,求解救!!
|
|