|
按照官方中文教程,操作了一下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
|
|