问答社区分类: Home Assistant请问为什么连接万能遥控器后显示实体是只读状态,没有唯一ID,无法建立UI?

请问为什么连接万能遥控器后显示实体是只读状态,没有唯一ID,无法建立UI?

chensiyu 提问于 3周 前     2020年3月25日更新

我的设备是博联的RM PRO+,目前状态是可以通过HA获取遥控代码,但是就是不能进行实体控制,UI也无法加入。
错误提示:This entity does not have a unique ID, therefore it’s settings can not be managed from the UI.
以下是我的代码:

switch:                                               
  # broadlink                                                               
  – platform: broadlink               
    host: 192.168.50.104
    mac: ’34:EA:34:76:CE:FE’
    type: rm2_home_plus
    switches:
      tv_viewsonic01:
        friendly_name: “投影”
        command_on: “JgDYAAABKZIUNhQ2FBEVERQRFBEUERQ2FBEVERQ2FBEUNhQ2FDYUNhQ2FTUVNRURFDYUERQRFBEVEBURFBEUNhQRFDYUNhU1FQAFAwABKZIUNhQ2FBEVERQRFBEUERQ2FRAVERQ2FBEUNhQ2FDYUNhU1FTYUNhQRFDYUERQRFRAVERQRFBEUNhQRFTUVNRU1FQAFAwABKZIVNRU1FREUERQRFBEUERU1FREUERQ2FBEUNhQ2FTUVNhQ2FDYUNhQRFDYUERURFBEUERQRFBEVNRURFDYUNhQ2FAANBQ==”
        command_off: “JgDYAAABKZIUNhQ2FBEVERQRFBEUERQ2FBEVERQ2FBEUNhQ2FDYUNhQ2FTUVNRURFDYUERQRFBEVEBURFBEUNhQRFDYUNhU1FQAFAwABKZIUNhQ2FBEVERQRFBEUERQ2FRAVERQ2FBEUNhQ2FDYUNhU1FTYUNhQRFDYUERQRFRAVERQRFBEUNhQRFTUVNRU1FQAFAwABKZIVNRU1FREUERQRFBEUERU1FREUERQ2FBEUNhQ2FTUVNhQ2FDYUNhQRFDYUERURFBEUERQRFBEVNRURFDYUNhQ2FAANBQ==”
      iptv_dune01:
        friendly_name: “盒子”
        command_on: “JgBkAAcACsgAASuRFTQWNBU1FTQWDxYPFjQVNRU1FTQVNRU1FRAVEBU0FjQVNRU0FhAVEBUQFRAVNBYQFRAVEBU0FjQVNRU0Fg8WNBUABI8AAStHFQAMTgABK0cVAAxOAAErRxQADQUAAAAA”
        command_off: “JgBkAAcACsgAASuRFTQWNBU1FTQWDxYPFjQVNRU1FTQVNRU1FRAVEBU0FjQVNRU0FhAVEBUQFRAVNBYQFRAVEBU0FjQVNRU0Fg8WNBUABI8AAStHFQAMTgABK0cVAAxOAAErRxQADQUAAAAA”
      amp_ankoy838tn:
        friendly_name: “功放”
        command_on: “JgBYAAABJ5EUEBU1FBAUERQ1FBEUNRQ1FBEUERQ1FDUTEhM2FDUUERQ1FDUVEBQ1FBEUERQ1FDUUERQQFDYUEBQ2FDUUEBUQEwAFFgABJkkUAAw8AAEmSRQADQU=”
        command_off: “JgBYAAABJ5EUEBU1FBAUERQ1FBEUNRQ1FBEUERQ1FDUTEhM2FDUUERQ1FDUVEBQ1FBEUERQ1FDUUERQQFDYUEBQ2FDUUEBUQEwAFFgABJkkUAAw8AAEmSRQADQU=”

1个回答
采纳

这个错误只是在前端要管理这个设备(比如名称)时产生的,并不影响它的使用。
如果前端没有显示设备,而又有这个实体,可能是被lovelace隐藏了。

Andrew 版主 回答于 5天 前