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

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

[求助] Floorplan 报错 无法在HA group configuration 找到实体id

[复制链接]

2

主题

3

帖子

23

积分

新手上路

Rank: 1

积分
23
金钱
20
HASS币
0
发表于 2019-6-1 23:20:29 | 显示全部楼层 |阅读模式


按照官方中文教程,操作了一下floorplan,打开warning ,把svg文件中的id 与 floorplan.yaml 中的id 对应好之后,重启hass。
报错如下,请教各位大神如何解决的

  • Cannot find 'sensor.dark_sky_temperature' in HA group configuration
  • Cannot find 'light.hallway' in HA group configuration
  • Cannot find 'light.living_room' in HA group configuration
  • Cannot find 'light.patio' in HA group configuration
  • Cannot find 'group.kitchen_lights' in HA group configuration
  • Cannot find 'group.living_room_lights' in HA group configuration





Floorplan.yaml
      name: Demo Floorplan
      image: /local/custom_ui/floorplan/floorplan.svg
      stylesheet: /local/custom_ui/floorplan/floorplan.css

      # These options are optional
      warnings:                  # enable warnings (to find out why things might ot be working correctly)
      pan_zoom:                  # enable experimental panning / zooming
      hide_app_toolbar:          # hide the application toolbar (when used as a custom panel)
      date_format: DD-MMM-YYYY   # Date format to use in hover-over text

      last_motion_entity: sensor.template_last_motion
      last_motion_class: last-motion

      groups:

        - name: Sensors
          entities:
             -  sensor.dark_sky_temperature
          #text_template: '${entity.state ? entity.state : "unknown"}'
          # An example of rounding up a number, i.e. a temperature of 90.1 becomes 91
          text_template: '${entity.state ? Math.ceil(entity.state) : "undefined"}'  
          class_template: '
            var temp = parseFloat(entity.state.replace("°", ""));
            if (temp < 10)
              return "temp-low";
            else if (temp < 30)
              return "temp-medium";
            else
              return "temp-high";
            '

        - name: Lights
          entities:
             - light.hallway
             - light.living_room
             - light.patio
             - group.kitchen_lights
             - group.living_room_lights

回复

使用道具 举报

18

主题

695

帖子

3824

积分

元老级技术达人

积分
3824
金钱
3119
HASS币
60
发表于 2019-6-2 08:15:59 | 显示全部楼层
你有这些实体吗?这是原来模板举例的吧。
回复

使用道具 举报

30

主题

999

帖子

4119

积分

论坛元老

Rank: 8Rank: 8

积分
4119
金钱
3115
HASS币
0

活跃会员

发表于 2019-6-2 09:56:11 | 显示全部楼层
对,首先你HA里面要有这些实体,dark_sky在国内很少用吧
回复

使用道具 举报

7

主题

1977

帖子

5675

积分

论坛元老

流水无味

Rank: 8Rank: 8

积分
5675
金钱
3698
HASS币
145

灌水之王

发表于 2019-6-3 08:05:40 | 显示全部楼层
全改自己的ID 先测试
回复

使用道具 举报

2

主题

3

帖子

23

积分

新手上路

Rank: 1

积分
23
金钱
20
HASS币
0
 楼主| 发表于 2019-6-3 16:08:27 | 显示全部楼层
感谢各位大神回复,确实没有这些设备,以为可以自定义某种虚拟设备完成某个自动化脚本的。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-20 00:16 , Processed in 0.108751 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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