As for moving objects you would have to look at CSS solutions.Having said that if there were only a couple of locations then showing or hiding images in those locations might be a solution?
Okay the adding seems something I could use. I don’t control the location where i need to add the extra elements (external api) but maybe I could monitor it for a bit and check if it’s always neer the same location. Thanks!
Hi. Today is … a new day for me. Yesterday i planned and recorded a video on how to get started with ha-floorplan. It’s done with Home Assistant OS, which are the easiest way to get started with Home Assistant.
I really hope that I’ll find time to create more videos in the future, with more specific content - but I’ve received quite a few requests on how to get started with ha-floorplan, in the last couple of years.
Happy floorplanning everyone!
It’s my first video in English and as a “teacher”, but I’ve executed it the best I can, during a rainy sunday.
Attachments can be found here:
Please hit the like-button on the video, and write a comment.Thanks!
Petar,
I just wanted to say thank you for the awesome work here! I am having a blast setting up my home, still early going but the results are promising!
You’re welcome. I’ve not heard from Petar in quite a while, so I’m doing what I can to keep things running (pushing new features, testing thinngs, and so on) .
When you’re done, please consider to share your work in our discussion-area on GitHub …
New video about the usage of basic CSS-selectors, what we’re using classes and ID for… and a bit more.
This video is for people touching CSS for the first time - or simular.
ha-floorplan - Using CSS-selectors | How CSS-styling works in ha-floorplan and in general
We’ll take a look at how CSS-selectors works, by using a Class and Id selector. I’ll also try and give you a better understanding in, how the CSS style “connects” to the HTML-dom, and how ha-floorplan are updating the dom-element. Learn how to see the CSS-properties in your browser, and debug by toggling a given property on and off.
This is a (shorter) video all about CSS-styling in ha-floorplan, before I’ll release part 2 of “Create your first floorplan in Inkscape”.
Your feedback
Hi. Thank you for looking by this video.
Please let me know what you think, and press the like button! I’ll also ask you to search for code-related inputs in our discussion area, instead of here on YouTube. But short questions are totally welcome, but I can’t promise that I’ll walk through all questions from now on.
Changes to this video: I’ve tried to work with both zooming and creating focus-areas on/off. I hope it help to make things more clear.
Home Assistant is known to change over time, so things can be outdated quite fast. I hope most things will be stay the same… But let’s see how it goes!
Video chapters:
00:00 Introduction
00:09 Content of this video
00:37 Classes - A selector for multiple elements
2:37 Using important! to force your changes
3:30 ID’s - A selector for single unique element
4:53 Ordering your style and create more specific selectors
5:47 Styling elements with ha-floorplan
6:48 How the style_set-service works
7:18 Using JavaScript in style_set to define the fill-color
8:34 Outro
I love what you’ve created.
Do I see this right, that you are able to switch between the floors with this icon?
Is this a generic function of HA-floorplan or your own IP
This does not add the weathericon class to changed image element. If I remove floorplan.image_set the class is added. In another example I change text and set class and both work fine. Why image_set + class_set fail to add class?
Part two of “Create your first floorplan in Inkscape” was uploaded two days ago. I bet most of you guys are a step above the skill-“level” in the video.
But give it a go, if you have half an hour.
Tip: Check the chapters if you’re looking for something specific: