Expected a value of type undefined for cards but received [{"config":{"image":"/local/floorplan/examples/simple/simple.svg?v=1.1.14","rules":[{"entities":["binary_sensor.main_bedroom","binary_sensor.living_area","binary_sensor.double_garage"],"states":[{"class":"binary-sensor-off","state":"off"},{"class":"binary-sensor-on","state":"on"}]}],"stylesheet":"/local/floorplan/examples/simple/simple.css?v=1.1.14"},"title":"Simple Floorplan","type":"custom:floorplan-card"}].
hey! does anyone have a link to a more recent explanation for zoom options to the SVG file? i found this old coment Floorplan for Home Assistant from Petar but cant get it to work, so im thinking its only working on the old setup? i added the pan_zoom: in the ui but it just makes the floorplan not showup at all
Many thanks again for helping you all! i’m really starting to like this system
Picture elements allows you to place icons at relative locations. This allows you to place anything you want at any absolute location. Go look at the examples linked from here and the GitHub
There is no way I could do this with the Picture Elements card - I know because I spent days trying to get something half as nice.
I would also love to know this. I would like to be able to click an element and navigate to another tab of my lovelace interface. For example, click my thermostat and it takes me to a page i have setup with my custom thermostat cards.
This is the idea I have for the layout, which i made in Inkscape and I want it to work this way:
The buttons on left are supposed to control which controls are available on display. So when the first one is clicked, bulbs appear, and when the next one is clicked, bulbs disappear and temperature is shown.
Now the question is, do I have to make an SVG file in Inkscape for every single option here and then just manage to toggle between them somehow or can i just slam all the icons on the same place over each other and just control later when they are active and when not?
Thank you all for having the patience, and I hope to get some response.
I had this working back in version 9X something. My SD card died and I had to reistall. I had a copy of most of the config. I had my configuration file and the floorplan folder. So I have restored it all.
My SVG and CSS files are restored. and my “Edit Raw Configuration” in lovelace looks like this:
Hi, I have and question about using the css format. I would like to adjust the color of an element when a lamp comes on. The element is also connected to another sensor and already set with css. When the PIR state changes to on, the element color changes, but I also want the same element to change color when the lamp is turned on. can i give a object in the SVG file more then 1 ID? It did not work, but was like this:
Hi, I am new to HASS. I am trying to get the simple example up and running. But, on step 3, add to Lovelace, I am unsure of where I put the card config? If I go to the Lovelace UI and paste the code into a manual card, I get an “undefined is not an object (evaluating ‘this._configElement.setConfig’)” error in the card configuration.
I have been through the same issue when I upgraded to 0.106.
There were several posts referencing the change
I tried to follow the link above but have up and just replaced all of the configuration files with latest GitHub version.
Obviously you need to add your own images, CSS and UI code again but that’s easy if you have then saved
Hi! I’m working hard on my UI, using the picture element card to be able to show my FP.
is there any way to add on top a calendar card and a weather card?
thanks