Replies: 4 comments 5 replies
-
|
Hi, Firstly could you edit your post and highlight all your code and press the button that looks like <> so we can properly see your formatting? But just looking at what I see under data: that doesn't look correct at all. Have a look at the example here https://experiencelovelace.github.io/ha-floorplan/docs/example-home/ |
Beta Was this translation helpful? Give feedback.
-
|
Hello, yes this code and other similar ones that I tested are from previous versions caught in the forums, but there is no error in the log when I apply in the current version of há-flooplan. The svg file is very simple, there are two rectangles in two layers. A layer with the name of page0 and another with the name of page1. In the page0 layer I have a rectangle with id toggle_button and the page1 layer is hidden in it is the other rectangle. The button's function would be to display the layer page1 with the other rectangle appearing. There is no error just does not work. I would like to see if for this version we would have a solution for that. If we have no solution, I will use the separate guide as you suggested. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for your return. Yes, this works well in the case of a few figures. But I will have several figures and rectangles to control, and a way to organize all this would be to make each set of figures and a certain layer. |
Beta Was this translation helpful? Give feedback.
-
|
I will explain what I would like to do, use a tab with a floorplan on it to have some access buttons to the rooms of my house. My house is like this
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I am trying to hide or redisplay a layer but it is not working. Follow me code:
log_level: info
badges:
cards:
- type: 'custom:floorplan-card'
full_height: true
config:
image: /local/floorplan/examples/home-multi/layer1.bak.svg?v=1.1.14
stylesheet: /local/floorplan/examples/home-multi/master.css?v=1.1.14
defaults:
hover_action: hover-info
tap_action: more-info
rules:
- elements:
- toggle_button
name: toggles
action:
service: floorplan.class_toggle
data:
classes:
- layer-hidden
- layer-visible
default_class: layer-hidden
elements:
- page1
on css file is:
.layer-visible {
display: initial !important;
fill-opacity: 1 !important;
}
.layer-hidden {
display: none !important;
fill-opacity: 0 !important
}
I don´t know what is happen. May I fogot something?
Beta Was this translation helpful? Give feedback.
All reactions