-
Hi, I'm pretty new to this and I've been searching the web for tutorials and general documentation to figure this out for 2 weeks now. I also noticed luke had png for each button… Does that mean that all the buttons i going to use must be svg elements integrated into .svg or some kind of placeholders such as i did with temperature text? Btw Is there a way to move the svg elements either in .yaml or .css? I have to either open the svg in Inkscape to do that or just edit manually in the text editor.. Here is what i have managed to make so far: https://imgur.com/a/enp0X99 config.yaml
floorplan.css
floorplan_optimized.svg
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
OK Luke is not using ha-floorplan however other than what looks like a graph in the bottom left you can easily do everything else. Have a look at mine here and you will see I have what looks like a sidebar on the left but it is fact just part of the SVG. https://community.home-assistant.io/t/share-your-floorplan/21315/676 Yes all the buttons have to have an associated SVG element. Those elements don't have to be visible they might just be a square on top of something in your base layer. All the "buttons" in my sidebar are done like that as are all the touch points to toggle the room lights. You then associate the SVG element with an action in your yaml. See the docs which give examples of how this is done. You don't move anything to do with the SVG in yaml or css. I don't think trying to edit the SVG via text is going to be easy so yes you should just use Inkscape for all editing of the SVG. |
Beta Was this translation helpful? Give feedback.
OK Luke is not using ha-floorplan however other than what looks like a graph in the bottom left you can easily do everything else. Have a look at mine here and you will see I have what looks like a sidebar on the left but it is fact just part of the SVG. https://community.home-assistant.io/t/share-your-floorplan/21315/676
Yes all the buttons have to have an associated SVG element. Those elements don't have to be visible they might just be a square on top of something in your base layer. All the "buttons" in my sidebar are done like that as are all the touch points to toggle the room lights. You then associate the SVG element with an action in your yaml. See the docs which give examples of…