It did not work. I’ve changed the setup now. Created a box and dependign on the state it wil show an icon. this icon rotates inside the box. works fine.
Is it also possible to make an icon mirror (hor or vert.)
I’m finally getting around to migrating (on a test host) from the old old Floorplan card to the new shiny Floorplan card. However, I’m hitting an odd bug.
With the same SVG file as I’m already using I’m getting lots of cannot find element 'binary_sensor.blah' in SVG file. For example:
10/08/2021, 19:08:14 WARNING CONFIG Cannot find element 'binary_sensor.bathroom_window_contact' in SVG file
Some things are found, and it’s mostly the ones I put in first. It doesn’t seem to be a layer issue since found and missing entities are in the same layers. It doesn’t seem to be a file size issue since there’s found entities later on than the missing ones. It doesn’t even seem to be naming. Indeed I can find nothing in common.
I would use Inkscape’s FIND feature and search the SVG that way. Once the element has been located try deleting it and reinserting and see if that makes a difference. Maybe there is some sort of corruption or outdated formatting in your current SVG?
I need a little help because I’m at a loss. I can’t seem to get the card to display a full floorplan, only a sliver of it. I made the floor plan in the 1024x768 size because it was suggested, however I just need the ground floor which is very wide and not very tall, so the plan takes up 100% of the width but only 30% of the height. Below is my yaml config and how the card looks. My css file is empty. I’m sure I’m missing something obvious, I would love any help. Thank you
Assuming you use Inkscape you might mean you have gone to FILE>>DOCUMENT PROPERTIES and set a custom size? If so you have probably made that too small for your actual image? Just set the custom size so the rectangle that shows that is the same size as your actual image. Play around with the custom size values and you should see the rectangle get bigger and smaller. If that doesn’t help you will need to post a copy of your SVG for us to look at.
I don’t know enough to know why your SVG is getting clipped but I was able to use some options to make it work from here: How to Handle Size and Expand Floorplan - Floorplan for Home Assistant So for a start don’t horizontal stack it. When I removed that I had full width but it was clipped at the bottom. This was fixed with the full_height option
This works for me too however it’s not what I want, as this just shows a single card in one dashboard/view. I would like this to show up as a card among more cards. Or am I setting it up wrong? I know the panel: true option makes the view show up as just one card, right?
Technically it makes the card full width. You can have this with other cards but I recommend having this as a full width card and the other cards above or below. Here is one I have:
Edit: You could try without the panel:true option and see if it will work for you just with full_height:true but as I said I don’'t do that.
Also adding more cards above or below doesn’t make them show up. I think I’m putting them at the right indentation but not sure. This is now my lovelace.yaml:
I tried all that but it still stays cut off. I don’t know if something else is interfering with this but I don’t have any modifications on that particular view. It’s these from HACS:
So it works fine without the vertical stack? I just tried adding an entity and it is working fine for me with or without the vertical stack. There is something unusual about your SVG I thnk because of how it gets clipped if full_height: true isn’t added.
Unfortunately I have to sign off for two days as I am going away so hopefully someone else might chime in.
The only other thing to perhaps do just to get it working is I assume this is the background of your floorplan and you will put all the inteactivity on top? If so you can just screen capture the image and save as PNG or export it to PNG from within Inkscape. Then create a new SVG in inkscape and import the PNG as the background image and then go from there. This is how I started my floorplan because I created it in SweetHome3D first. I now just have a bunch of icons and other elements layered on top of it.
Someone else more knowledgable about SVGs might pop in with some better assistance if that won’t work for you. Good luck!
It doesn’t work now with or without the vertical stack. Still clipped on the side. I’ll try to redo the svg file with your instructions, we will see if that helps
Edit: It helped, now I can see the whole plan. Procedure was: Export to PNG > Import back in inkscape > save as SVG.