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

 找回密码
 立即注册
查看: 4769|回复: 6

[求助] hassos中如何和nodered联动或者说创建custom_components

[复制链接]

59

主题

731

帖子

4221

积分

论坛元老

Rank: 8Rank: 8

积分
4221
金钱
3485
HASS币
20
发表于 2020-12-10 10:04:20 | 显示全部楼层 |阅读模式
本帖最后由 guitengyue 于 2020-12-10 12:49 编辑

nodered中的sensor信息到ha中,提示Attention: This node requires Node-RED custom integration to be installed in Home Assistant for it to function.

Installation
This integration is available in [color=var(--color-text-link)]HACS (Home Assistant Community Store)
  • Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  • If you do not have a custom_components directory (folder) there, you need to create it.
  • In the custom_components directory (folder) create a new folder called nodered.
  • Download all the files from the custom_components/nodered/ directory (folder) in this repository.
  • Place the files you downloaded in the new directory (folder) you created.
  • Restart Home Assistant
  • In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Node-RED"



我再config下面创建了custom_components,并把相关的文件都放到这个文件夹中了,就是第一步不知道在configuration中需要如何修改,是加一个nodered:  ?  但是重启后HA中的集成还是搜不到nodered


日志提示如下错误:
Logger: homeassistant.components.websocket_api.http.connection.140612763282352
Source: components/websocket_api/connection.py:84
Integration: Home Assistant WebSocket API ([color=var(--primary-color)]documentation
, [color=var(--primary-color)]issues
)
First occurred: 下午12:46:28 (3 occurrences)
Last logged: 下午12:46:29
Received invalid command: nodered/version
回复

使用道具 举报

15

主题

438

帖子

4124

积分

论坛元老

Rank: 8Rank: 8

积分
4124
金钱
3686
HASS币
0
发表于 2020-12-10 11:08:16 | 显示全部楼层
集成里怎么可能有nodered nodered不是插件,而是一个addon
回复

使用道具 举报

59

主题

731

帖子

4221

积分

论坛元老

Rank: 8Rank: 8

积分
4221
金钱
3485
HASS币
20
 楼主| 发表于 2020-12-10 11:56:34 | 显示全部楼层
miniknife 发表于 2020-12-10 11:08
集成里怎么可能有nodered nodered不是插件,而是一个addon

addon在哪里。。
实体注册表也没有
回复

使用道具 举报

59

主题

731

帖子

4221

积分

论坛元老

Rank: 8Rank: 8

积分
4221
金钱
3485
HASS币
20
 楼主| 发表于 2020-12-10 12:49:14 | 显示全部楼层
Logger: homeassistant.components.websocket_api.http.connection.140612763282352
Source: components/websocket_api/connection.py:84
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 下午12:46:28 (3 occurrences)
Last logged: 下午12:46:29

Received invalid command: nodered/version
回复

使用道具 举报

59

主题

731

帖子

4221

积分

论坛元老

Rank: 8Rank: 8

积分
4221
金钱
3485
HASS币
20
 楼主| 发表于 2020-12-10 13:28:09 | 显示全部楼层
搞定了。。原来要在集成那边手动添加下
回复

使用道具 举报

0

主题

8

帖子

184

积分

注册会员

Rank: 2

积分
184
金钱
176
HASS币
0
发表于 2021-1-21 10:13:39 | 显示全部楼层
guitengyue 发表于 2020-12-10 13:28
搞定了。。原来要在集成那边手动添加下

怎么手动添加?
回复

使用道具 举报

59

主题

731

帖子

4221

积分

论坛元老

Rank: 8Rank: 8

积分
4221
金钱
3485
HASS币
20
 楼主| 发表于 2021-1-21 11:42:11 | 显示全部楼层
007 发表于 2021-1-21 10:13
怎么手动添加?

集成那边手动添加一下,右下角有一个+号
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 13:06 , Processed in 0.150435 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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