Replies: 1 comment
-
|
Feel free to structure your YAML however works best for you — it's entirely up to your preference. The advanced usage docs here, gives you all the options. Since you were having some trouble getting things to work, I suggested and made a good starting point, before exploring other approaches — just to help you out. As mentioned, there are many valid ways to manage YAML, so you're absolutely welcome to go with whatever works best for you. It seems like you're attributing issues to HA-Floorplan that aren't actually related to our project. We provide an advanced way to work with SVG files, and we understand that it comes with a steep learning curve. That said, I’d really appreciate it if the way you talk about HA-Floorplan could be more respectful — constructive feedback is always welcome, but tone matters too.
As long as your YAML is valid and follows the standard conventions used in Home Assistant, it will work just as reliably as with any other integration or frontend solution. YAML handling is managed entirely by Home Assistant—we don’t have control over that part. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody out there,
first: i'm still beginner, so i don't have the real overview, so this is why i'm still asking...
I've created a YAML-based floorplan-dashboard. Everything is working well. But i did some things differently as the maintainer did, so my question now is, whether this would cause some errors, or whether i can use this by going this way.
It's all about splitting yaml-code.
Therefor the folder 'rules' was created in the same folder, where the floorplan configuration file is placed. The reference to this folder works.
This is the content of the floorplan configuration file (only one rule, because i want to keep it simple for you) :
That's what the maintainer said (last line):
configuration file:
And he said: one file for only one rule. That would be the content of his rule-yaml-file:
I did not understand, why this is different to the usual way. The usual way (my knowledge) is to set an !include-statement and copy(cut) the rules-section and paste it in an empty rule-file, done!. That's the way i did it with all other breaks and they still work. And this is what HA recommends.
I have nearly 60 rules. Why must i...
So i did try the following:
configuration-file (last line) :
rule file (there you can put in MORE than one rule)
I haven't change the rule content, no key 'name', no key 'entities' (why 'entities:'? there is only one rule per file, so why not 'entity' ?).
That's very confusing and annoying (like the whole documentation is).
And ;-) ... :
The difference is, what the day makes ;-). This has been done in 2 minutes (60 rules !)
My way is working, i didn't have to change anything.
BUT:
my question now is: is this ok or will this force some errors in the future?
Who can answer this question really well?
Many thanks in advance !
So long
Pc
Beta Was this translation helpful? Give feedback.
All reactions