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

 找回密码
 立即注册
查看: 7568|回复: 4

[教程系列] Node red 安装home-assistant 报错!【已解决】

[复制链接]

4

主题

303

帖子

1157

积分

金牌会员

Rank: 6Rank: 6

积分
1157
金钱
844
HASS币
40
发表于 2018-10-14 00:09:20 | 显示全部楼层 |阅读模式
本帖最后由 hhyhxc13 于 2018-10-15 08:39 编辑

如题,Node-red 安装 home-assistant节点后 使用节点就报错小小白,表示看不懂!求各位大神求解!!!
重新移除后,重启,重新安装节点,就不报错了!原因不知道!!!
TypeError: Cannot read property 'getStates' of undefined
    at ConfigServerNode.getEntities (/home/pi/.node-red/node_modules/node-red-contrib-home-assistant/nodes/config-server/config-server.js:8:39)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
    at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:335:12)
    at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:275:10)
    at /usr/lib/node_modules/node-red/node_modules/express/lib/application.js:233:9
    at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:635:15
    at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:260:14)
    at expressInit (/usr/lib/node_modules/node-red/node_modules/express/lib/middleware/init.js:40:5)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:317:13)
    at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:335:12)






回复

使用道具 举报

9

主题

787

帖子

3858

积分

论坛元老

Rank: 8Rank: 8

积分
3858
金钱
3071
HASS币
87
发表于 2018-10-14 00:12:44 | 显示全部楼层
装完node节点重启下试试?
回复

使用道具 举报

4

主题

303

帖子

1157

积分

金牌会员

Rank: 6Rank: 6

积分
1157
金钱
844
HASS币
40
 楼主| 发表于 2018-10-14 00:17:48 | 显示全部楼层
令狐鸣 发表于 2018-10-14 00:12
装完node节点重启下试试?

重启过了,结果还是一样!
回复

使用道具 举报

4

主题

303

帖子

1157

积分

金牌会员

Rank: 6Rank: 6

积分
1157
金钱
844
HASS币
40
 楼主| 发表于 2018-10-14 00:19:27 | 显示全部楼层
TypeError: Cannot read property 'getServices' of undefined
    at ConfigServerNode.getServices (/home/pi/.node-red/node_modules/node-red-contrib-home-assistant/nodes/config-server/config-server.js:18:39)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
    at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:335:12)
    at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:275:10)
    at /usr/lib/node_modules/node-red/node_modules/express/lib/application.js:233:9
    at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:635:15
    at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:260:14)
    at expressInit (/usr/lib/node_modules/node-red/node_modules/express/lib/middleware/init.js:40:5)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:317:13)
    at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:335:12)
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2018-10-14 16:45:48 | 显示全部楼层

看样子应该是homeassistant 的配置有问题吧?

at ConfigServerNode.getServices (/home/pi/.node-red/node_modules/node-red-contrib-home-assistant/nodes/config-server/config-server.js:18:39)

这里应该是读服务器配置的数据。


Nero
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-21 18:45 , Processed in 1.096321 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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