I have some issues with this, and it is probably pretty basic. I am really new to this, so I do not really know how to troubleshoot. I have enabled logging, and that shows an issue (that is mentioned in this thread, but no responses)
My problem is as easy as that it will not show my SVG. I have even tried with the simple.svg, and it does not show up there either. I have made a, according to me, very good SVG in Inkscape of my florrplan. The only thing that shows up is the header, saying “Simple Floorplan”.
As mentioned, in the log I get an error on the yaml.min.js. Invalid escape sequence.
I do have an object in the SVG with the same ID as the binary_sensor. Anyone have any tips on how to troubleshoot?
An update;
I wrote this article, went for lunch, and when I got back it worked. Don’t really know what happened. My dog was home alone while I had lunch, he probably fixed it
Still get the invalid escape sequence error though
Now off to getting all things put together to get it useful.
First I created the floorplan in Sweet Home 3D and imported the created svg into Inkscape.
In Inkscape I added a bulb (green arrow) just to try it all out.
But as soon as I connect a real entity in the Lovelace yaml file, the lamp will go to the upper left corner and much smaller size (red arrow).
Anyone has an idea why this is happening?
You can create as many tabs as you like in the Lovelace front end. Nothing to stop you using multiple floor plan Configs in separate Lovelace tabs. You’ll get a lot more screen space that way rather than side by side drawings or creating layers within an svg
Yes. I had the same problem. Do not use the image supplied in the guide! for some reason when you use another image it is not anchored to the same position as the original. may be an inkscape problem rather than your code.
I got around this by download another image and changing the colour using CSS states.
I used a bulb from noun project, modified the colours etc to show it in its ‘On’ state then used the ‘off’ state to show it as a black outline
Based on your simple example, you have inspired me to use an SVG-grid to create a simple interface for sheduling a thermostat.
It’s all very new for me, so maybe I’m stretching this a little bit to far…
Maybe you can take a quick look at my post:
I can spend some time to implement (and share) it myself, no problem, but I just want to know if this can be done. Otherwise I have to send my TRV’s back because it’s to complicated to create a shedule on the valve itself.
Sorry if I missed it but I would have liked to know if there is a way to switch directly to the appropriate floor if there are multiple floors.
Currently I use the attached toggle code. But with this I can only switch one floor after the other.
Did sombody experience the problem that after adding the yaml config for the floorplan-card the ConfigRawEditor of Lovelace couldn’t be open anymore due an YAMLException for the SVGElement?
I am using icons from http://materialdesignicons.com/ but I am having an issue where only the outline is clickable. For example, my light off icon is “lightbulb-outline” and I can only click on the outlined part of the icon for it to work. The center of the image does nothing.
How can I have the entire area of the icon be clickable?
Hi there,
I have a problem with my UI setup: I use the custom:floorplan-card to integrate an SVG-file with some nice effects, etc. into lovelace. This works all very well without issues. However, when navigating on the left menu to another page in HA (e.g., from lovelace to profile or from supervisor to community) to whole web page gets stuck. Also reloading does not work. The browser needs to “stop the webpage” because it hangs.
When then loading from scratch the webpage gets loaded without a problem, but again navigating to another page gets the browser stuck. This could be verified with firefox, chrome (desktop) and fully kiosk (pad). When removing the floorplan card from lovelace, the problem goes away.
Any ideas or suggestion in which direction I can nail down the problem and fix it? Thanks!