Quite new to home assistant, been trying for a couple of days to get floor plan working with no joy.
I am just trying to get the demo working before trying my own
I am running a Home assistant docker on an unraid server not hass.io on a pi does this matter?
Setup as a custom panel
I get a blank white page and error of
Uncaught TypeError: Cannot read property ‘instanceCount’ of undefined
at HTMLElement._initializeProperties (frontend-c873dc80aa0057847f22bcf3fff98f57.html:1)
at new i (frontend-c873dc80aa0057847f22bcf3fff98f57.html:1)
at new i (frontend-c873dc80aa0057847f22bcf3fff98f57.html:1)
at new d (frontend-c873dc80aa0057847f22bcf3fff98f57.html:1)
at new a (frontend-c873dc80aa0057847f22bcf3fff98f57.html:1)
at new HomeAssistant (frontend-c873dc80aa0057847f22bcf3fff98f57.html:140)
I have copied the files (keeping directory structure)
www/custom_ui/floorplan/ha-floorplan.html
www/custom_ui/floorplan/floorplan.svg
www/custom_ui/floorplan/floorplan.css
www/custom_ui/floorplan/lib/jquery-3.2.1.min.js
www/custom_ui/floorplan/lib/moment.min.js
www/custom_ui/floorplan/lib/svg-pan-zoom.min.js
my floorplan.yaml
name: Test Floorplan
image: /config/www/custom_ui/floorplan/floorplan.svg
stylesheet: /config/www/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
groups:
- name: Lights
entities:
- light.Kitchen_Main
- light.Kitchen_Cooking
states:
- state: 'on'
class: 'light-on'
- state: 'off'
class: 'light-off'
action:
domain: light
service: toggle
All Floorplan experts! - I have seen some seriously cool floorplans, and I am trying to build my own, but starting at the basics with lights; done, but now,… scenes!
I am trying to activate a scene from my FloorPlan and was wondering if anyone can help please?
This is what I have:
In the floorplan.SVG, test square for testing with ID=scene.tv_time
@Creagan Thanks for the reply but I don’t think so I have tried it with the file back in its original state and no luck.
GET http://192.168.13.1:8123/local/www/custom_ui/floorplan/ha-floorplan.html 404 (Not Found)
I changed that path as that is the main difference between the hassio version and regular home assistant
hassio is /local/www/custom_ui
home assistant is /config/www/custom_ui
I have checked in the unraid docker and /local/www does not exist
Just clarifying for anyone else hung up on their text not displaying:
Using Inkscape to modify your floorplan.svg file:
To write text into your diagram and make it static (for a label): Yes, convert the Object (text data) into Path data (vector image)
To get your text to display/update dynamically from a sensor (for a sensor readout): Copy the text object from the example svg file and paste it into your svg file. I’m not sure what setting carries over during that process.
Also make sure that any object or path you would like as text is also on the top layer. Layer > Layer to Top
Another snag I ran into (unrelated to the above…):
Just in case anybody else is getting Expected <block end>, but found ‘<block mapping start>’ in their log file after enabling the warnings: option (in \HASSIO\config\floorplan.yaml).
Indenting everything in floorplan.yaml fixed that error.
Hello, I am new here. Recently, I have been trying to deal with the floorplan. Unfortunately, I can not cope with switching on the light. As you can see in the film, when I click the mouse on the bulb, an additional window appears, where you can additionally turn on the light.
The question is, what and in which file should I add, so that immediately after pressing on the bulb, the light will light without this additional window.
Hi @jaburges… The highlighted area is a SVG element that is mapped with the entity_id of each light corresponding to each area. The color is set in the css file when the state is on and off respectively.