请选择 进入手机版 | 继续访问电脑版

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

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

[求助] 该实体没有唯一的 ID,因此无法由 UI 管理其设置。

[复制链接]

2

主题

13

帖子

118

积分

注册会员

Rank: 2

积分
118
金钱
105
HASS币
0
发表于 2020-10-15 13:13:17 | 显示全部楼层 |阅读模式
刷了罗大大的开关固件,但是再配置ha的时候出现 该实体没有唯一的 ID,因此无法由 UI 管理其设置。怎么破啊 (5P7@05BC98FK[OTJ{M6%T2.png @FNHOM[WLZP4~RWIH@G_7ZU.png
回复

使用道具 举报

8

主题

724

帖子

3034

积分

论坛元老

Rank: 8Rank: 8

积分
3034
金钱
2310
HASS币
87
发表于 2020-10-15 14:06:21 | 显示全部楼层
如果只是解决在UI编辑问题,试着在配置加一个unique_id试试. 值随意,保证唯一就行
light:
  - platform: mqtt
    command_topic: "office/rgb1/light/switch"
    unique_id: "32b33778a2614be0a3290f81afdeaba9"
回复

使用道具 举报

2

主题

13

帖子

118

积分

注册会员

Rank: 2

积分
118
金钱
105
HASS币
0
 楼主| 发表于 2020-10-15 17:54:17 | 显示全部楼层
令狐鸣 发表于 2020-10-15 14:06
如果只是解决在UI编辑问题,试着在配置加一个unique_id试试. 值随意,保证唯一就行
...

大佬,不能加unique yaml报错的,这里是我的yaml配置。

light:
  - platform: mqtt
    name: "relay_37a290_l1"
    state_topic: "relay/relay_37a290/stat/power1"
    command_topic: "relay/relay_37a290/cmnd/power1"
    payload_on: "on"
    payload_off: "off"
    availability_topic: "relay/relay_37a290/tele/availability"
    payload_available: "online"
    payload_not_available: "offline"
    brightness_state_topic: "relay/relay_37a290/stat/brightness1"
    brightness_command_topic: "relay/relay_37a290/cmnd/brightness1"
    brightness_scale: 100
    color_temp_state_topic: "relay/relay_37a290/stat/color_temp1"
    color_temp_command_topic: "relay/relay_37a290/cmnd/color_temp1"

  - platform: mqtt
    name: "relay_37a290_l2"
    state_topic: "relay/relay_37a290/stat/power2"
    command_topic: "relay/relay_37a290/cmnd/power2"
    payload_on: "on"
    payload_off: "off"
    availability_topic: "relay/relay_37a290/tele/availability"
    payload_available: "online"
    payload_not_available: "offline"
    brightness_state_topic: "relay/relay_37a290/stat/brightness2"
    brightness_command_topic: "relay/relay_37a290/cmnd/brightness2"
    brightness_scale: 100
    color_temp_state_topic: "relay/relay_37a290/stat/color_temp2"
    color_temp_command_topic: "relay/relay_37a290/cmnd/color_temp2"
回复

使用道具 举报

8

主题

724

帖子

3034

积分

论坛元老

Rank: 8Rank: 8

积分
3034
金钱
2310
HASS币
87
发表于 7 天前 | 显示全部楼层
tiuster 发表于 2020-10-15 17:54
大佬,不能加unique yaml报错的,这里是我的yaml配置。
light:
  - platform: mqtt
    name: "relay_37a290_l1"
    state_topic: "relay/relay_37a290/stat/power1"
    command_topic: "relay/relay_37a290/cmnd/power1"
    payload_on: "on"
    payload_off: "off"
    availability_topic: "relay/relay_37a290/tele/availability"
    payload_available: "online"
    payload_not_available: "offline"
    brightness_state_topic: "relay/relay_37a290/stat/brightness1"
    brightness_command_topic: "relay/relay_37a290/cmnd/brightness1"
    brightness_scale: 100
    color_temp_state_topic: "relay/relay_37a290/stat/color_temp1"
    color_temp_command_topic: "relay/relay_37a290/cmnd/color_temp1"
    unique_id: "relay_37a290_l1"


应该没问题的,报什么错?  再试试? 什么版本啊
回复

使用道具 举报

17

主题

261

帖子

999

积分

高级会员

Rank: 4

积分
999
金钱
738
HASS币
0
发表于 6 天前 | 显示全部楼层
我的也是老提示么有唯一,烦得很
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2020-10-23 11:10 , Processed in 0.101022 second(s), 29 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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