Replies: 2 comments 6 replies
-
Being a yaml and HA newb and not realy understanding how the parts go together I'm missing a super basic yaml setup. This is based on only using non gui-backed dashboard yaml code, since using the gui version will store the yaml code "somewhere" and i prefer using a proper editor and i wanted to keep the all the parts together in one place. Another area that took some while to understand was the browser cashing... adding the ?v=1 fake argument alleviated some of that even though I'm still doing the clear_browser_caches | force_reload_page | hit_HA_refresh dance from time to time. I ended up with the following directory structure and files in the configuration directory of HA.
configuration.yaml
floorplan_main.yamlwill only contain includes to main areas / floor/views etc:
test.yaml
test.svgthe svg is a most basic svg containing a square and a text, an important point here is that all svg elements that will be referred to by I also used a lot of time discovering that the naming convention with tag.name used in the example files etc does not work for me ie having a dot as separator is a no no, changing this to underscore worked wonders.
test.cssshamelessly stolen from the examples.... |
Beta Was this translation helpful? Give feedback.
-
Hi,
This is positive. Some poeple can't even get anything on the screen at the start. So it shows your basic yaml is correct as well as the location of your files.
Yes this can be annoying but it is a function of the browser not ha-floorplan. The fake argument should actually not be required but if makes it work for you it doesn't hurt. What you can also do to help is to use the
yaml is tricky because you need to have exactly the right indenting and exactly the right key structure. In your post above the rules section is not correct as it should not have the
Now the above won't actually do anything yet as you don't have a
This is not actually true. You only need to group SVG objects if it makes sense to do so. For example this image is a group of a SVG circle and PNG image which I can then adjust the fill and stroke colour of to show when my PC is on:
Certainly @exetico recommended this in his video but YMMV as I do use dots in my object IDs and I haven't had any issues although I never start an ID with one. So let us know where you are at and we will be able to set you on othe right track... |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm still considering making some videos about ha-floorplan, to help people getting started, and maybe even more.
Therefore I'll like to hear what have been the first frustration for you, in the "Getting started"-state? 😄
Beta Was this translation helpful? Give feedback.
All reactions