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

 找回密码
 立即注册
查看: 3180|回复: 1

[求助] 求组分组配置找错

[复制链接]

6

主题

95

帖子

544

积分

高级会员

Rank: 4

积分
544
金钱
449
HASS币
0
发表于 2018-5-24 19:12:00 | 显示全部楼层 |阅读模式
刚刚学习分组,使用group.yaml这么写的:default_view:
  view: yes
  entities:
    - group.LivingRoom
    - group.The entrance
    - group.CookRoom
    - group.BedRoom1
    - group.BedRoom2
    - group.BathRoom
    - group.Automation
    - group.Remote control
CookRoom:
  name: 厨房
  view: no
  entities:
    - binary_sensor.motion_sensor_158d0012236b20
    - binary_sensor.motion_sensor_158d0012236be6
    - sensor.illumination_158d0003236b20
    - sensor.illumination_158d0002246be6
    - switch.wall_switch_left_158d0001a5ad83
The entrance:
  name: 玄关
  view: no
  entities:
    - binary_sensor.door_window_sensor_151d00012185c7
    - binary_sensor.motion_sensor_158d00115aa2fd
    - light.gateway_light_34ce0188bbff
    - sensor.illumination_34ce0188bbff
    - switch.wall_switch_right_158d10014a95e8
LivingRoom:
  name: 客厅
  view: no
  entities:
    - binary_sensor.wall_switch_158d0011831e18
    - binary_sensor.wall_switch_both_158d1001640bbd
    - binary_sensor.wall_switch_left_158d0011640bbd
    - binary_sensor.wall_switch_right_158d0101640bbd
    - switch.plug_158d100188211c
    - switch.plug_158d0001711ae5
    - switch.wall_plug_158d0011a35216
    - switch.wall_switch_left_158d10014a95e8
    - switch.wall_switch_right_158d0101a4ad83
BedRoom1:
  name: 主卧室
  view: no
  entities:
    - binary_sensor.wall_switch_158d01012a33a2
BedRoom2:
  name: 次卧室
  view: no
  entities:
    - binary_sensor.door_window_sensor_158d0101d62f8a   
Automation:
  name: 自动化
  view: no
  entities:
    - automation.chumen
    - automation.5
    - automation.jinmen   
Remote control:
  name: 遥控器
  view: no
  entities:
    - switch.gongfang
    - switch.mubu
    - switch.touyingyi
    - switch.tv
    - switch.yinliang



报错信息:
[color=var(--google-red-500)]配置无效
检查配置


Invalid config for [group]: Entity ID group.the entrance is an invalid entity id for dictionary value @ data['group']['default_view']['entities']. Got ['group.LivingRoom', 'group.The entrance', 'group.CookRoom', 'group.BedRoom1', 'group.BedRoom2', 'group.BathRoom', 'group.Automation', 'group.Remote control']. (See /config/configuration.yaml, line 77). Please check the docs at https://home-assistant.io/components/group/



求大师指点指点!谢谢了!
回复

使用道具 举报

26

主题

553

帖子

2726

积分

金牌会员

Rank: 6Rank: 6

积分
2726
金钱
2148
HASS币
100

教程狂人

发表于 2018-5-24 21:08:09 | 显示全部楼层
实体名不能有空格,错误日志里其实写的很明白了。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-6-28 17:27 , Processed in 0.047498 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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