Change colour form element doens't work with drawed line inkscape #116
-
|
Helo, I am since last week busy with the floorplan card. I tried it on a empty page because i was thinking about the layers but stays the same… Can somebody explain me how i can solve this?? I have some lines (led strip/neon) in the floorplan that i would lighten up but it doesn’t work… it disappears. The flat line (blue circle) not working and disappears… this line is a straight line downloaded from noun and it's not working either. The rest of the lines are from inkscape. Cleared cache everytime i made a change. below the files. You will see that I starting from the examples and build this up step by step. code yaml code css `/* SVG size */ #floorplan { #floorplan > svg { /* SVG elements */ svg * { /* Hover over */ .floorplan-shape:hover, /* Layers */ .layer-visible { .layer-hidden { /* Animation */ .spinning { @Keyframes spin { /* Binary sensors */ .binary-sensor-on { .binary-sensor-off { /* Buttons */ .button-on rect { .button-off rect { .button-on tspan, svg file css file yaml file lightspot file |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
First thing I notice is that you have grouped lots of your objects together. For example all of the cameras and motion symbols and your line and dots. So I would ungroup all of those so you can select them directly. I only group things if I want to assign an ID to the whole group and control them all togther in floorplan.
So how should you be doing this? You need to find a light or switch in your home assistant that you want to control. I cant find any So what that will do is when you tap/click the line with the ID then your YAML could be So try and do something simple like that. Just take one object, assign it the label of one of your HA lights and add the YAML above and you should find you can tap/click on it and it will turn on and off and the SVG object will change colour. |
Beta Was this translation helpful? Give feedback.

First thing I notice is that you have grouped lots of your objects together. For example all of the cameras and motion symbols and your line and dots. So I would ungroup all of those so you can select them directly. I only group things if I want to assign an ID to the whole group and control them all togther in floorplan.
binary_sensor.m1_garage_werkbankis a group of two objects, a line and the end of the camera so I am not sure what you are trying to do there? If you are trying to turn a light on with the binary sensor then what you should do is have an automation in HA to do that and then floorplan will just respond to the change in state of the light.light.garagedoes not exist in yo…