This looks like a good subject is someone wants to tackle it s a cookbook subject…
Discord.
I have some orphaned devices that were sensors on a switch. When I try and get settings on them to try and delete them…
and Discord.
This looks like a good subject is someone wants to tackle it s a cookbook subject…
Discord.
I have some orphaned devices that were sensors on a switch. When I try and get settings on them to try and delete them…
and Discord.
New one. It’s often asked in context of energy entities, but applies to anything really: “I need to replace x. How can I keep my history?”
Good one - what’s the answer???
This seems to be the answer (at least for now): Rename entity ids and retain statistics - #8 by AngellusMortis
EDIT: though I’m not 100% convinced it works because of this: "New entity_id is already in use" error when renaming any entity · Issue #115747 · home-assistant/core · GitHub
42
Why? Shouldn’t we use the less complicated things in the Cookbook? Genuine question.
I would have recommended something like petros Jinja macros:
The example in that topic isn’t taking any user settings into account (what it should in my opinion, to get his place in the Cookbook).
There’s already a link from Getting time and date with templates. Added by @nickrout I think.
Thoughts anyone?
That’s perfect, can’t you add it there? That would make way more sense in my eyes, than linking that other topic.
I personally am not a fan of so complicated to explain one liners, and wouldn’t recommend them much. One topic, where all these are bundled is a great alternative for such things. One can take a look, if necessary, but not o present for “newer” users.
Same, but sometimes the sheer genius of them is a sight to behold. The stuff that some of the users come up with makes me feel dumb in comparison lol
Over 60% of my forum bookmarks are posts from Taras (123). It really amazes me, what he’s doing.
I can say, he personally saved me around 400 or 500 lines of code in my YAML
files, if that’s even enough.
Between him and petro over the years, SAME!
Yep, petro is the same, the above mentioned time macro saves a ton of code for me, and it’s soooooo easy to use. Love it!
I wouldn’t want to leave these one-liners out of the Cookbook, they are very, very useful, but not in a spreaded out way - they need to be collected in one or two places. Where experienced users can find them, but not to prominent, for unexperienced users.
I’m actually not against a cookbook entry with a bunch of one liners in it for various tasks. The experienced users might pick up a few they didn’t know about and the inexperienced users might learn a thing or two (imho). Given how “wonderful” the forum search can be sometimes, it might actually help having a cookbook entry just titled “sample templates” or “community templates” or something like that?
IDK… just spitballing titles here lol
So that would leave us with two ideas:
Let’s see, what others say!
So… First things first.
Sorry - just had to try out the poll thing.
If I could get the third free text answer: After the suggestion from @code-in-progress I’d like to take the “categroy” variant, where we could list “one-liners” for experienced users, that would fit nicely, don’t you think?
And we could collect more entries for that “category”, I’m quite sure there are a lot of useful links in my bookmarks…
But I’d maybe put this category in a “hide”-menu.
This one:
Caution, use at your own risk, and only when you know what you do!
And second question… How to present “one liners” and other more advanced stuff?
This is fun!
Better give both polls a few hours to brew.
At least these are reasonable questions! I remember a poll, where the question was “Do you use Home Assistant?”
Can’t we have both? A category “Advanced code snippets”, that is hidden? Maybe a new poll could give some insight…? Sorry, couldn’t resist
I voted against it because we already have a markdown dictionary, and the format of that just confused the shit out of me. I had to read it like 5 times before I decided it’s a one line markdown statement with odd choices.
Basically the way it’s written I had problems with, I guess not really the content.
I know I also confuse people when I explain things, but that was obtuse as an attempt at entertainment, I didn’t like it.